pub struct RunContext {
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>,
}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.
Trait Implementations§
Source§impl Clone for RunContext
impl Clone for RunContext
Source§fn clone(&self) -> RunContext
fn clone(&self) -> RunContext
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 moreAuto 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