Skip to content

Verify Agent.run_sync() and pydantic_ai.direct.model_request() span coverage #5841

@ericapisani

Description

@ericapisani

Agent.run_sync() is not directly patched but likely works transitively since it calls Agent.run() internally. This should be verified with a test.

pydantic_ai.direct.model_request() is a standalone LLM call API that bypasses Agent entirely. The Model.request patch in patches/model_request.py may catch the underlying call, but this also needs verification.

Both should have explicit tests confirming span creation.

Metadata

Metadata

Assignees

No one assigned
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions