taolib.symphony.agent.tools#
客户端侧工具定义。
定义可供 Codex 智能体在工作区内调用的工具, 当前实现为 Linear GraphQL 查询工具。
Classes#
工具执行结果。 |
|
动态工具基类。 |
|
Linear GraphQL 查询工具。 |
Module Contents#
- class taolib.symphony.agent.tools.ToolResult#
工具执行结果。
- class taolib.symphony.agent.tools.DynamicTool#
动态工具基类。
所有客户端侧工具的抽象基类, 定义工具名称和调用接口。
- abstractmethod handle(arguments: dict) ToolResult#
- Async:
处理工具调用。
- 参数:
arguments -- 工具调用参数。
- 返回:
工具执行结果。
- class taolib.symphony.agent.tools.LinearGraphQLTool(api_key: str, endpoint: str = 'https://api.linear.app/graphql')#
Bases:
DynamicToolLinear GraphQL 查询工具。
允许 Codex 智能体在工作区内查询 Linear API, 复用 Symphony 的 Linear 认证信息。
- _api_key#
- _endpoint = 'https://api.linear.app/graphql'#
- async handle(arguments: dict) ToolResult#
执行 Linear GraphQL 查询。
- 参数:
arguments -- 包含
query和可选variables的字典。- 返回:
GraphQL 查询结果。