pub struct WorkflowAnthropicModel {
pub provider: ProviderTrue,
pub model: ModelTrue,
pub thinking: Option<AnthropicThinkingConfig>,
pub temperature: Option<f64>,
pub max_tokens: Option<f64>,
}
Fields§
§provider: ProviderTrue
This is the provider of the model (anthropic
).
model: ModelTrue
This is the specific model that will be used.
thinking: Option<AnthropicThinkingConfig>
This is the optional configuration for Anthropic’s thinking feature. - Only applicable for claude-3-7-sonnet-20250219
model. - If provided, maxTokens
must be greater than thinking.budgetTokens
.
temperature: Option<f64>
This is the temperature of the model.
max_tokens: Option<f64>
This is the max tokens of the model.
Implementations§
Source§impl WorkflowAnthropicModel
impl WorkflowAnthropicModel
pub fn new(provider: ProviderTrue, model: ModelTrue) -> WorkflowAnthropicModel
Trait Implementations§
Source§impl Clone for WorkflowAnthropicModel
impl Clone for WorkflowAnthropicModel
Source§fn clone(&self) -> WorkflowAnthropicModel
fn clone(&self) -> WorkflowAnthropicModel
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for WorkflowAnthropicModel
impl Debug for WorkflowAnthropicModel
Source§impl Default for WorkflowAnthropicModel
impl Default for WorkflowAnthropicModel
Source§fn default() -> WorkflowAnthropicModel
fn default() -> WorkflowAnthropicModel
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for WorkflowAnthropicModel
impl<'de> Deserialize<'de> for WorkflowAnthropicModel
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for WorkflowAnthropicModel
impl PartialEq for WorkflowAnthropicModel
Source§impl Serialize for WorkflowAnthropicModel
impl Serialize for WorkflowAnthropicModel
impl StructuralPartialEq for WorkflowAnthropicModel
Auto Trait Implementations§
impl Freeze for WorkflowAnthropicModel
impl RefUnwindSafe for WorkflowAnthropicModel
impl Send for WorkflowAnthropicModel
impl Sync for WorkflowAnthropicModel
impl Unpin for WorkflowAnthropicModel
impl UnwindSafe for WorkflowAnthropicModel
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more