pub struct GraphProposalResolution<'a> {
pub agent: AgentSelection,
pub answers: &'a [String],
pub definitions: &'a [AgentDefinition],
pub graph_id: &'a str,
pub limits: &'a GraphProposalLimits,
pub permission: PermissionMode,
pub request: &'a TurnPrompt,
pub revision_attachments: &'a [TurnPromptAttachment],
pub session_id: &'a SessionId,
}Expand description
Host-owned inputs captured before generation; no external work occurs here.
Fields§
§agent: AgentSelectionExact provider and model shared by every proposed node.
answers: &'a [String]Saved question-and-answer history, encoded as JSON data for each node.
definitions: &'a [AgentDefinition]Enabled definitions captured from the session’s catalog.
graph_id: &'a strFresh host-allocated graph namespace, never supplied by the model.
limits: &'a GraphProposalLimitsCaptured generation and execution ceilings.
permission: PermissionModeSession permission ceiling captured by the host.
request: &'a TurnPromptOriginal prompt; resolution appends answers and retains its source classification.
revision_attachments: &'a [TurnPromptAttachment]Revision feedback images, appended after the request images.
session_id: &'a SessionIdSession whose shared Env is bound to every node.
Implementations§
Source§impl GraphProposalResolution<'_>
impl GraphProposalResolution<'_>
Sourcepub fn resolve(
&self,
proposal: &GraphProposal,
) -> Result<ExecutionGraph, String>
pub fn resolve( &self, proposal: &GraphProposal, ) -> Result<ExecutionGraph, String>
Resolves only supported profiles and rejects escalation before approval.
§Errors
Rejects size limits, unknown definitions, unsupported profiles, permissions, and invalid graphs. Request attachments, followed by revision attachments, are copied to every node unchanged.
Sourcepub fn resolve_expansion(
&self,
base: &ExecutionGraph,
proposal: &GraphProposal,
) -> Result<ExecutionGraph, String>
pub fn resolve_expansion( &self, base: &ExecutionGraph, proposal: &GraphProposal, ) -> Result<ExecutionGraph, String>
Resolves proposal as nodes appended to base, returning its next
revision. Proposed nodes may depend on base nodes; task identities
continue after the base’s nodes, and every node spends from the
graph’s existing {graph_id}:calls budget.
§Errors
Rejects everything Self::resolve rejects, a base that is not
this resolution’s graph in the captured session, and proposed node
identities the base already uses.