pub struct Session {
pub ctx: CheckContext,
pub adapter: Box<dyn AgentAdapter>,
pub bazaar_url: Result<Option<String>, String>,
pub user_config_path: PathBuf,
pub warnings: Vec<String>,
pub mode: ResolvedMode,
pub policy: PolicyState,
pub gateway: Option<Result<GatewayPlan, String>>,
pub suite: SuiteMap,
pub token: Option<String>,
pub gateway_model: Option<String>,
pub config_root: PathBuf,
}Expand description
One run’s view of the project: which agent, and everything the checks read.
Fields§
§ctx: CheckContext§adapter: Box<dyn AgentAdapter>§bazaar_url: Result<Option<String>, String>Err: the server that should know it could not be asked (the reason).
user_config_path: PathBuf§warnings: Vec<String>Problems reading visdom’s own config files; the run goes on without them.
mode: ResolvedModeHow this session is traced, and who decided.
policy: PolicyState§gateway: Option<Result<GatewayPlan, String>>In gateway mode: what the session will use, or why it cannot.
suite: SuiteMapThe suite’s other products, as far as the tracing server says.
token: Option<String>The developer’s Keycloak access token, for the suite’s other products. Never an API key: that is the tracing server’s alone.
gateway_model: Option<String>The model alias configured for this agent through the gateway.
config_root: PathBufWhere visdom keeps its own state (<config dir>).
Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Session
impl !Send for Session
impl !Sync for Session
impl !UnwindSafe for Session
impl Forget for Session
impl Freeze for Session
impl Move for Session
impl Unpin for Session
impl UnsafeUnpin for Session
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