Today we'll begin looking at tool use in the Claude API, which lets Claude call functions that we define and run in our own code. We describe a tool with a name, a description, and a JSON Schema for its input. When Claude decides it needs the tool, it stops and asks us to run it, and then uses our result to finish its...
Cups tagged βAPIβ
Today we'll look at prompt caching in the Claude API, which lets us reuse the start of a prompt across requests instead of paying full price to process it every time. When we send the same long system prompt, the same tool definitions, or the same document over and over, Claude can read that prefix from a cache. Cache...