| 27 | pass |
| 28 | |
| 29 | async def _get_tools_inner(self): |
| 30 | return { |
| 31 | 'split_task': [ |
| 32 | Tool( |
| 33 | tool_name='split_to_sub_task', |
| 34 | server_name='split_task', |
| 35 | description= |
| 36 | 'Split complex task into sub tasks and start them, for example, ' |
| 37 | 'split a website generation task into sub tasks, ' |
| 38 | 'you plan the framework, include code files and classes and functions, and give the detail ' |
| 39 | 'information to the system and query field of the subtask, then ' |
| 40 | 'let each subtask to write a single file', |
| 41 | parameters={ |
| 42 | 'type': 'object', |
| 43 | 'properties': { |
| 44 | 'tasks': { |
| 45 | 'type': |
| 46 | 'array', |
| 47 | 'description': |
| 48 | 'MANDATORY: Each element is a dict, which must contains two fields: ' |
| 49 | '`system`(str) and `query`(str) to start one sub task.' |
| 50 | } |
| 51 | }, |
| 52 | 'required': ['tasks'], |
| 53 | 'additionalProperties': False |
| 54 | }) |
| 55 | ] |
| 56 | } |
| 57 | |
| 58 | async def call_tool(self, server_name: str, *, tool_name: str, |
| 59 | tool_args: dict): |