Returns the function calls in the response.
(self)
| 156 | """ |
| 157 | |
| 158 | def get_function_calls(self) -> list[types.FunctionCall]: |
| 159 | """Returns the function calls in the response.""" |
| 160 | func_calls = [] |
| 161 | if self.content and self.content.parts: |
| 162 | for part in self.content.parts: |
| 163 | if part.function_call: |
| 164 | func_calls.append(part.function_call) |
| 165 | return func_calls |
| 166 | |
| 167 | def get_function_responses(self) -> list[types.FunctionResponse]: |
| 168 | """Returns the function responses in the response.""" |