agentsight-capture-core 1.0.24

Native cross-platform capture substrate for AgentSight.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// SPDX-License-Identifier: MIT
// Copyright (c) 2026 eunomia-bpf org.

use crate::runners::EventStream;
use async_trait::async_trait;

/// Type alias for errors that can be sent between threads.
pub type AnalyzerError = Box<dyn std::error::Error + Send + Sync>;

/// Stable processing boundary between native capture and extensions.
#[async_trait]
pub trait Analyzer: Send + Sync {
    async fn process(&mut self, stream: EventStream) -> Result<EventStream, AnalyzerError>;
}