provider_adapter

Convert between LLM provider tool formats (openai, anthropic, google, mcp) and Record collections. Actions: import_tools (create collections from tool definitions), export_tools (export collections as tool definitions), import_tool_call (create a record from a tool call in provider format).

Parameters

NameTypeRequiredDescription
actionenum: import_tools | export_tools | import_tool_callYes
workspace_idstringYesTarget workspace ID
providerenumYesLLM provider format
toolsarrayNoArray of tool definitions in provider format (import_tools)
collection_idsarrayNoCollection IDs to export (export_tools, omit for all)
collectionstringNoTarget collection (import_tool_call)
call_dataobjectNoTool call data in provider format (import_tool_call)
external_idstringNoExternal ID for idempotent upsert (import_tool_call)
external_sourcestringNoExternal source identifier (import_tool_call)