Skip to main content

default_capability_input

Function default_capability_input 

Source
pub fn default_capability_input(
    options: &CallOptions,
    ctx: &MiddlewareContext<'_>,
) -> JsonValue
Expand description

The default capability input:

{
  "model": { "provider": "..", "model_id": ".." },
  "call": "generate" | "stream",
  "tools": [ { "name": "..", "provider_defined": false }, .. ],
  "tool_choice": <tool choice or null>
}