* Formats tool output for a Anus FunctionResponse.
( callId: string, toolName: string, output: string, )
| 134 | * Formats tool output for a Anus FunctionResponse. |
| 135 | */ |
| 136 | function createFunctionResponsePart( |
| 137 | callId: string, |
| 138 | toolName: string, |
| 139 | output: string, |
| 140 | ): Part { |
| 141 | return { |
| 142 | functionResponse: { |
| 143 | id: callId, |
| 144 | name: toolName, |
| 145 | response: { output }, |
| 146 | }, |
| 147 | }; |
| 148 | } |
| 149 | |
| 150 | export function convertToFunctionResponse( |
| 151 | toolName: string, |
no outgoing calls
no test coverage detected