Crate artificial_core

Source

Modules§

backend
error
Unified error type exposed by artificial-core.
generic
Generic message and role types used by the artificial-core crate.
model
Model identifiers used throughout the artificial workspace.
schema_util
Helpers for turning Rust type information into JSON Schema that can be shipped alongside a prompt. The JSON is produced with schemars and can be forwarded to providers that support structured / function-calling responses (e.g. OpenAI’s response_format = json_schema).
template
Abstractions that tie a prompt to a concrete model and a typed response.

Structs§

ArtificialClient
A client bound to a single provider backend B.