pub struct AgentOutcome {Show 14 fields
pub data: Option<Value>,
pub schema_valid: Option<bool>,
pub finish_reason: String,
pub complete: bool,
pub missing: Vec<String>,
pub message: Option<String>,
pub sources: Vec<AgentSource>,
pub field_sources: BTreeMap<String, FieldSource>,
pub evidence: Vec<AgentEvidence>,
pub steps: Vec<AgentStep>,
pub usage: AgentUsage,
pub budget: AgentBudget,
pub warnings: Vec<String>,
pub error: Option<AgentFailure>,
}Expand description
一次运行的结果。
Fields§
§data: Option<Value>模型的最后回答。结果不完整时对外放在 partial。
schema_valid: Option<bool>请求带 schema 时,data 是否符合。
finish_reason: Stringanswered(模型自己判断够了)、coverage_reached、saturated、no_relevant_pages(自适应
停止判据,和带查询的爬取相同)、budget_exhausted、cancelled、error。
complete: bool没有缺失、有回答、符合 schema。
missing: Vec<String>模型报告找不到的内容。
message: Option<String>§sources: Vec<AgentSource>§field_sources: BTreeMap<String, FieldSource>键是 data 里叶子字段的 JSON Pointer。
evidence: Vec<AgentEvidence>§steps: Vec<AgentStep>§usage: AgentUsage§budget: AgentBudget§warnings: Vec<String>§error: Option<AgentFailure>Implementations§
Trait Implementations§
Source§impl Clone for AgentOutcome
impl Clone for AgentOutcome
Source§impl Debug for AgentOutcome
impl Debug for AgentOutcome
Source§impl Default for AgentOutcome
impl Default for AgentOutcome
Source§impl<'de> Deserialize<'de> for AgentOutcomewhere
AgentOutcome: Default,
impl<'de> Deserialize<'de> for AgentOutcomewhere
AgentOutcome: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for AgentOutcome
impl PartialEq for AgentOutcome
Source§impl Serialize for AgentOutcome
impl Serialize for AgentOutcome
impl StructuralPartialEq for AgentOutcome
Auto Trait Implementations§
impl Freeze for AgentOutcome
impl RefUnwindSafe for AgentOutcome
impl Send for AgentOutcome
impl Sync for AgentOutcome
impl Unpin for AgentOutcome
impl UnsafeUnpin for AgentOutcome
impl UnwindSafe for AgentOutcome
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