搜索中文正文和常见中英文技术词,按教程、项目、面试题筛选。
「tool call tool result」找到 9 条内容
按专题浏览 →匹配正文:…arch_document": search_document, } for call in assistant_message.tool_calls: name = call.function.name args = json.loads(call.function.arguments) validate_schema(name, args) check_permission(current_user, name, args) result = registry[name]…
匹配正文:…s["order_id"], str): raise ValueError("order_id必须是字符串,且不能有额外参数") result = search_order(**args) messages.append({"role": "tool", "tool_call_id": call.id, "content": result}) final = client.chat.completions.create(model=MODEL, messages=messag…
匹配正文:…licy:截止时间、并发、次数、输出字节和费用预算; side-effect class:只读、幂等写、需确认写或不可自动重试; result schema:数据、来源、时间、版本、错误类别和可重试性。 模型只看到允许公开的工具描述。服务端仍要重新校验每次调用;不能因为模型输出了合法 JSON 就信任参数或授权。 模型如何知道有哪些工具 应用按当前用户、会话和任务筛选可用工具,把 Schema 随请求交给模型。模型返回候选 tool call;编排器再执行注册表查找 → 鉴权…
按学习路线查看教程、项目和面试题。