pub struct AgentCompletionCreateParams {
pub messages: Vec<Message>,
pub provider: Option<Provider>,
pub agent: InlineAgentBaseWithFallbacksOrRemoteCommitOptional,
pub response_format: Option<ResponseFormatParam>,
pub seed: Option<i64>,
pub stream: Option<bool>,
pub continuation: Option<String>,
}Expand description
Parameters for creating a agent completion.
Fields§
§messages: Vec<Message>The conversation messages.
provider: Option<Provider>Provider routing preferences.
agent: InlineAgentBaseWithFallbacksOrRemoteCommitOptionalThe agent to use (inline Agent or stored ID).
response_format: Option<ResponseFormatParam>Output format constraints (text, JSON, or JSON schema).
seed: Option<i64>Random seed for deterministic generation.
stream: Option<bool>Whether to stream the response.
continuation: Option<String>Continuation from a previous completion, as a base64-encoded string.
Trait Implementations§
Source§impl Clone for AgentCompletionCreateParams
impl Clone for AgentCompletionCreateParams
Source§fn clone(&self) -> AgentCompletionCreateParams
fn clone(&self) -> AgentCompletionCreateParams
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AgentCompletionCreateParams
impl Debug for AgentCompletionCreateParams
Source§impl<'de> Deserialize<'de> for AgentCompletionCreateParams
impl<'de> Deserialize<'de> for AgentCompletionCreateParams
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 JsonSchema for AgentCompletionCreateParams
impl JsonSchema for AgentCompletionCreateParams
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for AgentCompletionCreateParams
impl RefUnwindSafe for AgentCompletionCreateParams
impl Send for AgentCompletionCreateParams
impl Sync for AgentCompletionCreateParams
impl Unpin for AgentCompletionCreateParams
impl UnsafeUnpin for AgentCompletionCreateParams
impl UnwindSafe for AgentCompletionCreateParams
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more