Skip to content

tool_use block without id crashes parse_session with KeyError #19

Description

@royalpinto007

Problem

A transcript whose tool_use block lacks id crashes parse_session with KeyError instead of skipping the block.

Where

agentrace/parse.py (direct block["id"] access, uncaught up the chain).

Acceptance

Add a failing test first feeding a transcript with an id-less tool_use block and asserting parse_session returns. Then fix.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

claimedSomeone asked first and is working on thisgood first issueGood for newcomershelp wantedExtra attention is needed

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions