pub struct RunContext {Show 13 fields
pub workspace: PathBuf,
pub prompt: String,
pub provider: String,
pub model: String,
pub context: WorkspaceContext,
pub skills_dirs: Vec<PathBuf>,
pub skills: Vec<LoadedSkill>,
pub templates_dirs: Vec<PathBuf>,
pub templates: Vec<Template>,
pub mcp_files: Vec<ContextFile>,
pub mcp_servers: Vec<String>,
pub a2a_files: Vec<ContextFile>,
pub a2a_agents: Vec<String>,
}Expand description
What a run is about, once the runtime questions are settled.
Fields§
§workspace: PathBuf§prompt: String§provider: String§model: String§context: WorkspaceContext§skills_dirs: Vec<PathBuf>Skills directories registered on the runtime, most specific first.
skills: Vec<LoadedSkill>The skills those directories actually produced, after layering.
templates_dirs: Vec<PathBuf>Template directories that exist, most specific first.
templates: Vec<Template>The templates those directories produced, after layering, name-ordered.
Over ACP these become the client’s commands, mapped by basis-acp.
mcp_files: Vec<ContextFile>MCP configuration files in effect, weakest precedence first.
mcp_servers: Vec<String>The servers those files produced, after layering. Names only: the header must not echo a command or a credential.
a2a_files: Vec<ContextFile>A2A configuration files in effect, most specific first.
a2a_agents: Vec<String>The remote agents those files and the host named, after layering, by
the names that took effect. Names only, for mcp_servers’s reason.
Trait Implementations§
Source§impl Clone for RunContext
impl Clone for RunContext
Auto Trait Implementations§
impl Freeze for RunContext
impl RefUnwindSafe for RunContext
impl Send for RunContext
impl Sync for RunContext
impl Unpin for RunContext
impl UnsafeUnpin for RunContext
impl UnwindSafe for RunContext
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