cache control for claude #3062
Unanswered
hyusetiawan
asked this question in
Help
Replies: 3 comments 6 replies
-
|
Beta Was this translation helpful? Give feedback.
2 replies
-
Sorry but I'm still unsure what is a tool message?
Like tools: property? Or inside an array of messages as role assistant and
somehow type id tools?
…On Thu, Sep 19, 2024 at 8:44 AM Lars Grammel ***@***.***> wrote:
Examples are here:
https://sdk.vercel.ai/providers/ai-sdk-providers/anthropic#example-cache-control
For tools you would just the experimental_providerMetadata on the tool msg
—
Reply to this email directly, view it on GitHub
<#3062 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAIDQCCQ24JULI3EA7HAXTDZXLWPBAVCNFSM6AAAAABOPMVWRKVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTANRZGUYTMNA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
1 reply
-
It seems this is the message to call and its result? But i want to cache
the tools definition as shown here
https://docs.anthropic.com/en/docs/build-with-claude/prompt-caching#caching-tool-definitions
…On Thu, Sep 19, 2024 at 9:21 AM Lars Grammel ***@***.***> wrote:
Tool messages are one of the core message types:
https://sdk.vercel.ai/docs/foundations/prompts#tool-messages
—
Reply to this email directly, view it on GitHub
<#3062 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAIDQCC5LW4ONW66LZ27VKLZXL2XDAVCNFSM6AAAAABOPMVWRKVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTANRZGU2TANQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
hey all, I see the guide here for cache control, I have a couple of follow up questions:
system
property and can only usemessages
as shown in the example? like we can't do this:Thank you!
Beta Was this translation helpful? Give feedback.
All reactions