(msgs: ChatMessage[])
| 56 | } |
| 57 | |
| 58 | function gatherAssistantText(msgs: ChatMessage[]): string { |
| 59 | return msgs |
| 60 | .filter((m) => m.role === "assistant" && m.text) |
| 61 | .map((m) => m.text || "") |
| 62 | .join("\n"); |
| 63 | } |
| 64 | |
| 65 | export async function* runAgent( |
| 66 | input: AgentRunInput, |
no outgoing calls
no test coverage detected