Skip to main content

Crate kora_models

Crate kora_models 

Source
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§

AnalyzeRequest
ModelConfig
ModelError
Schema
JSON-schema-ish description of the expected result shape. Built by the runtime from Kora type declarations.
SchemaField
A model-visible field and its native Kora metadata.
ToolExchange
One completed tool call and its result.
ToolSpec
A function the model may call. Built from a Kora tool declaration: the signature becomes the schema, the docstring becomes the description.

Enums§

AnalyzeOutcome
FieldType
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.