[错误] 流式传输 checkpoint="tool-batch" 会放弃暂停的工具并完成运行
作者: chaim-turkel-cyera创建于 2026年9月30日更新于 2026年9月30日
@dataclass class AskUserModel(Model): id: str = "ask" name: str = "AskUserModel" provider: str = "scripted"
def _next(self, messages: List[Message]) -> ModelResponse:
fields = [{"field_name": "clarification", "field_type": "str", "field_description": "What to show?"}]
return ModelResponse(
role="assistant",
tool_calls=[{
"id": "call_ask",
"type": "function",
"function": {
"name":内容来源: agno-agi/agno