Skip to main content

Class: SkyboxAgent

Defined in: src/agent/SkyboxAgent.ts:10

An agent that can use an AI to reason and execute tools.

Extends

Constructors

Constructor

new SkyboxAgent(ai, sound, scene): SkyboxAgent

Defined in: src/agent/SkyboxAgent.ts:11

Parameters

ai

AI

sound

CoreSound

scene

Scene

Returns

SkyboxAgent

Overrides

Agent.constructor

Properties

ai

ai: AI

Defined in: src/agent/Agent.ts:14

Inherited from

Agent.ai


contextBuilder

contextBuilder: Context

Defined in: src/agent/Agent.ts:17

Inherited from

Agent.contextBuilder


memory

memory: Memory

Defined in: src/agent/Agent.ts:16

Inherited from

Agent.memory


tools

tools: Tool[]

Defined in: src/agent/Agent.ts:15

Inherited from

Agent.tools


dependencies

static dependencies: object = {}

Defined in: src/agent/Agent.ts:13

Inherited from

Agent.dependencies

Methods

findTool()

findTool(name): undefined | Tool

Defined in: src/agent/Agent.ts:80

Parameters

name

string

Returns

undefined | Tool

Inherited from

Agent.findTool


sendToolResponse()

sendToolResponse(response): Promise<void>

Defined in: src/agent/SkyboxAgent.ts:41

Parameters

response

LiveSendToolResponseParameters

Returns

Promise<void>


start()

start(prompt): Promise<string>

Defined in: src/agent/Agent.ts:31

Starts the agent's reasoning loop with an initial prompt.

Parameters

prompt

string

The initial prompt from the user.

Returns

Promise<string>

The final text response from the agent.

Inherited from

Agent.start


startLiveSession()

startLiveSession(callbacks): Promise<void>

Defined in: src/agent/SkyboxAgent.ts:21

Parameters

callbacks

LiveCallbacks

Returns

Promise<void>


stopLiveSession()

stopLiveSession(): Promise<void>

Defined in: src/agent/SkyboxAgent.ts:36

Returns

Promise<void>