provider_adapter

Convert between LLM provider tool formats (openai, anthropic, google, mcp) and Record record_types. Actions: import_tools (create record_types from tool definitions), export_tools (export record_types 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
base_idstringYesTarget database ID
providerenumYesLLM provider format
toolsarrayNoArray of tool definitions in provider format (import_tools)
record_type_idsarrayNoRecordType IDs to export (export_tools, omit for all)
record_typestringNoTarget record_type (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)
provider_adapter — Rekor