Skip to main content

render_json

Function render_json 

Source
pub fn render_json(action: &Tool, provider: ProviderKind) -> Result<Value>
Expand description

Render an Tool into provider-native JSON.

Returns DejaDbError::ToolRenderUnsupported (MEM-E107) when the action lacks fields the provider requires (e.g. Gemini needs input_schema with type: "object") or when the provider is text-shaped.