//! The connection side of the agent skill list KV bucket: opening it. The //! bucket's name, key and value are `swarm_wire::agent_commands`. /// Open the bucket, creating it if nothing has yet. `history: 1`: the swarm /// wants each agent's current skills, not the ones it had before. #[cfg(feature = "kv")] pub async fn open_or_create( client: &async_nats::Client, ) -> Result { let js = async_nats::jetstream::new(client.clone()); crate::kv::open_or_create( &js, swarm_wire::agent_commands::BUCKET, "agent-commands", "The skills each agent has, as its harness last published them".to_owned(), ) .await }