Skip to content

feat(sdk): emit a per-run message event for Pydantic AI - #196

Closed
victorludvig wants to merge 1 commit into
vl/feat/audit_drawer_messagesfrom
vl/feat/pydantic_ai_messages
Closed

victorludvig wants to merge 1 commit into
vl/feat/audit_drawer_messagesfrom
vl/feat/pydantic_ai_messages

Conversation

@victorludvig

@victorludvig victorludvig commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

Design: LLM message logging design · implementation spec. Plan target: merge by Thu 17 Sep.

What is changing

emit_run_messages() beside emit_run_usage() in adapters/pydantic_ai/usage.py, called from the four sites in agent.py; one event from the result's message history (all_messages()), message_seq=0, no cursor.

Why is this change necessary

Pydantic AI has no per-call hook short of iter(); per-run mirrors its existing usage reporting. iter()-level capture is a follow-up. First scope cut if the sprint slips.

Tests

tests/adapters/pydantic_ai/test_usage.py extended; integration case.

🤖 Generated with Claude Code

Placeholder commit opening PR 13/15 of the LLM message logging stack; the change lands on this branch.
@victorludvig victorludvig changed the title feat(sdk): emit a per-run message event for Pydantic AI (13/15) feat(sdk): emit a per-run message event for Pydantic AI Sep 8, 2026
@victorludvig
victorludvig deleted the branch vl/feat/audit_drawer_messages September 8, 2026 15:40
@victorludvig
victorludvig deleted the vl/feat/pydantic_ai_messages branch September 8, 2026 15:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant