pub struct FoundryExecutor;Expand description
Foundry/Azure OpenAI executor implementing the Executor trait.
Supports two connection kinds:
ApiKey: Uses theapi-keyheader for authenticationFoundry: Uses the Foundry endpoint (Entra ID auth, when available)
Falls back to API key auth when no explicit connection is configured.
Trait Implementations§
Source§impl Executor for FoundryExecutor
impl Executor for FoundryExecutor
Source§fn execute<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
agent: &'life1 Prompty,
messages: &'life2 [Message],
) -> Pin<Box<dyn Future<Output = Result<Value, InvokerError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn execute<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
agent: &'life1 Prompty,
messages: &'life2 [Message],
) -> Pin<Box<dyn Future<Output = Result<Value, InvokerError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Execute an LLM call with the given messages.
Source§fn format_tool_messages(
&self,
_raw_response: &Value,
tool_calls: &[ToolCall],
tool_results: &[String],
_text_content: Option<&str>,
) -> Vec<Message>
fn format_tool_messages( &self, _raw_response: &Value, tool_calls: &[ToolCall], tool_results: &[String], _text_content: Option<&str>, ) -> Vec<Message>
Format tool-call results into messages for the next iteration of the
agent loop. Returns messages to append to the conversation. Read more
Source§fn execute_stream<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
agent: &'life1 Prompty,
messages: &'life2 [Message],
) -> Pin<Box<dyn Future<Output = Result<Pin<Box<dyn Stream<Item = Value> + Send>>, InvokerError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn execute_stream<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
agent: &'life1 Prompty,
messages: &'life2 [Message],
) -> Pin<Box<dyn Future<Output = Result<Pin<Box<dyn Stream<Item = Value> + Send>>, InvokerError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Execute an LLM call and return a stream of raw SSE chunks. Read more
Auto Trait Implementations§
impl Freeze for FoundryExecutor
impl RefUnwindSafe for FoundryExecutor
impl Send for FoundryExecutor
impl Sync for FoundryExecutor
impl Unpin for FoundryExecutor
impl UnsafeUnpin for FoundryExecutor
impl UnwindSafe for FoundryExecutor
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