One read of Claude Developer Platformapi-20261119T210708Z
1 pages moved out of 923 read.
Pages moved
1
significant first
Pages read
923
in this capture
Captured
21:07 UTC
Corpus hash
23d104e9cf5e
corpus-hash
What this read moved
1-1 of 1test-and-evaluate/strengthen-guardrails/reduce-latency Changed · +9 / -1 lines
from line 205
205205Here are some tips to help you optimize your prompts and outputs:
206206
207207* **Be clear but concise:** Aim to convey your intent clearly and concisely in the prompt. Avoid unnecessary details or redundant information, while keeping in mind that [Claude lacks context](https://platform.claude.com/docs/en/build-with-claude/prompt-engineering/claude-prompting-best-practices#be-clear-and-direct) on your use case and might not make the intended inferences if instructions are unclear.
208* **Ask for shorter responses:** Ask Claude directly to be concise. If Claude is outputting unwanted length, ask Claude to [reduce its verbosity](https://platform.claude.com/docs/en/build-with-claude/prompt-engineering/claude-prompting-best-practices#be-clear-and-direct).
208* **Ask for shorter responses:** Ask Claude directly to be concise. If Claude is outputting unwanted length, ask Claude to [reduce its verbosity](https://platform.claude.com/docs/en/build-with-claude/prompt-engineering/claude-prompting-best-practices#communication-style-and-verbosity).
209209 <Tip>
210210 Because of how LLMs count
211211
from line 237
237237## Next steps
238238
239239<CardGroup cols={2}>
240 <Card title="Claude Cookbook: latency optimization on the Claude API" icon="book" href="https://platform.claude.com/cookbook/latency-optimization-latency-optimization">
241 Follow a runnable notebook that builds a latency eval for a sample agent, applies one technique at a time, and checks that output quality stays above a threshold.
242 </Card>
243
240244 <Card title="Reduce hallucinations" icon="shield" href="https://platform.claude.com/docs/en/test-and-evaluate/strengthen-guardrails/reduce-hallucinations">
241245 Minimize hallucinations in Claude’s outputs by allowing uncertainty, grounding responses in direct quotes, and verifying claims with citations.
242246 </Card>
from line 247
243247
244248 <Card title="Streaming messages" icon="bolt" href="https://platform.claude.com/docs/en/build-with-claude/streaming">
245249 Stream Messages API responses incrementally with server-sent events, including text, tool use, and extended thinking deltas.
250 </Card>
251
252 <Card title="Claude API skill" icon="terminal" href="https://platform.claude.com/docs/en/agents-and-tools/agent-skills/claude-api-skill">
253 Run `/claude-api latency-optimize` in Claude Code to measure where your application waits for the Claude API, and to test changes that shorten the wait without lowering output quality.
246254 </Card>
247255</CardGroup>
248256