aether-agent-core 0.9.3

A minimal Rust library for building AI agents with MCP tool integration
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use llm::{ContentBlock, MessageId};

use crate::events::TaskOutcome;

#[derive(Debug)]
pub(super) enum QueuedInput {
    User { message_id: MessageId, content: Vec<ContentBlock> },
    TaskOutcome(Box<TaskOutcome>),
}

impl QueuedInput {
    pub(super) fn content_blocks(&self) -> Vec<ContentBlock> {
        match self {
            Self::User { content, .. } => content.clone(),
            Self::TaskOutcome(outcome) => outcome.content_blocks(),
        }
    }
}