pub struct BlackboardSpec {
pub name: String,
pub description: String,
pub members: Vec<String>,
pub schedule: BlackboardSchedule,
pub transitions: Vec<BlackboardTransition>,
pub policy: BlackboardPolicy,
}Expand description
Portable, governed shared-transcript team definition.
Fields§
§name: StringExecutable root name.
description: StringHuman-readable purpose.
members: Vec<String>Exact participant names. Order is meaningful for round-robin scheduling.
schedule: BlackboardScheduleSpeaker selection strategy.
transitions: Vec<BlackboardTransition>Exact permitted speaker transitions for model-selected scheduling.
policy: BlackboardPolicyBounded execution and transcript policy.
Implementations§
Source§impl BlackboardSpec
impl BlackboardSpec
Sourcepub fn validate(&self) -> Result<(), TeamError>
pub fn validate(&self) -> Result<(), TeamError>
Validates members, bounds, schedule, and exact transitions.
Sourcepub fn compile(
&self,
agents: impl IntoIterator<Item = Arc<dyn Agent>>,
) -> Result<CompiledBlackboardTeam, TeamError>
pub fn compile( &self, agents: impl IntoIterator<Item = Arc<dyn Agent>>, ) -> Result<CompiledBlackboardTeam, TeamError>
Binds exact member names and returns an executable blackboard root.
Trait Implementations§
Source§impl Clone for BlackboardSpec
impl Clone for BlackboardSpec
Source§fn clone(&self) -> BlackboardSpec
fn clone(&self) -> BlackboardSpec
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 moreSource§impl Debug for BlackboardSpec
impl Debug for BlackboardSpec
Source§impl<'de> Deserialize<'de> for BlackboardSpec
impl<'de> Deserialize<'de> for BlackboardSpec
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
impl Eq for BlackboardSpec
Source§impl JsonSchema for BlackboardSpec
impl JsonSchema for BlackboardSpec
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for BlackboardSpec
impl PartialEq for BlackboardSpec
Source§impl Serialize for BlackboardSpec
impl Serialize for BlackboardSpec
impl StructuralPartialEq for BlackboardSpec
Auto Trait Implementations§
impl Freeze for BlackboardSpec
impl RefUnwindSafe for BlackboardSpec
impl Send for BlackboardSpec
impl Sync for BlackboardSpec
impl Unpin for BlackboardSpec
impl UnsafeUnpin for BlackboardSpec
impl UnwindSafe for BlackboardSpec
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.