Conversation
Add schema export in standard LLM formats (OpenAI, Anthropic, Generic) for integrating Eryx callbacks with LLM tool-calling APIs. New features: - Add ToolFormat enum for specifying target LLM format - Add export_tool_schemas() method to Sandbox for exporting callbacks as tools - Add execute_tool_call() method to Sandbox for executing tool calls from LLM responses - Add ParsedToolCall struct for parsed tool call data - Add ToolCallError for tool-related errors - Add format_tool_result() helper for formatting results The llm module provides utilities for: 1. Schema Export - Convert Eryx callbacks to LLM-compatible tool definitions 2. Tool Call Execution - Parse and execute tool calls from LLM responses Supported formats: - OpenAI: function calling format with type/function/parameters structure - Anthropic: tool_use format with name/input_schema structure - Generic: Provider-agnostic JSON Schema format Closes: eryx-3va
sd2k
force-pushed
the
feature/llm-tool-calling
branch
from
January 16, 2026 22:23
e1f9ac1 to
bd7b910
Compare
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
ToolFormatenum (OpenAI, Anthropic, Generic)export_tool_schemas()to export callbacks as LLM tool schemasexecute_tool_call()to execute tool calls from LLM responsesllmmodule with 655 lines of implementationTest plan
🤖 Generated with Claude Code