swarmctl shares the create-agent, inference and permissions shapes with the controller
This commit is contained in:
parent
249aab6642
commit
0831b85b73
26 changed files with 675 additions and 434 deletions
|
|
@ -32,14 +32,7 @@ pub fn direct_get_subject(agent: &str) -> String {
|
|||
format!("$JS.API.DIRECT.GET.{STREAM}.{}", key_subject(agent))
|
||||
}
|
||||
|
||||
/// Which archetype an agent was created from: the value under
|
||||
/// `BUCKET`/`<agent>`. `source` is a key of [`crate::archetypes::BUCKET`]
|
||||
/// and `name` an archetype in that source's record.
|
||||
#[derive(Debug, Clone, PartialEq, Eq, serde::Serialize, serde::Deserialize)]
|
||||
pub struct ArchetypeRef {
|
||||
pub source: String,
|
||||
pub name: String,
|
||||
}
|
||||
pub use swarm_wire::agent_archetype::ArchetypeRef;
|
||||
|
||||
/// Open the archetype-choice bucket for writing, creating it if nothing has
|
||||
/// yet.
|
||||
|
|
|
|||
Loading…
Reference in a new issue