Skip to content

Google Gemini issues #42

@LeDanieI

Description

@LeDanieI
[2025-08-01, 20:19:40] INFO - Executing LLM call: chan="stdout": source="task"
[2025-08-01, 20:19:40] INFO - Done. Returned value was: "Greet": source="airflow.task.operators.airflow_ai_sdk.operators.llm.LLMDecoratedOperator"
[2025-08-01, 20:19:40] INFO - Prompt: "Greet": chan="stdout": source="task"
[2025-08-01, 20:19:40] INFO - AFC is enabled with max remote calls: 10.: source="root"
[2025-08-01, 20:19:42] INFO - Error: 'GenerateContentResponse' object has no attribute 'response_id': chan="stdout": source="task"
[2025-08-01, 20:19:42] ERROR - Task failed with exception: source="task"
AttributeError: 'GenerateContentResponse' object has no attribute 'response_id'
File "/home/airflow/.local/lib/python3.12/site-packages/airflow/sdk/execution_time/task_runner.py", line 877 in run
File "/home/airflow/.local/lib/python3.12/site-packages/airflow/sdk/execution_time/task_runner.py", line 1164 in _execute_task
File "/home/airflow/.local/lib/python3.12/site-packages/airflow/sdk/bases/operator.py", line 397 in wrapper
File "/home/airflow/.local/lib/python3.12/site-packages/airflow_ai_sdk/operators/agent.py", line 98 in execute
File "/home/airflow/.local/lib/python3.12/site-packages/airflow_ai_sdk/operators/agent.py", line 94 in execute
File "/home/airflow/.local/lib/python3.12/site-packages/pydantic_ai/agent.py", line 988 in run_sync
File "/usr/local/lib/python3.12/asyncio/base_events.py", line 691 in run_until_complete
File "/home/airflow/.local/lib/python3.12/site-packages/pydantic_ai/agent.py", line 562 in run
File "/home/airflow/.local/lib/python3.12/site-packages/pydantic_ai/agent.py", line 2176 in __anext__
File "/home/airflow/.local/lib/python3.12/site-packages/pydantic_graph/graph.py", line 809 in __anext__
File "/home/airflow/.local/lib/python3.12/site-packages/pydantic_graph/graph.py", line 782 in next
File "/home/airflow/.local/lib/python3.12/site-packages/pydantic_ai/_agent_graph.py", line 299 in run
File "/home/airflow/.local/lib/python3.12/site-packages/pydantic_ai/_agent_graph.py", line 359 in _make_request
File "/home/airflow/.local/lib/python3.12/site-packages/pydantic_ai/models/google.py", line 182 in request
File "/home/airflow/.local/lib/python3.12/site-packages/pydantic_ai/models/google.py", line 317 in _process_response
File "/home/airflow/.local/lib/python3.12/site-packages/pydantic/main.py", line 991 in __getattr__

Is there a Pydantic mismatch in the GenerateContentResponse object? Any workaround?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions