Class: GenerateSkyboxTool
Defined in: src/agent/tools/GenerateSkyboxTool.ts:10
A tool that generates a 360-degree equirectangular skybox image based on a given prompt using an AI service.
Extends
Constructors
Constructor
new GenerateSkyboxTool(
ai,scene):GenerateSkyboxTool
Defined in: src/agent/tools/GenerateSkyboxTool.ts:11
Parameters
ai
scene
Returns
GenerateSkyboxTool
Overrides
Properties
behavior?
optionalbehavior:"BLOCKING"|"NON_BLOCKING"
Defined in: src/agent/Tool.ts:53
Inherited from
description?
optionaldescription:string
Defined in: src/agent/Tool.ts:50
Inherited from
name
name:
string
Defined in: src/agent/Tool.ts:49
Inherited from
onTriggered()?
optionalonTriggered: (args) =>unknown
Defined in: src/agent/Tool.ts:52
Parameters
args
unknown
Returns
unknown
Inherited from
parameters?
optionalparameters:ToolSchema
Defined in: src/agent/Tool.ts:51
Inherited from
Methods
execute()
execute(
args):Promise<ToolResult<string>>
Defined in: src/agent/tools/GenerateSkyboxTool.ts:38
Executes the tool's action.
Parameters
args
The prompt to use to generate the skybox.
prompt
string
Returns
Promise<ToolResult<string>>
A promise that resolves with a ToolResult containing success/error information.
Overrides
toJSON()
toJSON():
FunctionDeclaration
Defined in: src/agent/Tool.ts:97
Returns a JSON representation of the tool.
Returns
FunctionDeclaration
A valid FunctionDeclaration object.