(candidate: Candidate | undefined)
| 132 | * and all should be executed before continuing the conversation. |
| 133 | */ |
| 134 | export function extractAllFunctionCallParts(candidate: Candidate | undefined): Part[] { |
| 135 | if (!candidate?.content?.parts) return [] |
| 136 | |
| 137 | return candidate.content.parts.filter((part) => part.functionCall) |
| 138 | } |
| 139 | |
| 140 | /** |
| 141 | * Converts usage metadata from SDK response to our format. |
no outgoing calls
no test coverage detected