fix(pydantic-ai): CI fails with newest pydantic-ai (unexpected 'history' argument)
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
Research direction
Start with runtimes/pydantic-ai/agentkit_serve/agent_factory.py and inspect the override of _process_streamed_response alongside the supported pydantic-ai dependency range. Compare the minimum and newest dependency jobs, then run the Python checks for both versions; done means both pass. Pull request #78 is already open for this issue.
Written by the indexing model from the issue text.
Description
The pydantic-ai adapter's Python checks fail on main, so every PR shows a red check.
TypeError: _CompletedResponsesModel._process_streamed_response()
got an unexpected keyword argument 'history'
CI installs the newest allowed pydantic-ai (2.59.0 in the failing runs; the range is >=2.38,<3). That release passes history to _process_streamed_response, and our override in runtimes/pydantic-ai/agentkit_serve/agent_factory.py doesn't accept it. 32 tests fail, 256 pass. The minimum-dependency jobs still pass.
Example run on main: https://github.com/orka-agents/agentkit/actions/runs/39919031668/job/120299489939
Fix: make the override accept the new argument while still working with the oldest supported release, and keep both dependency jobs green.
- Dominant language
- Python
- Stars
- 7
- Forks
- 5
- Avg merge
- 3h 39m
- Merged PRs (30d)
- 1
Getting set up
- Ships a Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from orka-agents/agentkit
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
orka-agents/agentkit#76 · 3 comments ·
-
area/build area/orka area/runtime blocked enhancement
Difficulty 4/5 3-5 days Newbie friendliness 45/100
orka-agents/agentkit#69 ·
-
area/build area/orka area/runtime enhancement
Difficulty 4/5 3-5 days Newbie friendliness 68/100
orka-agents/agentkit#68 ·
-
area/build enhancement testing
Difficulty 5/5 Over a week Newbie friendliness 42/100
orka-agents/agentkit#65 ·
-
area/build enhancement
Difficulty 4/5 3-5 days Newbie friendliness 45/100
orka-agents/agentkit#64 ·
All issues in orka-agents/agentkit
Similar issues
-
enhancement
Difficulty 1/5 Under an hour Newbie friendliness 62/100
DaoCloud/DaoCloud-docs#7839 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 78/100
sav-oss-org/ptusa_main#1610 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 85/100
Maintainers usually reply within 1 day
-
bug status/accepted type/bug
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
microsoft/apm#4925 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
sagemathinc/sagebrush#1701 ·
Maintainers usually reply within 1 day