pub enum SubAgentSource {
Review,
Compact,
MemoryConsolidation,
ThreadSpawn {
agent_nickname: Option<String>,
agent_path: Option<AgentPath>,
agent_role: Option<String>,
depth: i32,
parent_thread_id: ThreadId,
},
Other(String),
}Expand description
SubAgentSource
JSON schema
{
"oneOf": [
{
"type": "string",
"enum": [
"review",
"compact",
"memory_consolidation"
]
},
{
"title": "ThreadSpawnSubAgentSource",
"type": "object",
"required": [
"thread_spawn"
],
"properties": {
"thread_spawn": {
"type": "object",
"required": [
"depth",
"parent_thread_id"
],
"properties": {
"agent_nickname": {
"default": null,
"type": [
"string",
"null"
]
},
"agent_path": {
"default": null,
"anyOf": [
{
"$ref": "#/definitions/AgentPath"
},
{
"type": "null"
}
]
},
"agent_role": {
"default": null,
"type": [
"string",
"null"
]
},
"depth": {
"type": "integer",
"format": "int32"
},
"parent_thread_id": {
"$ref": "#/definitions/ThreadId"
}
}
}
},
"additionalProperties": false
},
{
"title": "OtherSubAgentSource",
"type": "object",
"required": [
"other"
],
"properties": {
"other": {
"type": "string"
}
},
"additionalProperties": false
}
]
}Variants§
Trait Implementations§
Source§impl Clone for SubAgentSource
impl Clone for SubAgentSource
Source§fn clone(&self) -> SubAgentSource
fn clone(&self) -> SubAgentSource
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 SubAgentSource
impl Debug for SubAgentSource
Source§impl<'de> Deserialize<'de> for SubAgentSource
impl<'de> Deserialize<'de> for SubAgentSource
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
Source§impl From<SubAgentSource> for SessionSource
impl From<SubAgentSource> for SessionSource
Source§fn from(value: SubAgentSource) -> Self
fn from(value: SubAgentSource) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SubAgentSource
impl RefUnwindSafe for SubAgentSource
impl Send for SubAgentSource
impl Sync for SubAgentSource
impl Unpin for SubAgentSource
impl UnsafeUnpin for SubAgentSource
impl UnwindSafe for SubAgentSource
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