fix(pydantic-ai): CI fails with newest pydantic-ai (unexpected 'history' argument)

Open
#77 0 comments 0 reactions 0 assignees View on GitHub

@gambtho is already working on this.

Since Oct 23, 2026.

  • #78 by @gambtho — open

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Stale
Tech stack
python
Domain
backend, testing

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

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from orka-agents/agentkit

All issues in orka-agents/agentkit

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.