pub struct EvalSubject {
pub kind: Kind,
pub path: String,
pub version: Option<Option<i64>>,
pub draft: Option<Box<AgentDraft>>,
pub draft_hash: Option<String>,
}Expand description
EvalSubject : What an eval run is executed against.
Fields§
§kind: Kindagent runs the ai_agent resource as it is deployed when the run opens, agent_draft the caller’s unsaved edits of it as the editor holds them (carried in draft), and agent_version one past version named by version. The first and last are read server-side; all three are inlined into the run, so every case of a run executes one configuration: a deploy part-way through changes what the next run measures, never this one.
path: StringPath of the ai_agent resource.
version: Option<Option<i64>>The agent’s per-path version number when the run opened: how many times the resource had been saved, not a resource_version row id. For agent and agent_draft it names the configuration the run read and every case executed. For agent_version it is the request’s own, says which version to inline, and is required.
draft: Option<Box<AgentDraft>>§draft_hash: Option<String>Hash of the configuration a draft run executed, stamped server-side. A draft moves without the version moving, so this is what dates a run of one. It is also what recognises a draft run whose configuration was later deployed: when it matches the agent as deployed, the run’s kind and version are rewritten to that version, once, and the hash is kept as what the resolution rests on.
Implementations§
Source§impl EvalSubject
impl EvalSubject
Sourcepub fn new(kind: Kind, path: String) -> EvalSubject
pub fn new(kind: Kind, path: String) -> EvalSubject
What an eval run is executed against.
Trait Implementations§
Source§impl Clone for EvalSubject
impl Clone for EvalSubject
Source§fn clone(&self) -> EvalSubject
fn clone(&self) -> EvalSubject
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more