pub struct AppService { /* private fields */ }Implementations§
Source§impl AppService
impl AppService
pub fn new(executor: Arc<Executor>) -> Self
Sourcepub async fn run(
&self,
code: Option<String>,
code_file: Option<String>,
ctx: Option<Value>,
) -> Result<String, String>
pub async fn run( &self, code: Option<String>, code_file: Option<String>, ctx: Option<Value>, ) -> Result<String, String>
Execute Lua code with optional JSON context.
Sourcepub async fn advice(
&self,
strategy: &str,
task: String,
opts: Option<Value>,
) -> Result<String, String>
pub async fn advice( &self, strategy: &str, task: String, opts: Option<Value>, ) -> Result<String, String>
Apply a built-in strategy to a task.
Sourcepub async fn continue_batch(
&self,
session_id: &str,
responses: Vec<QueryResponse>,
) -> Result<String, String>
pub async fn continue_batch( &self, session_id: &str, responses: Vec<QueryResponse>, ) -> Result<String, String>
Continue a paused execution — batch feed.
Sourcepub async fn continue_single(
&self,
session_id: &str,
response: String,
query_id: Option<&str>,
) -> Result<String, String>
pub async fn continue_single( &self, session_id: &str, response: String, query_id: Option<&str>, ) -> Result<String, String>
Continue a paused execution — single response (with optional query_id).
Trait Implementations§
Source§impl Clone for AppService
impl Clone for AppService
Source§fn clone(&self) -> AppService
fn clone(&self) -> AppService
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 AppService
impl !RefUnwindSafe for AppService
impl Send for AppService
impl Sync for AppService
impl Unpin for AppService
impl UnsafeUnpin for AppService
impl !UnwindSafe for AppService
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