Expand description
kora-models: model-provider clients with schema-constrained JSON output
for the analyze() language primitive.
Synchronous/blocking HTTP only (the interpreter is a sync tree-walker).
Structs§
- Analyze
Request - Model
Config - Model
Error - Schema
- JSON-schema-ish description of the expected result shape.
Built by the runtime from Kora
typedeclarations. - Schema
Field - A model-visible field and its native Kora metadata.
- Tool
Exchange - One completed tool call and its result.
- Tool
Spec - A function the model may call. Built from a Kora
tooldeclaration: the signature becomes the schema, the docstring becomes the description.
Enums§
- Analyze
Outcome - Field
Type - Provider
- Step
- What the model wants next.
Functions§
- analyze
- Run one schema-constrained analyze call against the configured provider.
- parse_
model_ spec "openai:gpt-4o"/"local:llama3.1:8b"-> config.- step
- One turn of the tool loop: either the final answer, or a tool to run.