Crate chronicle_proxy

Source
Expand description

Chronicle LLM Proxy and Observability tool. This is the implementation of the proxy which can be embedded into a Rust application. For other uses you may want to try the full-fledged API application in the chronicle-api crate.

Re-exports§

pub use error::Error;

Modules§

builder
config
database
error
format
The common format for requests. This mostly hews to the OpenAI format except some response fields are made optional to accomodate different model providers.
providers
request
Utilities for retrying a provider request as needed.
workflow_events

Structs§

CollectedResponse
ModelAndProvider
ProxiedChatResponse
ProxiedChatResponseMeta
Proxy
The Chronicle proxy object
ProxyRequestInternalMetadata
Metadata about the internal source of this request. Mostly useful for multi-tenant scenarios where one proxy server is handling requests from multiple unrelated applications.
ProxyRequestMetadata
Metadata about the request and how it fits into the system as a whole. All of these fields are optional, and the extra field can be used to add anything else that useful for your use case.
ProxyRequestOptions

Functions§

collect_response
Collect a stream contents into a single response

Type Aliases§

AnyChatModelProvider