21 questionsQuestion · Short answer
Applications and Integration
Read the Messages response as an ordered collection of typed content blocks plus metadata. Inspect stop_reason before accepting the output. HTTP success establishes that the service returned a Message, and application validation still…
Applications and Integration
Mark the attempt incomplete if the response disconnects or emits an error before message_stop . Keep previously shown text provisional, and withhold it from actions or final records. Depending on the application, discard it, show it as…
Applications and Integration
Put approved images in image content blocks with the accompanying text in the intended order. On the first-party Claude API, documented source types are base64 inline data, an image URL, and a Files API file_id . For Amazon Bedrock and…
Applications and Integration
For deferred independent work on the first-party Claude API, submit each Messages payload as its own batch entry with a unique custom_id . Save the returned batch ID and entries together. Poll the batch’s status endpoint until…
Applications and Integration
Treat the prompt, examples and context templates, schema, consuming parser, semantic rules, and relevant settings as one versioned interface. Record a content digest or version, its purpose and owner, supported variables and model…
Applications and Integration
Pin a supported model ID when reproducibility, regression attribution, or a controlled rollback matters. For the first-party Claude API, IDs introduced from the 4.6 generation onward are pinned snapshots even when the identifier has no…
Applications and Integration
Version the application code together with its model ID or supported alias policy, production prompt and examples, output and tool contracts, parser, feature flags, limits, and relevant dependency versions. Give each asset an owner and a…
Applications and Integration
Use Claude JSON outputs when downstream code needs a defined response shape. Use strict tool use when Claude proposes arguments for a registered tool. On a supported Claude API model, the first uses output_config.format with type:…
Applications and Integration
Check the API outcome and completion metadata before using the JSON payload. A response with stop_reason: "refusal" can return HTTP 200, and stop_reason: "max_tokens" can leave JSON incomplete. Route these outcomes to explicit application…