pub struct FineTuneReinforcementRequestInput {
pub messages: Vec<FineTuneReinforcementRequestInputMessages>,
pub tools: Option<Vec<ChatCompletionTool>>,
}
Expand description
Per-line training example for reinforcement fine-tuning. Note that messages
and tools
are the only reserved keywords. Any other arbitrary key-value data can be included on training datapoints and will be available to reference during grading under the {{ item.XXX }}
template variable.
Fields§
§messages: Vec<FineTuneReinforcementRequestInputMessages>
§tools: Option<Vec<ChatCompletionTool>>
A list of tools the model may generate JSON inputs for.
Implementations§
Source§impl FineTuneReinforcementRequestInput
impl FineTuneReinforcementRequestInput
Sourcepub fn builder() -> FineTuneReinforcementRequestInputBuilder<((), ())>
pub fn builder() -> FineTuneReinforcementRequestInputBuilder<((), ())>
Create a builder for building FineTuneReinforcementRequestInput
.
On the builder, call .messages(...)
, .tools(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of FineTuneReinforcementRequestInput
.
Trait Implementations§
Source§impl Clone for FineTuneReinforcementRequestInput
impl Clone for FineTuneReinforcementRequestInput
Source§fn clone(&self) -> FineTuneReinforcementRequestInput
fn clone(&self) -> FineTuneReinforcementRequestInput
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'de> Deserialize<'de> for FineTuneReinforcementRequestInput
impl<'de> Deserialize<'de> for FineTuneReinforcementRequestInput
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 FineTuneReinforcementRequestInput
impl PartialEq for FineTuneReinforcementRequestInput
Source§fn eq(&self, other: &FineTuneReinforcementRequestInput) -> bool
fn eq(&self, other: &FineTuneReinforcementRequestInput) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for FineTuneReinforcementRequestInput
Auto Trait Implementations§
impl Freeze for FineTuneReinforcementRequestInput
impl RefUnwindSafe for FineTuneReinforcementRequestInput
impl Send for FineTuneReinforcementRequestInput
impl Sync for FineTuneReinforcementRequestInput
impl Unpin for FineTuneReinforcementRequestInput
impl UnwindSafe for FineTuneReinforcementRequestInput
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