cloudwego / cloudwego/eino

如何在agent内对LLM返回的流式function call参数进行合并?

Open
#631 12 comments 0 reactions 0 assignees View on GitHub
C-enhancement D-schema
Dominant language
Go
Stars
13k
Forks
1.1k
Avg merge
4h 6m
Merged PRs (30d)
41

Description

流式返回大模型的function call的时候,返回的参数也是流式返回的

例如
- 第一个FunctionCall的arguments是{
- 第二个FunctionCall的arguments是"a" : "b"
- 第三个FunctionCall的arguments是}

需要拼在一起才是真实的参数,这个要如何拼接呢?文档里没看到有简单的方法

Contributor guide

Open the contributing guide

Research direction

No file or test is named. Start by tracing the agent's streaming function-call handling and reading the tool-call documentation, then verify how fragmented arguments are represented and combined. Done means the supported approach is clear in the documentation, with an example covering the streamed fragments described here.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
ai
Issue type
Documentation
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
32/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.