Skip to content

Large tool results not checked for content length if using non-string content blocks #277

@bracesproul

Description

the logic which checks the size of the tool result only considers content blocks which are strings, not multi-type content blocks

this means if you have a complex content block with a text field that contains 1 billion characters, it'll get sent right back to the agent

i think the fix here is to join all content blocks with type text, and check the lengths of those

libs/deepagents/src/middleware/fs.ts L857

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions