pub struct ReasoningState<'a> {
pub state: &'a mut OpenAIClientState,
pub model: ModelConfig,
pub has_content: bool,
pub has_tool_calls: bool,
pub content: Option<String>,
pub tool_calls: Option<Vec<FunctionCall>>,
pub api_result: APIResult,
}Fields§
§state: &'a mut OpenAIClientState§model: ModelConfig§has_content: bool§has_tool_calls: bool§content: Option<String>§tool_calls: Option<Vec<FunctionCall>>§api_result: APIResultImplementations§
Source§impl<'a> ReasoningState<'a>
impl<'a> ReasoningState<'a>
Sourcepub fn can_finish(&self) -> bool
pub fn can_finish(&self) -> bool
Check if the reasoning state can proceed.
Sourcepub fn show_tool_calls(&self) -> Vec<(&str, &Value)>
pub fn show_tool_calls(&self) -> Vec<(&str, &Value)>
Check if the reasoning state has tool calls.
Auto Trait Implementations§
impl<'a> Freeze for ReasoningState<'a>
impl<'a> !RefUnwindSafe for ReasoningState<'a>
impl<'a> Send for ReasoningState<'a>
impl<'a> Sync for ReasoningState<'a>
impl<'a> Unpin for ReasoningState<'a>
impl<'a> !UnwindSafe for ReasoningState<'a>
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