pub trait SessionBackend: Send + Sync {
Show 29 methods
// Required methods
fn create_session<'life0, 'async_trait>(
&'life0 self,
request: CreateSessionRequest,
) -> Pin<Box<dyn Future<Output = Result<SessionId, SessionError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_session<'life0, 'life1, 'async_trait>(
&'life0 self,
session_id: &'life1 SessionId,
) -> Pin<Box<dyn Future<Output = Result<Option<Session>, SessionError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn send_message<'life0, 'life1, 'async_trait>(
&'life0 self,
session_id: &'life1 SessionId,
message: String,
) -> Pin<Box<dyn Future<Output = Result<(), SessionError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn submit_durable_message<'life0, 'life1, 'async_trait>(
&'life0 self,
session_id: &'life1 SessionId,
request: DurableMessageRequest,
) -> Pin<Box<dyn Future<Output = Result<(), SessionError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn answer_questions<'life0, 'life1, 'async_trait>(
&'life0 self,
session_id: &'life1 SessionId,
request: AnswerQuestionsRequest,
) -> Pin<Box<dyn Future<Output = Result<(), SessionError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn cancel_session<'life0, 'life1, 'async_trait>(
&'life0 self,
session_id: &'life1 SessionId,
) -> Pin<Box<dyn Future<Output = Result<(), SessionError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn merge_session<'life0, 'life1, 'async_trait>(
&'life0 self,
session_id: &'life1 SessionId,
) -> Pin<Box<dyn Future<Output = Result<(), SessionError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn create_review_request<'life0, 'life1, 'async_trait>(
&'life0 self,
session_id: &'life1 SessionId,
) -> Pin<Box<dyn Future<Output = Result<ReviewRequest, SessionError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
// Provided methods
fn get_execution_graph<'life0, 'life1, 'async_trait>(
&'life0 self,
graph_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<ExecutionGraphProgress>, SessionError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait { ... }
fn cancel_execution_graph<'life0, 'async_trait>(
&'life0 self,
request: GraphControlRequest,
) -> Pin<Box<dyn Future<Output = Result<(), SessionError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait { ... }
fn resume_execution_graph<'life0, 'async_trait>(
&'life0 self,
request: ResumeExecutionGraphRequest,
) -> Pin<Box<dyn Future<Output = Result<(), SessionError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait { ... }
fn continue_execution_graph_node<'life0, 'async_trait>(
&'life0 self,
request: ContinueGraphNodeRequest,
) -> Pin<Box<dyn Future<Output = Result<(), SessionError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait { ... }
fn start_execution_graph<'life0, 'async_trait>(
&'life0 self,
request: StartExecutionGraphRequest,
) -> Pin<Box<dyn Future<Output = Result<(), SessionError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait { ... }
fn accept_execution_graph_result<'life0, 'async_trait>(
&'life0 self,
reference: GraphResultRef,
) -> Pin<Box<dyn Future<Output = Result<(), SessionError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait { ... }
fn submit_agent_task<'life0, 'life1, 'async_trait>(
&'life0 self,
session_id: &'life1 SessionId,
request: SubmitAgentTaskRequest,
) -> Pin<Box<dyn Future<Output = Result<(), SessionError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait { ... }
fn get_agent_task_history<'life0, 'life1, 'async_trait>(
&'life0 self,
task_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<TaskAgentHistory>, SessionError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait { ... }
fn accept_agent_plan<'life0, 'life1, 'async_trait>(
&'life0 self,
_session_id: &'life1 SessionId,
_request: AcceptTaskPlanRequest,
) -> Pin<Box<dyn Future<Output = Result<(), SessionError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait { ... }
fn start_plan_then_implement<'life0, 'life1, 'async_trait>(
&'life0 self,
_session_id: &'life1 SessionId,
_request: StartPlanThenImplementRequest,
) -> Pin<Box<dyn Future<Output = Result<(), SessionError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait { ... }
fn get_task_chain<'life0, 'life1, 'async_trait>(
&'life0 self,
_chain_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<TaskChain>, SessionError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait { ... }
fn list_task_chains<'life0, 'life1, 'async_trait>(
&'life0 self,
_session_id: &'life1 SessionId,
) -> Pin<Box<dyn Future<Output = Result<Vec<TaskChain>, SessionError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait { ... }
fn accept_task_chain_plan<'life0, 'life1, 'async_trait>(
&'life0 self,
_chain_id: &'life1 str,
_request: AcceptTaskChainPlanRequest,
) -> Pin<Box<dyn Future<Output = Result<(), SessionError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait { ... }
fn continue_task_chain<'life0, 'life1, 'async_trait>(
&'life0 self,
_chain_id: &'life1 str,
_request: ContinueTaskChainRequest,
) -> Pin<Box<dyn Future<Output = Result<(), SessionError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait { ... }
fn cancel_task_chain<'life0, 'life1, 'async_trait>(
&'life0 self,
_chain_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<(), SessionError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait { ... }
fn reply_to_task_chain<'life0, 'life1, 'async_trait>(
&'life0 self,
_session_id: &'life1 SessionId,
_request: ReplyToTaskChainRequest,
) -> Pin<Box<dyn Future<Output = Result<TaskChainReplyOutcome, SessionError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait { ... }
fn create_task<'life0, 'life1, 'async_trait>(
&'life0 self,
_session_id: &'life1 SessionId,
_request: CreateTaskRequest,
) -> Pin<Box<dyn Future<Output = Result<(), SessionError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait { ... }
fn list_tasks<'life0, 'life1, 'async_trait>(
&'life0 self,
_session_id: &'life1 SessionId,
) -> Pin<Box<dyn Future<Output = Result<Vec<Task>, SessionError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait { ... }
fn submit_task<'life0, 'life1, 'async_trait>(
&'life0 self,
_session_id: &'life1 SessionId,
_request: SubmitTaskRequest,
) -> Pin<Box<dyn Future<Output = Result<(), SessionError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait { ... }
fn get_task<'life0, 'life1, 'async_trait>(
&'life0 self,
_task_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<Task>, SessionError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait { ... }
fn complete_task<'life0, 'life1, 'async_trait>(
&'life0 self,
_task_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<(), SessionError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait { ... }
}Expand description
Host implementation boundary for session persistence and workflows.
The trait is object-safe so agent loops and background workflows can hold a programmatic session capability without depending on a concrete frontend.
Required Methods§
Sourcefn create_session<'life0, 'async_trait>(
&'life0 self,
request: CreateSessionRequest,
) -> Pin<Box<dyn Future<Output = Result<SessionId, SessionError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn create_session<'life0, 'async_trait>(
&'life0 self,
request: CreateSessionRequest,
) -> Pin<Box<dyn Future<Output = Result<SessionId, SessionError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Creates one session and returns its stable identifier.
Sourcefn get_session<'life0, 'life1, 'async_trait>(
&'life0 self,
session_id: &'life1 SessionId,
) -> Pin<Box<dyn Future<Output = Result<Option<Session>, SessionError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_session<'life0, 'life1, 'async_trait>(
&'life0 self,
session_id: &'life1 SessionId,
) -> Pin<Box<dyn Future<Output = Result<Option<Session>, SessionError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Loads one complete session aggregate, including settings and messages.
Sourcefn send_message<'life0, 'life1, 'async_trait>(
&'life0 self,
session_id: &'life1 SessionId,
message: String,
) -> Pin<Box<dyn Future<Output = Result<(), SessionError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn send_message<'life0, 'life1, 'async_trait>(
&'life0 self,
session_id: &'life1 SessionId,
message: String,
) -> Pin<Box<dyn Future<Output = Result<(), SessionError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Sends one text message, starting, resuming, or queueing as appropriate.
Sourcefn submit_durable_message<'life0, 'life1, 'async_trait>(
&'life0 self,
session_id: &'life1 SessionId,
request: DurableMessageRequest,
) -> Pin<Box<dyn Future<Output = Result<(), SessionError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn submit_durable_message<'life0, 'life1, 'async_trait>(
&'life0 self,
session_id: &'life1 SessionId,
request: DurableMessageRequest,
) -> Pin<Box<dyn Future<Output = Result<(), SessionError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Submits a durable turn without entering the lossy live-chat queue used while an ordinary user turn is active.
Sourcefn answer_questions<'life0, 'life1, 'async_trait>(
&'life0 self,
session_id: &'life1 SessionId,
request: AnswerQuestionsRequest,
) -> Pin<Box<dyn Future<Output = Result<(), SessionError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn answer_questions<'life0, 'life1, 'async_trait>(
&'life0 self,
session_id: &'life1 SessionId,
request: AnswerQuestionsRequest,
) -> Pin<Box<dyn Future<Output = Result<(), SessionError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Answers the complete current clarification-question set.
Sourcefn cancel_session<'life0, 'life1, 'async_trait>(
&'life0 self,
session_id: &'life1 SessionId,
) -> Pin<Box<dyn Future<Output = Result<(), SessionError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn cancel_session<'life0, 'life1, 'async_trait>(
&'life0 self,
session_id: &'life1 SessionId,
) -> Pin<Box<dyn Future<Output = Result<(), SessionError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Cancels one session through the host lifecycle workflow.
Sourcefn merge_session<'life0, 'life1, 'async_trait>(
&'life0 self,
session_id: &'life1 SessionId,
) -> Pin<Box<dyn Future<Output = Result<(), SessionError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn merge_session<'life0, 'life1, 'async_trait>(
&'life0 self,
session_id: &'life1 SessionId,
) -> Pin<Box<dyn Future<Output = Result<(), SessionError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Requests merge processing for one review-ready session.
Sourcefn create_review_request<'life0, 'life1, 'async_trait>(
&'life0 self,
session_id: &'life1 SessionId,
) -> Pin<Box<dyn Future<Output = Result<ReviewRequest, SessionError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn create_review_request<'life0, 'life1, 'async_trait>(
&'life0 self,
session_id: &'life1 SessionId,
) -> Pin<Box<dyn Future<Output = Result<ReviewRequest, SessionError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Queues publication of one session branch and creates or refreshes its review request.
Provided Methods§
Sourcefn get_execution_graph<'life0, 'life1, 'async_trait>(
&'life0 self,
graph_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<ExecutionGraphProgress>, SessionError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_execution_graph<'life0, 'life1, 'async_trait>(
&'life0 self,
graph_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<ExecutionGraphProgress>, SessionError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Reads durable progress without launching or retrying work.
Sourcefn cancel_execution_graph<'life0, 'async_trait>(
&'life0 self,
request: GraphControlRequest,
) -> Pin<Box<dyn Future<Output = Result<(), SessionError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn cancel_execution_graph<'life0, 'async_trait>(
&'life0 self,
request: GraphControlRequest,
) -> Pin<Box<dyn Future<Output = Result<(), SessionError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Closes graph admission durably, then signals its owned workers.
Sourcefn resume_execution_graph<'life0, 'async_trait>(
&'life0 self,
request: ResumeExecutionGraphRequest,
) -> Pin<Box<dyn Future<Output = Result<(), SessionError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn resume_execution_graph<'life0, 'async_trait>(
&'life0 self,
request: ResumeExecutionGraphRequest,
) -> Pin<Box<dyn Future<Output = Result<(), SessionError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Explicitly restarts dispatch without replaying admitted executions.
Sourcefn continue_execution_graph_node<'life0, 'async_trait>(
&'life0 self,
request: ContinueGraphNodeRequest,
) -> Pin<Box<dyn Future<Output = Result<(), SessionError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn continue_execution_graph_node<'life0, 'async_trait>(
&'life0 self,
request: ContinueGraphNodeRequest,
) -> Pin<Box<dyn Future<Output = Result<(), SessionError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Authorizes one new attempt against an exact failed/question execution.
Sourcefn start_execution_graph<'life0, 'async_trait>(
&'life0 self,
request: StartExecutionGraphRequest,
) -> Pin<Box<dyn Future<Output = Result<(), SessionError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn start_execution_graph<'life0, 'async_trait>(
&'life0 self,
request: StartExecutionGraphRequest,
) -> Pin<Box<dyn Future<Output = Result<(), SessionError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Saves and starts a static graph. Existing admitted nodes are never replayed. Named budgets are shared within this graph’s live driver.
Sourcefn accept_execution_graph_result<'life0, 'async_trait>(
&'life0 self,
reference: GraphResultRef,
) -> Pin<Box<dyn Future<Output = Result<(), SessionError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn accept_execution_graph_result<'life0, 'async_trait>(
&'life0 self,
reference: GraphResultRef,
) -> Pin<Box<dyn Future<Output = Result<(), SessionError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Records explicit acceptance of an exact graph output and wakes ready dependents. Model output must never call this trusted host boundary.
Sourcefn submit_agent_task<'life0, 'life1, 'async_trait>(
&'life0 self,
session_id: &'life1 SessionId,
request: SubmitAgentTaskRequest,
) -> Pin<Box<dyn Future<Output = Result<(), SessionError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn submit_agent_task<'life0, 'life1, 'async_trait>(
&'life0 self,
session_id: &'life1 SessionId,
request: SubmitAgentTaskRequest,
) -> Pin<Box<dyn Future<Output = Result<(), SessionError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Admits a role-bound attempt with its own isolated conversation.
Sourcefn get_agent_task_history<'life0, 'life1, 'async_trait>(
&'life0 self,
task_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<TaskAgentHistory>, SessionError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_agent_task_history<'life0, 'life1, 'async_trait>(
&'life0 self,
task_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<TaskAgentHistory>, SessionError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Reads isolated task responses without exposing host storage types.
Sourcefn accept_agent_plan<'life0, 'life1, 'async_trait>(
&'life0 self,
_session_id: &'life1 SessionId,
_request: AcceptTaskPlanRequest,
) -> Pin<Box<dyn Future<Output = Result<(), SessionError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn accept_agent_plan<'life0, 'life1, 'async_trait>(
&'life0 self,
_session_id: &'life1 SessionId,
_request: AcceptTaskPlanRequest,
) -> Pin<Box<dyn Future<Output = Result<(), SessionError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Explicitly accepts a standalone Planner response by producing version.
Sourcefn start_plan_then_implement<'life0, 'life1, 'async_trait>(
&'life0 self,
_session_id: &'life1 SessionId,
_request: StartPlanThenImplementRequest,
) -> Pin<Box<dyn Future<Output = Result<(), SessionError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn start_plan_then_implement<'life0, 'life1, 'async_trait>(
&'life0 self,
_session_id: &'life1 SessionId,
_request: StartPlanThenImplementRequest,
) -> Pin<Box<dyn Future<Output = Result<(), SessionError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Saves and starts the static Planner → Implementer execution graph.
Sourcefn get_task_chain<'life0, 'life1, 'async_trait>(
&'life0 self,
_chain_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<TaskChain>, SessionError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_task_chain<'life0, 'life1, 'async_trait>(
&'life0 self,
_chain_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<TaskChain>, SessionError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Reads a workflow snapshot without recovering or replaying work.
Sourcefn list_task_chains<'life0, 'life1, 'async_trait>(
&'life0 self,
_session_id: &'life1 SessionId,
) -> Pin<Box<dyn Future<Output = Result<Vec<TaskChain>, SessionError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn list_task_chains<'life0, 'life1, 'async_trait>(
&'life0 self,
_session_id: &'life1 SessionId,
) -> Pin<Box<dyn Future<Output = Result<Vec<TaskChain>, SessionError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Lists a session’s workflows in creation order.
Sourcefn accept_task_chain_plan<'life0, 'life1, 'async_trait>(
&'life0 self,
_chain_id: &'life1 str,
_request: AcceptTaskChainPlanRequest,
) -> Pin<Box<dyn Future<Output = Result<(), SessionError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn accept_task_chain_plan<'life0, 'life1, 'async_trait>(
&'life0 self,
_chain_id: &'life1 str,
_request: AcceptTaskChainPlanRequest,
) -> Pin<Box<dyn Future<Output = Result<(), SessionError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Explicitly accepts an exact Planner version, releasing implementation.
Sourcefn continue_task_chain<'life0, 'life1, 'async_trait>(
&'life0 self,
_chain_id: &'life1 str,
_request: ContinueTaskChainRequest,
) -> Pin<Box<dyn Future<Output = Result<(), SessionError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn continue_task_chain<'life0, 'life1, 'async_trait>(
&'life0 self,
_chain_id: &'life1 str,
_request: ContinueTaskChainRequest,
) -> Pin<Box<dyn Future<Output = Result<(), SessionError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Explicitly continues the current stage with a new execution UUID.
Sourcefn cancel_task_chain<'life0, 'life1, 'async_trait>(
&'life0 self,
_chain_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<(), SessionError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn cancel_task_chain<'life0, 'life1, 'async_trait>(
&'life0 self,
_chain_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<(), SessionError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Cancels only the current stage’s execution; the graph stays open.
Sourcefn reply_to_task_chain<'life0, 'life1, 'async_trait>(
&'life0 self,
_session_id: &'life1 SessionId,
_request: ReplyToTaskChainRequest,
) -> Pin<Box<dyn Future<Output = Result<TaskChainReplyOutcome, SessionError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn reply_to_task_chain<'life0, 'life1, 'async_trait>(
&'life0 self,
_session_id: &'life1 SessionId,
_request: ReplyToTaskChainRequest,
) -> Pin<Box<dyn Future<Output = Result<TaskChainReplyOutcome, SessionError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Routes a natural-language reply to the session’s latest workflow.
Sourcefn create_task<'life0, 'life1, 'async_trait>(
&'life0 self,
_session_id: &'life1 SessionId,
_request: CreateTaskRequest,
) -> Pin<Box<dyn Future<Output = Result<(), SessionError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn create_task<'life0, 'life1, 'async_trait>(
&'life0 self,
_session_id: &'life1 SessionId,
_request: CreateTaskRequest,
) -> Pin<Box<dyn Future<Output = Result<(), SessionError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Persists an outcome without execution. Older hosts may omit support.
Sourcefn list_tasks<'life0, 'life1, 'async_trait>(
&'life0 self,
_session_id: &'life1 SessionId,
) -> Pin<Box<dyn Future<Output = Result<Vec<Task>, SessionError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn list_tasks<'life0, 'life1, 'async_trait>(
&'life0 self,
_session_id: &'life1 SessionId,
) -> Pin<Box<dyn Future<Output = Result<Vec<Task>, SessionError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Lists a session’s tasks, including unattempted and completed outcomes.
Sourcefn submit_task<'life0, 'life1, 'async_trait>(
&'life0 self,
_session_id: &'life1 SessionId,
_request: SubmitTaskRequest,
) -> Pin<Box<dyn Future<Output = Result<(), SessionError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn submit_task<'life0, 'life1, 'async_trait>(
&'life0 self,
_session_id: &'life1 SessionId,
_request: SubmitTaskRequest,
) -> Pin<Box<dyn Future<Output = Result<(), SessionError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Admits an explicit task attempt. Older hosts may omit task support.
Sourcefn get_task<'life0, 'life1, 'async_trait>(
&'life0 self,
_task_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<Task>, SessionError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_task<'life0, 'life1, 'async_trait>(
&'life0 self,
_task_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<Task>, SessionError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Loads the desired outcome and retained attempt history.
Sourcefn complete_task<'life0, 'life1, 'async_trait>(
&'life0 self,
_task_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<(), SessionError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn complete_task<'life0, 'life1, 'async_trait>(
&'life0 self,
_task_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<(), SessionError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Explicitly accepts the task outcome after all attempts have settled.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".