pub struct AssistantMode {
pub mcp_servers: Vec<McpServerRef>,
pub interpreters: Vec<String>,
pub unsandboxed: bool,
pub skills: Vec<String>,
pub skills_dir: Option<String>,
pub skill_commands: bool,
pub network: AssistantNetwork,
pub files: Vec<String>,
pub read_only: Vec<String>,
pub context_file: Option<String>,
pub station_paths: Vec<String>,
}Expand description
What an assistant Run may use besides answering: its parts, so a handler builds the harness’s settings from them rather than from one fixed set.
Fields§
§mcp_servers: Vec<McpServerRef>The MCP servers the harness connects to and may call every tool of, and no other.
interpreters: Vec<String>Interpreters the harness may run inside its own sandbox (python3); empty means no
shell at all. A handler that cannot confine them refuses to start, unless
unsandboxed lets them run without it.
unsandboxed: boolRun the interpreters without the harness’s sandbox, where it has none: no file or
network limit applies to them. A weakening the Station reports; false refuses
interpreters a handler cannot confine.
skills: Vec<String>Skills the harness may load, by name, each installed in skills_dir; empty means none.
A handler that cannot limit skills to a list refuses a non-empty one.
skills_dir: Option<String>The absolute directory the Station installed skills in, laid out as a plugin of the
harness: skills/<name>/SKILL.md with each skill’s files, and a manifest
.claude-plugin/plugin.json naming the plugin ai6. Required with skills.
skill_commands: boolWhether a skill’s injected commands (!`command`) may run, through the harness’s
permission rules; false has the harness replace them with a notice.
network: AssistantNetworkWhat the harness’s own web tools and its interpreters may reach besides the MCP servers, which are always reachable.
files: Vec<String>Directories, relative to the working directory (personal), under which the harness
may create and change files; it may read anything in the working directory. Empty
means no file tool at all. A handler that cannot confine its file tools to them
refuses a non-empty list.
read_only: Vec<String>Paths, relative to the working directory (shared, CLAUDE.md), the interpreters may
not write although the rest of the working directory is theirs to write.
context_file: Option<String>A file outside the working directory whose text the harness gets as part of its system prompt: standing context too large for a command line. A handler that cannot pass a file refuses it.
station_paths: Vec<String>The Station’s own directories (its state, identity and secrets directories) the interpreters may never read, besides those a handler denies itself.
Implementations§
Source§impl AssistantMode
impl AssistantMode
Sourcepub fn moneypenny() -> Self
pub fn moneypenny() -> Self
The mode of a Moneypenny Run that has only her own tools: the Universal Exports endpoint, no interpreter and no skill.
Sourcepub fn with_cables(self) -> Self
pub fn with_cables(self) -> Self
This mode with the Station’s Cable endpoint as a further server,
ASSISTANT_CABLE_MCP_SERVER, reached through ASSISTANT_CABLE_MCP_ENV_PREFIX.
Sourcepub fn validate(&self) -> Result<(), String>
pub fn validate(&self) -> Result<(), String>
Checks the parts: at least one server; server names of letters, digits, - and _;
environment prefixes of capitals, digits and _; interpreter and skill names of
letters, digits, ., - and _; a known network policy and hosts as host_pattern
accepts them; writable directories of one to eight /-separated names of letters,
digits, ., - and _, none starting with .; a context file and unreadable paths
given as absolute paths; skills only with an absolute skills_dir. A handler checks
this before building settings from the names.
§Errors
A message naming the first part out of bounds.
Trait Implementations§
Source§impl Clone for AssistantMode
impl Clone for AssistantMode
Source§impl Debug for AssistantMode
impl Debug for AssistantMode
Source§impl<'de> Deserialize<'de> for AssistantMode
impl<'de> Deserialize<'de> for AssistantMode
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>,
impl Eq for AssistantMode
Source§impl FromValue for AssistantMode
impl FromValue for AssistantMode
Source§const KINDS: Kinds = ::guatiao::Kinds::MAP
const KINDS: Kinds = ::guatiao::Kinds::MAP
from_value may accept; any
other is refused. Every impl in this crate and every derived one
says; the default, [Kinds::ANY], claims every kind, which keeps
a type that does not say out of an enum told apart by kind.Source§fn from_value(__value: &Value) -> Result<Self, MapError>
fn from_value(__value: &Value) -> Result<Self, MapError>
Source§impl FromWalk for AssistantMode
impl FromWalk for AssistantMode
Source§impl MapRead for AssistantMode
impl MapRead for AssistantMode
Source§impl PartialEq for AssistantMode
impl PartialEq for AssistantMode
Source§impl Schema for AssistantMode
impl Schema for AssistantMode
Source§impl Serialize for AssistantMode
impl Serialize for AssistantMode
impl StructuralPartialEq for AssistantMode
Source§impl ToValue for AssistantMode
impl ToValue for AssistantMode
Auto Trait Implementations§
impl Freeze for AssistantMode
impl RefUnwindSafe for AssistantMode
impl Send for AssistantMode
impl Sync for AssistantMode
impl Unpin for AssistantMode
impl UnsafeUnpin for AssistantMode
impl UnwindSafe for AssistantMode
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.