pub struct DefineArgs {
pub name: Option<String>,
pub model: Option<String>,
pub role: Option<String>,
pub tools: Option<Vec<String>>,
pub base_url: Option<String>,
pub api_key: Option<String>,
pub read_only: bool,
pub effort: Option<String>,
}Expand description
The arguments of a wcode_harness::protocol::Request::Define, passed to a
DefineHandler. Mirrors the CLI’s worker spec.
Fields§
§name: Option<String>The worker’s address; auto-assigned when absent.
model: Option<String>Model id override; None inherits the server’s model.
role: Option<String>Role text appended to the worker’s system prompt.
tools: Option<Vec<String>>Tool allow-list; None = the full default set.
base_url: Option<String>Provider base URL override; None inherits the server’s.
api_key: Option<String>Provider API key override; None inherits the server’s.
read_only: boolEnforce read-only for the defined worker (D1/D2).
effort: Option<String>Reasoning-effort override (D3); None inherits, synonyms clear.
Trait Implementations§
Source§impl Clone for DefineArgs
impl Clone for DefineArgs
Source§impl Debug for DefineArgs
impl Debug for DefineArgs
Auto Trait Implementations§
impl Freeze for DefineArgs
impl RefUnwindSafe for DefineArgs
impl Send for DefineArgs
impl Sync for DefineArgs
impl Unpin for DefineArgs
impl UnsafeUnpin for DefineArgs
impl UnwindSafe for DefineArgs
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