typesafeai.Client
TypeSafe's JEV classifier (POST {base_url}/systemone). Bool and float outputs use Noul; enums and finite unions use Choice. Classes are flattened into one question per leaf. Unsupported output types, empty instructions, tools, and media are rejected before HTTP. JEV does not stream. Use invoke or an ordinary LLM function call.
Signature
class typesafeai.ClientTypeSafe's JEV classifier (POST {base_url}/systemone). Bool and float outputs use Noul; enums and finite unions use Choice. Classes are flattened into one question per leaf. Unsupported output types, empty instructions, tools, and media are rejected before HTTP. JEV does not stream. Use invoke or an ordinary LLM function call.
Source:<builtin>/typesafeai/client.bamlbytes 349–2139
Fields
model
stringapi_key
ai.Credential | nullbase_url
ai.Credential | nulltimeout
baml.time.Duration | ai.LlmTimeoutOptions | nullcapture_wire
boolStatic methods
new
(Construction is pure. Credentials resolve when invoking, using TYPESAFE_API_KEY unless an explicit credential is provided.
Implementations
ai.Client for typesafeai.Client
Instance methods
default_cache_args
(self) -> baml.json.json throws neverThe args this client uses for a ${cache()} written with none (or
with null): the object its wire's cache marker carries. Null when the
client has no cache marker on its wire, or when the model it is
configured for would reject one; a ${cache()} then sends nothing.
A client that sends cache markers passes this to
ai.wire.prompt_parts(message, default_cache_args).
id
(self) -> string throws neverinvoke
(render
(Preview the request without resolving credentials or performing IO.
Source:<builtin>/typesafeai/client.bamlbytes 1472–2137