fix: resolve TypeScript error in tool response content
This commit is contained in:
parent
9ddc54b668
commit
85b8da45f9
|
|
@ -564,7 +564,7 @@ export class AgenticClient {
|
|||
sessionMessages.push({
|
||||
role: 'tool',
|
||||
tool_call_id: toolCall.id,
|
||||
content: contentParts.length === 1 ? contentParts[0].text : contentParts
|
||||
content: contentParts.length === 1 ? cleanedResult : contentParts
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue