Skip to content

[FEAT] Middleware Interception & Truncation for Tool Results #975

Description

@Diluka

Is your feature request related to a problem? Please describe.

It is currently difficult to handle extremely large responses from tool calls when building agent systems, as there is no middleware in the tool invocation chain for interception or truncation of tool results.

Describe alternatives you've considered

No response

Additional context

No response

Describe the thing to improve

Introduce a middleware system for the tool invocation process (similar to agent-like middlewares) that can intercept, transform, truncate, or otherwise process tool responses before returning the result to the user or downstream consumers.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Fields

    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