(self)
| 31 | } |
| 32 | |
| 33 | def list_tools(self): |
| 34 | return { |
| 35 | "tools": [ |
| 36 | { |
| 37 | "name": f'agent_{str(self.application.id)[:8]}', |
| 38 | "description": f'{self.application.name} {self.application.desc}', |
| 39 | "inputSchema": { |
| 40 | "type": "object", |
| 41 | "properties": { |
| 42 | "message": {"type": "string", "description": "The message to send to the AI."}, |
| 43 | }, |
| 44 | "required": ["message"] |
| 45 | } |
| 46 | } |
| 47 | ] |
| 48 | } |
| 49 | |
| 50 | def _get_chat_id(self): |
| 51 | from application.models import ChatUserType |