pub struct Settings<'w, 's> {
pub preambles: Query<'w, 's, &'static Preamble>,
pub temperatures: Query<'w, 's, &'static Temperature>,
pub max_tokens: Query<'w, 's, &'static MaxTokens>,
pub unknown_finishes: Query<'w, 's, &'static AcceptUnknownFinishReasons>,
pub params: Query<'w, 's, &'static AdditionalParams>,
pub options: Query<'w, 's, &'static Options>,
pub provider_options: Query<'w, 's, &'static ProviderOptions>,
pub choices: Query<'w, 's, &'static ToolChoiceSpec>,
pub outputs: Query<'w, 's, &'static Output>,
pub output_tools: Query<'w, 's, &'static OutputToolConfig>,
pub tool_access: Query<'w, 's, &'static ToolAccess>,
pub tool_result_limits: Query<'w, 's, &'static ToolResultLimit>,
}Expand description
The request settings fold_turn resolves, the run’s over the agent’s.
Fields§
§preambles: Query<'w, 's, &'static Preamble>The preamble.
temperatures: Query<'w, 's, &'static Temperature>The temperature.
max_tokens: Query<'w, 's, &'static MaxTokens>The token budget.
unknown_finishes: Query<'w, 's, &'static AcceptUnknownFinishReasons>Whether unknown finish reasons stop normally.
params: Query<'w, 's, &'static AdditionalParams>The provider’s extra parameters.
options: Query<'w, 's, &'static Options>The portable generation options.
provider_options: Query<'w, 's, &'static ProviderOptions>The typed per-provider options.
choices: Query<'w, 's, &'static ToolChoiceSpec>The tool choice.
outputs: Query<'w, 's, &'static Output>The output mode.
output_tools: Query<'w, 's, &'static OutputToolConfig>The output tool’s reserved name, description and preamble behavior.
tool_access: Query<'w, 's, &'static ToolAccess>Execution bindings and permissions, separate from advertisements.
tool_result_limits: Query<'w, 's, &'static ToolResultLimit>The request-time size policy for tool-result text.
Trait Implementations§
impl<'w, 's> ReadOnlySystemParam for Settings<'w, 's>where
Query<'w, 's, &'static Preamble>: ReadOnlySystemParam,
Query<'w, 's, &'static Temperature>: ReadOnlySystemParam,
Query<'w, 's, &'static MaxTokens>: ReadOnlySystemParam,
Query<'w, 's, &'static AcceptUnknownFinishReasons>: ReadOnlySystemParam,
Query<'w, 's, &'static AdditionalParams>: ReadOnlySystemParam,
Query<'w, 's, &'static Options>: ReadOnlySystemParam,
Query<'w, 's, &'static ProviderOptions>: ReadOnlySystemParam,
Query<'w, 's, &'static ToolChoiceSpec>: ReadOnlySystemParam,
Query<'w, 's, &'static Output>: ReadOnlySystemParam,
Query<'w, 's, &'static OutputToolConfig>: ReadOnlySystemParam,
Query<'w, 's, &'static ToolAccess>: ReadOnlySystemParam,
Query<'w, 's, &'static ToolResultLimit>: ReadOnlySystemParam,
Source§impl SystemParam for Settings<'_, '_>
impl SystemParam for Settings<'_, '_>
Source§type Item<'w, 's> = Settings<'w, 's>
type Item<'w, 's> = Settings<'w, 's>
The item type returned when constructing this system param.
The value of this associated type should be
Self, instantiated with new lifetimes. Read moreSource§fn init_access(
state: &Self::State,
system_meta: &mut SystemMeta,
component_access_set: &mut FilteredAccessSet,
world: &mut World,
)
fn init_access( state: &Self::State, system_meta: &mut SystemMeta, component_access_set: &mut FilteredAccessSet, world: &mut World, )
Source§fn apply(state: &mut Self::State, system_meta: &SystemMeta, world: &mut World)
fn apply(state: &mut Self::State, system_meta: &SystemMeta, world: &mut World)
Applies any deferred mutations stored in this
SystemParam’s state.
This is used to apply Commands during ApplyDeferred.Source§fn queue(
state: &mut Self::State,
system_meta: &SystemMeta,
world: DeferredWorld<'_>,
)
fn queue( state: &mut Self::State, system_meta: &SystemMeta, world: DeferredWorld<'_>, )
Queues any deferred mutations to be applied at the next
ApplyDeferred.Source§unsafe fn get_param<'w, 's>(
state: &'s mut Self::State,
system_meta: &SystemMeta,
world: UnsafeWorldCell<'w>,
change_tick: Tick,
) -> Result<Self::Item<'w, 's>, SystemParamValidationError>
unsafe fn get_param<'w, 's>( state: &'s mut Self::State, system_meta: &SystemMeta, world: UnsafeWorldCell<'w>, change_tick: Tick, ) -> Result<Self::Item<'w, 's>, SystemParamValidationError>
Creates a parameter to be passed into a
SystemParamFunction. Read moreAuto Trait Implementations§
impl<'w, 's> !RefUnwindSafe for Settings<'w, 's>
impl<'w, 's> !UnwindSafe for Settings<'w, 's>
impl<'w, 's> Freeze for Settings<'w, 's>
impl<'w, 's> Send for Settings<'w, 's>
impl<'w, 's> Sync for Settings<'w, 's>
impl<'w, 's> Unpin for Settings<'w, 's>
impl<'w, 's> UnsafeUnpin for Settings<'w, 's>
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
impl<T> ConditionalSend for Twhere
T: Send,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Converts
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Converts
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Converts
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Converts
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSend for T
impl<T> DowncastSend for T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoResult<T> for T
impl<T> IntoResult<T> for T
Source§fn into_result(self) -> Result<T, RunSystemError>
fn into_result(self) -> Result<T, RunSystemError>
Converts this type into the system output type.