pub struct SharedContext {
pub project_type: String,
pub tech_stack: Vec<String>,
pub constraints: Vec<String>,
pub cross_domain_state: HashMap<String, Value>,
}Expand description
Shared context across domain agents
This struct maintains cross-domain context that is shared between agents, including project type, tech stack, constraints, and cross-domain state.
§Examples
ⓘ
use ricecoder_agents::domain::SharedContext;
use std::collections::HashMap;
let context = SharedContext {
project_type: "web-application".to_string(),
tech_stack: vec!["React".to_string(), "Node.js".to_string()],
constraints: vec!["Must support IE11".to_string()],
cross_domain_state: HashMap::new(),
};Fields§
§project_type: StringProject type
tech_stack: Vec<String>Technology stack
constraints: Vec<String>Project constraints
cross_domain_state: HashMap<String, Value>Cross-domain state
Trait Implementations§
Source§fn clone(&self) -> SharedContext
fn clone(&self) -> SharedContext
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§fn default() -> SharedContext
fn default() -> SharedContext
Returns the “default value” for a type. Read more
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
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