Skip to content

Anthropic prompt caching for tool response #3441

@Wh1isper

Description

@Wh1isper

Description

In agentic scenarios, a single session (user query) typically involves dozens of tool invocations. We often add cache points to each tool response to ensure all tool responses are cached.

e.g.

[
user message
tool use 1
...
tool use 50
final result
]

We want tool use 50 to benefit from the caching of tool use 1 to tool use 49

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions