pub struct PartialSessionConfig {
pub schema: Option<String>,
pub workspace: Option<PartialWorkspaceConfig>,
pub tool_config: Option<PartialToolConfig>,
pub system_prompt: Option<String>,
pub metadata: Option<HashMap<String, String>>,
}Expand description
Partial session configuration that can be loaded from a TOML file. All fields are optional so users can specify only what they want to override.
Fields§
§schema: Option<String>§workspace: Option<PartialWorkspaceConfig>§tool_config: Option<PartialToolConfig>§system_prompt: Option<String>§metadata: Option<HashMap<String, String>>Trait Implementations§
Source§impl Debug for PartialSessionConfig
impl Debug for PartialSessionConfig
Source§impl Default for PartialSessionConfig
impl Default for PartialSessionConfig
Source§fn default() -> PartialSessionConfig
fn default() -> PartialSessionConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PartialSessionConfig
impl<'de> Deserialize<'de> for PartialSessionConfig
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 PartialSessionConfig
impl JsonSchema for PartialSessionConfig
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 PartialSessionConfig
impl RefUnwindSafe for PartialSessionConfig
impl Send for PartialSessionConfig
impl Sync for PartialSessionConfig
impl Unpin for PartialSessionConfig
impl UnsafeUnpin for PartialSessionConfig
impl UnwindSafe for PartialSessionConfig
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> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T> ErasedDestructor for Twhere
T: 'static,
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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request