pub struct PendingCall {Show 18 fields
pub task: String,
pub covers: String,
pub tool: String,
pub arguments: Value,
pub reason: String,
pub reference: String,
pub presentation: Option<ApprovalView>,
pub call: String,
pub source: String,
pub kind: String,
pub question: Option<String>,
pub waiting_since: Option<u64>,
pub deadline: Option<u64>,
pub object: Option<ObjectView>,
pub sources: Vec<String>,
pub run: Option<String>,
pub batched: bool,
pub digest: String,
}Expand description
A call that stopped an attempt for approval, or a question, waiting for a person.
Fields§
§task: StringTask ID.
covers: StringWhat a decision would cover, e.g. write `Cargo.toml` .
tool: StringThe tool.
arguments: ValueIts arguments as the model sent them.
reason: StringWhy it needs approval.
reference: StringThe saved attempt.
presentation: Option<ApprovalView>The call as the inline prompt shows it.
call: StringThe waiting call’s id (approve --call); empty for a stopped attempt.
source: Stringtask (the attempt waits and resumes) or attempt (stopped and saved
in a parallel lane).
kind: Stringapproval or question.
question: Option<String>A question’s text.
waiting_since: Option<u64>Seconds since the epoch the call has waited since.
deadline: Option<u64>Seconds since the epoch it is denied as expired at.
object: Option<ObjectView>The object a decision covers.
sources: Vec<String>Where arguments of the call were copied from (source lines).
run: Option<String>The run it belongs to.
batched: boolIt waits in its run’s batch: the asking budget was used.
digest: StringSHA-256 over its id and the object a decision covers: a decision names it and is refused when another call (or another object) waits now.
Implementations§
Trait Implementations§
Source§impl Clone for PendingCall
impl Clone for PendingCall
Source§impl Debug for PendingCall
impl Debug for PendingCall
Source§impl Default for PendingCall
impl Default for PendingCall
Source§impl JsonSchema for PendingCall
impl JsonSchema for PendingCall
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read more