mod events;
mod request;
#[derive(Debug, Clone)]
pub struct AnthropicScheme {
pub api_version: String,
pub fine_grained_tool_streaming: bool,
}
impl Default for AnthropicScheme {
fn default() -> Self {
Self {
api_version: "2023-06-01".to_string(),
fine_grained_tool_streaming: true,
}
}
}
impl AnthropicScheme {
pub fn new() -> Self {
Self::default()
}
pub fn with_fine_grained_tool_streaming(mut self, enabled: bool) -> Self {
self.fine_grained_tool_streaming = enabled;
self
}
}