trading_agent.tools.load_skill_tool
¶
The load_skill tool: reads one skill in full, so the desk can follow it.
Typical usage example:
tool = LoadSkillTool(library)
LoadSkillArguments
¶
Bases: BaseModel
The arguments of load_skill.
Attributes:
| Name | Type | Description |
|---|---|---|
name |
str
|
The skill's name, as listed in the skills index. |
LoadSkillTool
¶
Bases: Tool
Returns a skill's instructions and the paths of its bundled files.
Creates the tool.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
library
|
SkillLibrary
|
The desk's skills. |
required |
Source code in src/trading_agent/tools/load_skill_tool.py
run
async
¶
Finds the skill and returns its text.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
arguments
|
LoadSkillArguments
|
The skill's name. |
required |
Returns:
| Type | Description |
|---|---|
ToolResult
|
The skill, or an error listing the skills there are. |