ReferenceClient SDKsRust
Convenience helpers
Rust SDK convenience constructors for content, credentials, model registries, spaces, and retrieval.
These helpers construct typed requests. Fields remain editable before a resource method sends them.
Constructors
EndpointAuthentication::api_key— Construct API-key credentials. Debug output redacts the key.JsonMemoryCreationRequest::text— Create a plain-text memory request.JsonMemoryCreationRequest::bytes— Encode binary content as base64 with an explicit MIME type.EmbedderCreationRequest::from_model— Fill provider, endpoint, dimensions, and credentials from the bundled registry.LlmCreationRequest::from_model— Fill known provider defaults; explicit request structs support custom models.RerankerCreationRequest::from_model— Fill known provider defaults; explicit request structs support custom models.SpaceCreationRequest::new— Use the shared default chunking policy and explicit embedder weights.RetrieveMemoryRequest::new— Build a query over spaces; filters, weights, context, and postprocessing remain editable.
Functions
registry
pub fn registry(name: &str) ->Result<serde_json::Value>
Return an owned copy of a shared model registry.
registry accepts providers, embedders, llms, and rerankers. Unknown registry names return Error::InvalidInput.