pub struct PiAgentProvider { /* private fields */ }Implementations§
Source§impl PiAgentProvider
impl PiAgentProvider
pub fn new(options: PiAgentProviderOptions) -> Self
Trait Implementations§
Source§impl AgentProvider for PiAgentProvider
impl AgentProvider for PiAgentProvider
Source§fn name(&self) -> &str
fn name(&self) -> &str
Stable provider name used in metadata/options, such as
debug, codex,
claude-code, opencode, or pi.Source§fn schema_mode(&self) -> AgentProviderSchemaMode
fn schema_mode(&self) -> AgentProviderSchemaMode
Declares how structured output schemas are handled by this provider.
Source§fn usage_mode(&self) -> AgentProviderUsageMode
fn usage_mode(&self) -> AgentProviderUsageMode
Declares whether this provider can report normalized usage.
Source§fn run<'life0, 'async_trait>(
&'life0 self,
input: AgentProviderRunInput,
) -> Pin<Box<dyn Future<Output = Result<AgentProviderResult>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn run<'life0, 'async_trait>(
&'life0 self,
input: AgentProviderRunInput,
) -> Pin<Box<dyn Future<Output = Result<AgentProviderResult>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Run one agent request and return the workflow-visible output plus optional
diagnostics/usage metadata.
Source§impl Clone for PiAgentProvider
impl Clone for PiAgentProvider
Source§fn clone(&self) -> PiAgentProvider
fn clone(&self) -> PiAgentProvider
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PiAgentProvider
impl Debug for PiAgentProvider
Source§impl Default for PiAgentProvider
impl Default for PiAgentProvider
Source§fn default() -> PiAgentProvider
fn default() -> PiAgentProvider
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PiAgentProvider
impl RefUnwindSafe for PiAgentProvider
impl Send for PiAgentProvider
impl Sync for PiAgentProvider
impl Unpin for PiAgentProvider
impl UnsafeUnpin for PiAgentProvider
impl UnwindSafe for PiAgentProvider
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