@lobehub/chat
Version:
Lobe Chat - an open-source, high-performance chatbot framework that supports speech synthesis, multimodal, and extensible Function Call plugin system. Supports one-click free deployment of your private ChatGPT/LLM web application.
81 lines (80 loc) • 1.99 kB
JSON
[
{
"type": "function",
"function": {
"name": "trigger_agent",
"description": "Trigger an agent to speak (group message).",
"parameters": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "The agent id to trigger."
},
"instruction": {
"type": "string"
}
},
"required": ["instruction", "id"],
"additionalProperties": false
}
}
},
{
"type": "function",
"function": {
"name": "wait_for_user_input",
"description": "Wait for user input. Use this when the conversation history looks likes fine for now, or agents are waiting for user input.",
"parameters": {
"type": "object",
"properties": {
"reason": {
"type": "string",
"description": "Optional reason for pausing the conversation."
}
},
"required": [],
"additionalProperties": false
}
}
},
{
"type": "function",
"function": {
"name": "create_todo",
"description": "Create a new todo item",
"parameters": {
"type": "object",
"properties": {
"assignee": {
"type": "string",
"description": "Who will do the todo. Can be agent id or empty."
},
"content": {
"type": "string",
"description": "The todo content or description."
}
},
"required": ["content", "assignee"],
"additionalProperties": false
}
}
},
{
"type": "function",
"function": {
"name": "finish_todo",
"description": "Finish a todo by index or all todos",
"parameters": {
"type": "object",
"properties": {
"index": {
"type": "number"
}
},
"required": ["index"],
"additionalProperties": false
}
}
}
]