Skip to content

Imports from pydantic-ai not recognized #63

@DominikCywinski

Description

@DominikCywinski

In what type of project did the bug occur?
Agent

Describe the bug
Certain imports from pydantic-ai (e.g. AgentRunResult) are not being recognized, which appears to be related to the pydantic-ai version specified in pyproject.toml. When i switch from "pydantic-ai>=1.0.8" to "pydantic-ai==1.0.8", everything works as expected.

To Reproduce
Simply run the project

Actual result

ImportError: cannot import name 'AgentRunResult' from 'pydantic_ai.result' (D:\projects\test-agent-kit\.venv\Lib\site-packages\pydantic_ai\result.py)

Environment (please complete the following information):

  • OS: [Windows 11]
  • Agent/LLM: custom agent with gpt-4o model
  • Execution method: local uv
  • Python version: 3.13

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions