objectiveai_cli/command/agents/logs/mod.rs
1//! `agents logs` — CLI-side dispatch for the logs subtree. One
2//! sub-tier today: `read`. The SDK's `logs::Request` /
3//! `logs::ResponseItem` are now type aliases for `read::*`, so
4//! this tier just hands the request to `read::execute`.
5
6use std::pin::Pin;
7
8use futures::Stream;
9use objectiveai_sdk::cli::command::agents::logs::{Request, ResponseItem};
10
11use crate::context::Context;
12use crate::error::Error;
13
14pub mod read;
15
16type ItemStream = Pin<Box<dyn Stream<Item = Result<ResponseItem, Error>> + Send>>;
17
18pub async fn execute(ctx: &Context, request: Request) -> Result<ItemStream, Error> {
19 read::execute(ctx, request).await
20}