#[non_exhaustive]pub struct TaskProfile {Show 13 fields
pub enabled: bool,
pub model: Option<String>,
pub escalate_to: Option<String>,
pub temperature: Option<f32>,
pub vote_temperature: f32,
pub max_output_tokens: Option<u32>,
pub reasoning_effort: Option<ReasoningEffort>,
pub timeout_secs: Option<u64>,
pub votes: u8,
pub on_disagreement: Disagreement,
pub repairs: u8,
pub retries: u8,
pub review: bool,
}Expand description
How one task kind is run.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.enabled: boolWhether the task runs at all; optional tasks are switched off here.
model: Option<String>The pool tag of the model that answers. None takes the pool’s order.
escalate_to: Option<String>The pool tag of the model an escalation runs on. None never escalates.
temperature: Option<f32>Sampling temperature. None keeps the provider’s default.
vote_temperature: f32Temperature for votes when more than one is cast.
max_output_tokens: Option<u32>Output cap in tokens.
reasoning_effort: Option<ReasoningEffort>How much a reasoning model may think.
timeout_secs: Option<u64>Deadline of one call in seconds; the turn’s budget may shorten it.
votes: u8Answers sampled and compared; 1 means no vote.
on_disagreement: DisagreementWhat a vote without a strict majority leads to.
repairs: u8Rounds that send a structurally wrong answer back with the error.
retries: u8Times a call is sent again as it was, after a provider failure another try can change: a refusal, a filter, a broken answer, a timeout.
review: boolWhether a written block is reviewed before it is published.
Implementations§
Source§impl TaskProfile
impl TaskProfile
Sourcepub fn default_for(kind: TaskKind) -> Self
pub fn default_for(kind: TaskKind) -> Self
The shipped profile of kind.
Sourcepub fn with_votes(self, votes: u8) -> Self
pub fn with_votes(self, votes: u8) -> Self
A copy casting votes answers.
Sourcepub fn escalating_to(self, tag: impl Into<String>) -> Self
pub fn escalating_to(self, tag: impl Into<String>) -> Self
A copy escalating to the model tagged tag.
Sourcepub fn on_disagreement(self, disagreement: Disagreement) -> Self
pub fn on_disagreement(self, disagreement: Disagreement) -> Self
A copy deciding a vote without a majority as disagreement says.
Sourcepub fn with_repairs(self, repairs: u8) -> Self
pub fn with_repairs(self, repairs: u8) -> Self
A copy with repairs repair rounds.
Sourcepub fn with_reasoning(self, reasoning: Option<ReasoningEffort>) -> Self
pub fn with_reasoning(self, reasoning: Option<ReasoningEffort>) -> Self
A copy thinking as much as reasoning allows.
Sourcepub fn with_review(self, review: bool) -> Self
pub fn with_review(self, review: bool) -> Self
A copy whose written block is reviewed, or not.