pub struct OpenAiAdapter;Expand description
OpenAI adapter
Implementations§
Source§impl OpenAiAdapter
impl OpenAiAdapter
Sourcepub fn to_response_with_id(
output: Value,
tool_call_id: String,
) -> OpenAiToolResponse
pub fn to_response_with_id( output: Value, tool_call_id: String, ) -> OpenAiToolResponse
Create response with tool call ID
Trait Implementations§
Source§impl ToolAdapter for OpenAiAdapter
impl ToolAdapter for OpenAiAdapter
Source§type CallRequest = OpenAiCallRequest
type CallRequest = OpenAiCallRequest
Protocol-specific call request
Source§type CallResponse = OpenAiToolResponse
type CallResponse = OpenAiToolResponse
Protocol-specific call response
Source§fn from_request(req: OpenAiCallRequest) -> Result<(String, Value), ToolError>
fn from_request(req: OpenAiCallRequest) -> Result<(String, Value), ToolError>
Extract tool name and params from protocol request
Source§fn to_response(output: Value) -> OpenAiToolResponse
fn to_response(output: Value) -> OpenAiToolResponse
Convert tool output to protocol response
Auto Trait Implementations§
impl Freeze for OpenAiAdapter
impl RefUnwindSafe for OpenAiAdapter
impl Send for OpenAiAdapter
impl Sync for OpenAiAdapter
impl Unpin for OpenAiAdapter
impl UnsafeUnpin for OpenAiAdapter
impl UnwindSafe for OpenAiAdapter
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