pub struct WorkerProfileConfig {
pub command: Option<String>,
pub args: Option<Vec<String>>,
pub model: Option<String>,
pub env: HashMap<String, String>,
pub container: Option<String>,
pub instructions: Option<String>,
pub role_prefix: Option<String>,
pub agent: Option<String>,
pub options: HashMap<String, String>,
pub role: Option<String>,
}Fields§
§command: Option<String>Override the worker command for this profile (deprecated — use agent instead).
args: Option<Vec<String>>Override the worker command arguments for this profile (deprecated — use agent instead).
model: Option<String>Override the AI model for this profile.
env: HashMap<String, String>Extra environment variables merged into the worker environment for this profile.
container: Option<String>Override the Docker image for this profile.
instructions: Option<String>Additional instructions prepended to the worker prompt for this profile.
role_prefix: Option<String>Role label prepended to the worker identity string for this profile.
agent: Option<String>Built-in agent identifier for this profile. Overrides [workers] agent.
options: HashMap<String, String>Key-value options for this profile, merged over [workers.options].
role: Option<String>Role name used to select the per-agent instruction file (e.g. “worker”, “spec-writer”). Defaults to “worker” when absent.
Trait Implementations§
Source§impl Clone for WorkerProfileConfig
impl Clone for WorkerProfileConfig
Source§fn clone(&self) -> WorkerProfileConfig
fn clone(&self) -> WorkerProfileConfig
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 WorkerProfileConfig
impl Debug for WorkerProfileConfig
Source§impl Default for WorkerProfileConfig
impl Default for WorkerProfileConfig
Source§fn default() -> WorkerProfileConfig
fn default() -> WorkerProfileConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for WorkerProfileConfig
impl<'de> Deserialize<'de> for WorkerProfileConfig
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 WorkerProfileConfig
impl JsonSchema for WorkerProfileConfig
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
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 is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for WorkerProfileConfig
impl RefUnwindSafe for WorkerProfileConfig
impl Send for WorkerProfileConfig
impl Sync for WorkerProfileConfig
impl Unpin for WorkerProfileConfig
impl UnsafeUnpin for WorkerProfileConfig
impl UnwindSafe for WorkerProfileConfig
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