mirror of
https://github.com/anthropics/skills.git
synced 2026-08-02 13:05:28 +08:00
Update claude-api skill: Claude Sonnet 5 and Managed Agents July updates (#1373)
This commit is contained in:
@@ -498,7 +498,7 @@ response = client.messages.create(
|
||||
|
||||
# Use Sonnet for high-volume production workloads
|
||||
standard_response = client.messages.create(
|
||||
model="claude-sonnet-4-6", # $3.00/$15.00 per 1M tokens
|
||||
model="claude-sonnet-5", # $3.00/$15.00 per 1M tokens
|
||||
max_tokens=16000,
|
||||
messages=[{"role": "user", "content": "Summarize this document"}]
|
||||
)
|
||||
|
||||
@@ -61,6 +61,7 @@ session = client.beta.sessions.create(
|
||||
environment_id=environment.id,
|
||||
)
|
||||
print(session.id, session.status)
|
||||
print(f"Trace: https://platform.claude.com/workspaces/default/sessions/{session.id}")
|
||||
```
|
||||
|
||||
### With system prompt and custom tools
|
||||
|
||||
Reference in New Issue
Block a user