66 questionsQuestion · Short answer
Prompt Engineering & Structured Output
Use output_config.format with type json_schema to constrain Claude’s response text to a JSON Schema. Set strict: true on a tool when the model-generated inputs to that tool need schema constraints. On a supported Claude Messages API…
Prompt Engineering & Structured Output
For long-document work, place the supplied documents before the task query and task-specific instructions in the prompt. Give each document a visible boundary and a stable source identifier so Claude can refer to evidence that the…
Prompt Engineering & Structured Output
Write a Claude prompt contract that states the task and audience, which inputs count as evidence, which decisions Claude may propose, what a satisfactory response contains, and when it should ask for clarification, stop, or escalate. For…
Prompt Engineering & Structured Output
Pass a validated intermediate artifact with a stable request ID, the result, evidence references, and any unresolved items or confidence indicators the next stage needs. Define each stage’s accepted inputs, output contract, owner, and…
Prompt Engineering & Structured Output
Give each Messages request a stable custom_id unique within its batch. Record the mapping to the input and source version, submit the validated records, and poll the batch ID until processing_status is ended . Retrieve the JSONL results…
Context Management & Reliability
Choose the technique that addresses the source of context pressure. On a supported Claude API model and deployment, use tool search to defer rarely needed tool definitions, programmatic tool calling to keep suitable intermediate results…
Prompt Engineering & Structured Output
After a complete Claude response passes schema validation, check its meaning against the original evidence, the application’s current policy, and the proposed action. A valid value such as "priority": "high" has the expected shape. Accept…
Agentic Architecture & Orchestration
For a Claude Messages API response with stop_reason: "pause_turn" , preserve the earlier messages and append the returned content unchanged as an assistant message. Send another request with the same tools and no new user message after…
Agentic Architecture & Orchestration
Keep the customer target unresolved until an approved verification process identifies the intended account. Ask for the minimum appropriate additional identifier, such as an order reference. Choosing the first result, the closest name or…
Agentic Architecture & Orchestration
A completed, successful search with zero matches supports a scoped conclusion: no matches were found for that query in the examined collection. A timeout, permission denial or unread page leaves evidence unavailable or incomplete. Neither…
Agentic Architecture & Orchestration
A Claude coordinator should compare the returned reports with the original acceptance criteria, reconcile their assumptions and inspect the evidence behind the combined conclusion. Several completed assignments can still leave the overall…
Context Management & Reliability
Audit automatically accepted extractions as well as the cases already sent for human review. Randomly sample within declared segments, retain the selection probabilities and correctness judgments, and account for unequal sampling when…