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–1792
Fields
model
stringapi_key
ai.Credential | nullbase_url
ai.Credential | nullrequest_timeout_ms
int | 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
id
(self) -> string throws neverinvoke
(render
(Preview the request without resolving credentials or performing IO.
Source:<builtin>/typesafeai/client.bamlbytes 1125–1790