From c49665cbd41971184bb523bb9f7b41ef6d0b7022 Mon Sep 17 00:00:00 2001 From: "jinli.yl" Date: Wed, 31 Dec 2025 00:54:40 +0800 Subject: [PATCH] docs(schema): update tool call documentation with example --- reme_ai/core/schema/tool_call.py | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/reme_ai/core/schema/tool_call.py b/reme_ai/core/schema/tool_call.py index e6b1092f..a94dfb1d 100644 --- a/reme_ai/core/schema/tool_call.py +++ b/reme_ai/core/schema/tool_call.py @@ -62,6 +62,34 @@ class ToolCall(BaseModel): """ Model representing a tool definition and its call structure. Supports parsing from standard JSON Schema formats and converting to MCP Tool objects. + input: + { + "type": "function", + "function": { + "name": "get_current_weather", + "description": "It is very useful when you want to check the weather of a specified city.", + "parameters": { + "type": "object", + "properties": { + "location": { + "type": "string", + "description": "Cities or counties, such as Beijing, Hangzhou, Yuhang District, etc.", + } + }, + "required": ["location"] + } + } + } + output: + { + "index": 0, + "id": "call_6596dafa2a6a46f7a217da", + "function": { + "arguments": "{\"location\": \"Beijing\"}", + "name": "get_current_weather" + }, + "type": "function", + } """ index: int = 0