This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| """ | |
| Test script to verify if token counting works with code_execution_20250522 tool. | |
| This answers Brad's question: "Does token counting not work with code_execution_20250522?" | |
| According to the docs: | |
| - Token counting: https://docs.anthropic.com/en/docs/build-with-claude/token-counting | |
| - Code execution tool: https://docs.anthropic.com/en/docs/agents-and-tools/tool-use/code-execution-tool | |
| """ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "type": "object", | |
| "properties": { | |
| "command": { | |
| "type": "string", | |
| "description": "The command to execute" | |
| }, | |
| "timeout": { | |
| "type": "number", | |
| "description": "Optional timeout in milliseconds (max 600000)" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "openapi": "3.1.0", | |
| "info": { | |
| "title": "Anthropic API", | |
| "version": "138" | |
| }, | |
| "paths": { | |
| "/v1/messages": { | |
| "post": { | |
| "summary": "Create a Message", |
OlderNewer