ceylon-core 0.1.2

Core abstractions for the Ceylon agent mesh framework
Documentation

Ceylon Core

Core abstractions for the Ceylon agent mesh framework.

This crate provides the fundamental building blocks:

  • [Agent] - Trait for implementing autonomous agents
  • [AgentContext] - Runtime context passed to agent methods
  • [Memory] - Trait for memory/storage backends
  • [Mesh] - Trait for agent coordination
  • [Message] - Inter-agent communication

Example

use ceylon_core::{Agent, AgentContext, Message};
use ceylon_core::error::Result;
use async_trait::async_trait;

struct EchoAgent;

#[async_trait]
impl Agent for EchoAgent {
    fn name(&self) -> String { "echo".into() }

    async fn on_message(&mut self, msg: Message, _ctx: &mut AgentContext) -> Result<()> {
        println!("Echo: {:?}", msg.topic);
        Ok(())
    }
}