tsk-ai 0.10.7

tsk-tsk: keeping your agents out of trouble with sandboxed coding agent automation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use async_trait::async_trait;

use super::TaskResult;
use super::log_line::LogLine;

/// Trait for processing agent log output
#[async_trait]
pub trait LogProcessor: Send {
    /// Process a single line of log output
    /// Returns Some(LogLine) if the line should be displayed, None otherwise
    fn process_line(&mut self, line: &str) -> Option<LogLine>;

    /// Get the final result of the task execution
    fn get_final_result(&self) -> Option<&TaskResult>;
}