-
Notifications
You must be signed in to change notification settings - Fork 310
Description
I try CalculatorAgentProvider, I print all the msgs after ending.
user> 10-5=?
...
agent> any problem else?
user>+1?
...
end
code> _agent.agentConfig.prompt.messages.also {
printList(it, "promptList")
}
bug> I cannot found userMsg in prompt of the end.
log>
printList-size>10
Debug: (COC) Item0> System(parts=[Text(text=You are a calculator.
You will be provided math problems by the user.
Use tools at your disposal to solve them.
Provide the answer and ask for the next problem until the user asks to stop.)], metaInfo=RequestMetaInfo(timestamp=2026-01-27T07:30:08.116547Z, metadata=null))
Debug: (COC) Item1> Call(id=019bfe5a528f748336f4bba2d01f9eb9, tool=minus, parts=[Text(text={"a":10,"b":5})], metaInfo=ResponseMetaInfo(timestamp=-100001-12-31T23:59:59.999999999Z, totalTokensCount=null, inputTokensCount=null, outputTokensCount=null, additionalInfo={}, metadata=null))
Debug: (COC) Item2> Result(id=019bfe5a528f748336f4bba2d01f9eb9, tool=minus, parts=[Text(text={"a":10,"b":5})], metaInfo=RequestMetaInfo(timestamp=-100001-12-31T23:59:59.999999999Z, metadata=null))
Debug: (COC) Item3> Assistant(parts=[Text(text=The result of 10 - 5 is 5.0. Do you have another problem?)], metaInfo=ResponseMetaInfo(timestamp=2026-01-27T07:30:08.116593Z, totalTokensCount=null, inputTokensCount=null, outputTokensCount=null, additionalInfo={}, metadata=null), finishReason=null)
Debug: (COC) Item4> Call(id=019bfe5ab55515959d5b82ff174b7762, tool=plus, parts=[Text(text={"a":5,"b":1})], metaInfo=ResponseMetaInfo(timestamp=-100001-12-31T23:59:59.999999999Z, totalTokensCount=null, inputTokensCount=null, outputTokensCount=null, additionalInfo={}, metadata=null))
Debug: (COC) Item6> Call(id=019bfe5ab563a37c770d549e77879411, tool=plus, parts=[Text(text={"a":5.0,"b":1})], metaInfo=ResponseMetaInfo(timestamp=-100001-12-31T23:59:59.999999999Z, totalTokensCount=null, inputTokensCount=null, outputTokensCount=null, additionalInfo={}, metadata=null))
Debug: (COC) Item8> Assistant(parts=[Text(text=The result of 5 + 1 is 6.0. Do you have another problem?)], metaInfo=ResponseMetaInfo(timestamp=2026-01-27T07:30:08.116617Z, totalTokensCount=null, inputTokensCount=null, outputTokensCount=null, additionalInfo={}, metadata=null), finishReason=null)
Debug: (COC) Item9> Assistant(parts=[Text(text=The result of 5.0 + 1 is 6.0. Do you have another problem?)], metaInfo=ResponseMetaInfo(timestamp=2026-01-27T07:30:08.116622Z, totalTokensCount=null, inputTokensCount=null, outputTokensCount=null, additionalInfo={}, metadata=null), finishReason=null)
Debug: (COC) Item5> Result(id=019bfe5ab55515959d5b82ff174b7762, tool=plus, parts=[Text(text={"a":5,"b":1})], metaInfo=RequestMetaInfo(timestamp=-100001-12-31T23:59:59.999999999Z, metadata=null))
Debug: (COC) Item7> Result(id=019bfe5ab563a37c770d549e77879411, tool=plus, parts=[Text(text={"a":5.0,"b":1})], metaInfo=RequestMetaInfo(timestamp=-100001-12-31T23:59:59.999999999Z, metadata=null))