pub enum GraphOutput {
Reasoning {
id: String,
content: String,
},
Message {
id: String,
content: String,
tool_calls: Option<Vec<ToolCall>>,
},
}Expand description
Graph output items from LLM execution
Represents structured outputs that can be persisted and traced separately.
This is distinct from praxis_llm::openai::OutputItem which is the raw API format.
Variants§
Implementations§
Source§impl GraphOutput
impl GraphOutput
pub fn reasoning(id: impl Into<String>, content: impl Into<String>) -> Self
pub fn message(id: impl Into<String>, content: impl Into<String>) -> Self
pub fn message_with_tools( id: impl Into<String>, content: impl Into<String>, tool_calls: Vec<ToolCall>, ) -> Self
pub fn id(&self) -> &str
pub fn content(&self) -> &str
Trait Implementations§
Source§impl Clone for GraphOutput
impl Clone for GraphOutput
Source§fn clone(&self) -> GraphOutput
fn clone(&self) -> GraphOutput
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for GraphOutput
impl RefUnwindSafe for GraphOutput
impl Send for GraphOutput
impl Sync for GraphOutput
impl Unpin for GraphOutput
impl UnwindSafe for GraphOutput
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