Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion crates/libsy-llm-client/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,17 @@ opentelemetry = { version = "0.32", default-features = false, features = ["metri
parking_lot.workspace = true
http.workspace = true
httpdate.workspace = true
safetensors = "0.4"
serde.workspace = true
serde_json.workspace = true
thiserror.workspace = true
tokio.workspace = true
tracing.workspace = true
tracing-opentelemetry.workspace = true

[dev-dependencies]
# SDK + in-memory exporter to assert what the observability layer records.
opentelemetry_sdk = { version = "0.32", features = ["metrics", "testing", "trace"] }
thiserror.workspace = true
tempfile = "3"
tracing-subscriber.workspace = true
wiremock = "0.6"
5 changes: 5 additions & 0 deletions crates/libsy-llm-client/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ mod observability;
mod observation;
pub mod raw;
pub mod run;
pub mod vllm_hidden_state_probe;

pub use backend::{Backend, DEFAULT_MAX_RETRIES, HttpBackendConfig};
pub use client::{ModelConfig, TranslatingLlmClient};
Expand All @@ -32,6 +33,10 @@ pub use observation::{LlmCallObservation, RunObservation, RunObserver};
pub use raw::RawResponse;
pub use run::{ClientRouter, run};
pub use switchyard_translation::RawEventStream;
pub use vllm_hidden_state_probe::{
HiddenStateFeatures, VllmHiddenStateProbe, VllmHiddenStateProbeConfig,
VllmHiddenStateProbeError, VllmHiddenStateProbeResult,
};

/// Registers process-wide compatibility gauges with the global meter provider.
pub fn initialize_metrics() {
Expand Down
Loading