fix: cot agent token usage is empty (#4474)
This commit is contained in:
parent
c2a8fa91b1
commit
528faceb35
2 changed files with 4 additions and 2 deletions
|
|
@ -121,7 +121,7 @@ class CotAgentRunner(BaseAgentRunner, ABC):
|
|||
raise ValueError("failed to invoke llm")
|
||||
|
||||
usage_dict = {}
|
||||
react_chunks = CotAgentOutputParser.handle_react_stream_output(chunks)
|
||||
react_chunks = CotAgentOutputParser.handle_react_stream_output(chunks, usage_dict)
|
||||
scratchpad = AgentScratchpadUnit(
|
||||
agent_response='',
|
||||
thought='',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue