pub struct HostContext {
pub base_branch: String,
pub default_model: AgentModel,
pub models: Vec<AgentSelection>,
pub project_id: i64,
pub project_name: String,
pub session_modes: Vec<HostSessionMode>,
}Expand description
The project a host creates new sessions in, and how it creates them.
Fields§
§base_branch: StringBranch new sessions start from.
default_model: AgentModelModel a new session in the first of session_modes starts with: the
harness model when only Harness sessions are offered, otherwise the
regular agent’s default.
models: Vec<AgentSelection>Agents and models a session can switch to now, in display order.
A session switches only among the entries of its own agent, as the
terminal’s /model offers them; each gives the model’s id and name.
project_id: i64Identifier of the active project, the only one that accepts new sessions.
project_name: StringDisplay name of the active project.
session_modes: Vec<HostSessionMode>Creation modes the host can serve now, in display order, each with the agent and model its new sessions start with.
Trait Implementations§
Source§impl Clone for HostContext
impl Clone for HostContext
Source§impl Debug for HostContext
impl Debug for HostContext
impl Eq for HostContext
Source§impl PartialEq for HostContext
impl PartialEq for HostContext
impl StructuralPartialEq for HostContext
Auto Trait Implementations§
impl Forget for HostContext
impl Freeze for HostContext
impl Move for HostContext
impl RefUnwindSafe for HostContext
impl Send for HostContext
impl Sync for HostContext
impl Unpin for HostContext
impl UnsafeUnpin for HostContext
impl UnwindSafe for HostContext
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.