trading_agent.tools.skill_archive_tool
¶
The skill_archive tool: takes one of the desk's own skills out of use without deleting it.
Typical usage example:
tool = SkillArchiveTool(writer)
SkillArchiveArguments
¶
Bases: BaseModel
The arguments of skill_archive.
Attributes:
| Name | Type | Description |
|---|---|---|
name |
str
|
The skill to archive, which must be one of your own. |
reason |
str
|
Why, for the skill ledger, such as "merged into gap-playbook". |
SkillArchiveTool
¶
Bases: Tool
Archives 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_archive_tool.py
run
async
¶
Archives the skill in a worker thread.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
arguments
|
SkillArchiveArguments
|
The skill and the reason. |
required |
Returns:
| Type | Description |
|---|---|
ToolResult
|
A confirmation, or why nothing changed. |