Returns the function responses in the response.
(self)
| 165 | return func_calls |
| 166 | |
| 167 | def get_function_responses(self) -> list[types.FunctionResponse]: |
| 168 | """Returns the function responses in the response.""" |
| 169 | func_responses = [] |
| 170 | if self.content and self.content.parts: |
| 171 | for part in self.content.parts: |
| 172 | if part.function_response: |
| 173 | func_responses.append(part.function_response) |
| 174 | return func_responses |
| 175 | |
| 176 | @staticmethod |
| 177 | def create( |