pub struct AiTraceService { /* private fields */ }Implementations§
Source§impl AiTraceService
impl AiTraceService
pub const fn new(pool: Arc<PgPool>) -> Self
pub async fn resolve_task_id(&self, partial_id: &str) -> Result<String>
pub async fn get_task_info(&self, task_id: &str) -> Result<TaskInfo>
pub async fn get_user_input(&self, task_id: &str) -> Result<Option<String>>
pub async fn get_agent_response(&self, task_id: &str) -> Result<Option<String>>
pub async fn get_execution_steps( &self, task_id: &str, ) -> Result<Vec<ExecutionStep>>
pub async fn get_ai_requests(&self, task_id: &str) -> Result<Vec<AiRequestInfo>>
pub async fn get_system_prompt( &self, request_id: &str, ) -> Result<Option<String>>
pub async fn get_conversation_messages( &self, request_id: &str, ) -> Result<Vec<ConversationMessage>>
pub async fn get_mcp_executions( &self, task_id: &str, context_id: &str, ) -> Result<Vec<McpToolExecution>>
pub async fn get_mcp_linked_ai_requests( &self, mcp_execution_id: &str, ) -> Result<Vec<AiRequestInfo>>
pub async fn get_ai_request_message_previews( &self, request_id: &str, ) -> Result<Vec<ConversationMessage>>
pub async fn get_tool_logs( &self, task_id: &str, context_id: &str, ) -> Result<Vec<ToolLogEntry>>
pub async fn get_task_artifacts( &self, task_id: &str, context_id: &str, ) -> Result<Vec<TaskArtifact>>
Trait Implementations§
Source§impl Clone for AiTraceService
impl Clone for AiTraceService
Source§fn clone(&self) -> AiTraceService
fn clone(&self) -> AiTraceService
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for AiTraceService
impl !RefUnwindSafe for AiTraceService
impl Send for AiTraceService
impl Sync for AiTraceService
impl Unpin for AiTraceService
impl !UnwindSafe for AiTraceService
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more