pub struct WorkersConfig {
pub container: Option<String>,
pub keychain: HashMap<String, String>,
pub command: Option<String>,
pub args: Option<Vec<String>>,
pub model: Option<String>,
pub env: HashMap<String, String>,
pub agent: Option<String>,
pub options: HashMap<String, String>,
pub instructions: Option<String>,
}Fields§
§container: Option<String>Docker image used to run worker agents; omit for local execution.
keychain: HashMap<String, String>Map of secret names to keychain item names resolved at worker launch time.
command: Option<String>Executable used to run worker agents (deprecated — use agent instead).
args: Option<Vec<String>>Default arguments passed to the worker command (deprecated — use agent instead).
model: Option<String>AI model override passed to the worker command; empty means use the command default.
env: HashMap<String, String>Environment variables injected into every worker process.
agent: Option<String>Built-in agent identifier (e.g. "claude"). Takes precedence over command/args.
options: HashMap<String, String>Key-value options forwarded to the agent wrapper as APM_OPT_<KEY> env vars.
instructions: Option<String>Global instructions file used as the system prompt for all profiles; overridden by per-profile instructions.
Implementations§
Source§impl WorkersConfig
impl WorkersConfig
pub fn merge_local(&mut self, local: &LocalWorkersOverride)
Trait Implementations§
Source§impl Clone for WorkersConfig
impl Clone for WorkersConfig
Source§fn clone(&self) -> WorkersConfig
fn clone(&self) -> WorkersConfig
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 Debug for WorkersConfig
impl Debug for WorkersConfig
Source§impl Default for WorkersConfig
impl Default for WorkersConfig
Source§impl<'de> Deserialize<'de> for WorkersConfig
impl<'de> Deserialize<'de> for WorkersConfig
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 WorkersConfig
impl JsonSchema for WorkersConfig
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 WorkersConfig
impl RefUnwindSafe for WorkersConfig
impl Send for WorkersConfig
impl Sync for WorkersConfig
impl Unpin for WorkersConfig
impl UnsafeUnpin for WorkersConfig
impl UnwindSafe for WorkersConfig
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