Skip to content

agent.Stream() 为什么没有去实现tool_call后二次流式调度呀? #772

@Waterkyuu

Description

@Waterkyuu

我发现 使用Stream 在模型发起tool call后,就流式断了, 消息如下, 没有内置去执行tool call后拼接二次流式调度,也没找到有实现的api (虽然这个可以去手动实现)

agent.Stream() 

断开消息如下

2026/02/05 18:59:16 message[67]: assistant:
tool_calls:
index[0]:{Index:0xc000466850 ID: Type: Function:{Name: Arguments:{}} Extra:map[]}

finish_reason:
2026/02/05 18:59:16 message[68]: assistant:
finish_reason: tool_calls
usage: &{62 {0} 80 142 {0}}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions