Skip to content

[Agent] Keep tool messages by default in agent processor #1402

@aszenz

Description

@aszenz

Defaults matter and keepToolMessages = false in AgentProcessor right now, this causes the LLM to forget what tool calls it made before and their results during subsequent requests.

Keeping tool messages and results is important since it enables the LLM to be fully aware of the things it has tried and potentially failed at in later messages.

Of course the downside is increase in context size, but shrinking the message bag (context) should be done by a separate service.

Metadata

Metadata

Assignees

No one assigned

    Labels

    AgentIssues & PRs about the AI Agent component

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions