trading_agent.tools.skill_create_tool
¶
The skill_create tool: writes down a procedure as one of the desk's own skills.
Typical usage example:
tool = SkillCreateTool(writer)
SkillCreateArguments
¶
Bases: BaseModel
The arguments of skill_create.
Attributes:
| Name | Type | Description |
|---|---|---|
name |
str
|
The new skill's name: lower-case letters, digits and hyphens. |
description |
str
|
One or two sentences saying when to use it; this is what the skills index shows. |
instructions |
str
|
The procedure in Markdown, as numbered steps with the tools to use and what to check. |
required_programs |
list[str]
|
Programs the skill needs, such as python3. |
required_environment |
list[str]
|
Environment variables the skill needs. |
reason |
str
|
Why the skill is worth keeping, for the skill ledger. |
SkillCreateTool
¶
Bases: Tool
Creates one of the desk's own skills.
Creates the tool.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
writer
|
SkillWriter
|
Writes the desk's skills. |
required |
Source code in src/trading_agent/tools/skill_create_tool.py
run
async
¶
Writes the skill in a worker thread, because the snapshot runs git.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
arguments
|
SkillCreateArguments
|
The skill. |
required |
Returns:
| Type | Description |
|---|---|
ToolResult
|
Where the skill was written, or why it was refused. |