ccproxy.testing.endpoints.tools¶
ccproxy.testing.endpoints.tools
¶
Function-tool helpers used by the endpoint test harness.
get_weather
¶
Get current weather for a location.
Source code in ccproxy/testing/endpoints/tools.py
calculate_distance
¶
Calculate distance between two geographic coordinates.
Source code in ccproxy/testing/endpoints/tools.py
calculate
¶
Perform basic arithmetic calculations.
Source code in ccproxy/testing/endpoints/tools.py
generate_json_schema_for_function
¶
Generate JSON schema for a function.
Source code in ccproxy/testing/endpoints/tools.py
handle_tool_call
¶
Handle tool calls by routing to appropriate functions.
Source code in ccproxy/testing/endpoints/tools.py
create_openai_tools
¶
Create OpenAI-compatible tool definitions with JSON schemas.
Source code in ccproxy/testing/endpoints/tools.py
create_anthropic_tools
¶
Create Anthropic-compatible tool definitions with JSON schemas.
Source code in ccproxy/testing/endpoints/tools.py
create_codex_tools
¶
Create Codex-compatible tool definitions.