pub struct AiDENsApp { /* private fields */ }Implementations§
Source§impl AiDENsApp
impl AiDENsApp
pub fn builder() -> AiDENsAppBuilder
Sourcepub async fn chat(prompt: impl Into<String>) -> Result<AiDENsRunOutput>
pub async fn chat(prompt: impl Into<String>) -> Result<AiDENsRunOutput>
One-liner quickstart: build a mock agent and run a prompt.
Sourcepub async fn run_with(
profile: AiDENsProfile,
provider: ProviderSpecV1,
prompt: impl Into<String>,
) -> Result<AiDENsRunOutput>
pub async fn run_with( profile: AiDENsProfile, provider: ProviderSpecV1, prompt: impl Into<String>, ) -> Result<AiDENsRunOutput>
One-liner with a real provider: build an agent with the given profile and provider spec, run a prompt.
pub async fn run(&self) -> Result<()>
pub async fn run_once( &self, prompt: impl Into<String>, ) -> Result<AiDENsRunOutput>
pub fn plan(&self) -> &AiDENsAppPlanV1
pub fn provider_route(&self) -> ProviderRouteReportV1
pub fn tool_ids(&self) -> Vec<String>
pub fn list_tools(&self) -> Vec<String>
pub fn executable_tool_ids(&self) -> Vec<String>
pub fn inspect_tools(&self) -> ToolExposureSetV1
pub fn config_apply_receipt(&self) -> Option<&ConfigApplyReportV1>
pub fn api_honesty_receipts(&self) -> &[ApiHonestyReportV1]
pub fn from_plan(plan: AiDENsAppPlanV1) -> AiDENsAppFromPlanBuilder
pub fn from_config(config_file: impl Into<String>) -> AiDENsAppBuilder
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for AiDENsApp
impl !UnwindSafe for AiDENsApp
impl Freeze for AiDENsApp
impl Send for AiDENsApp
impl Sync for AiDENsApp
impl Unpin for AiDENsApp
impl UnsafeUnpin for AiDENsApp
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