feat(inference): add tool schema translation layer
Description
Build a translation layer that converts MCP tool schemas (inputSchema in JSON Schema format) into the provider-native tools array format expected by the inference engine (e.g., OpenAI's function schema or Anthropic's tools parameter).
Why
MCP servers expose tools in MCP's JSON Schema format. The inference provider (OpenAI-compatible) expects a different schema structure. The harness must translate between the two so the LLM can understand the available tools when making completion requests.
Scope
Depends on: #8, #15
feat(inference): add tool schema translation layer
Description
Build a translation layer that converts MCP tool schemas (
inputSchemain JSON Schema format) into the provider-nativetoolsarray format expected by the inference engine (e.g., OpenAI'sfunctionschema or Anthropic'stoolsparameter).Why
MCP servers expose tools in MCP's JSON Schema format. The inference provider (OpenAI-compatible) expects a different schema structure. The harness must translate between the two so the LLM can understand the available tools when making completion requests.
Scope
toolsfield toCompletionRequesttype to carry tool definitionsinputSchema→ OpenAI-compatiblefunction.parametersformatDepends on: #8, #15