pub struct GraphExecutionProfile {
pub context: GraphContext,
pub post_processing: GraphPostProcessing,
pub response_profile: ProtocolRequestProfile,
pub shared_budget_id: Option<String>,
pub workspace_access: GraphWorkspaceAccess,
}Expand description
Requirements interpreted by a host before worker submission.
These values neither grant permissions nor configure a runtime directly. Worker-owned execution policy remains an independent ceiling. Unsupported requirements must be rejected rather than silently downgraded.
Fields§
§context: GraphContextFresh utility context or isolated, resumable task conversation.
post_processing: GraphPostProcessingOrdered host effects included in execution settlement.
response_profile: ProtocolRequestProfileExisting protocol schema to validate before publishing a result.
Host-owned shared provider-call budget, charged for retries and repairs.
None retains worker limits; it does not grant unlimited execution.
workspace_access: GraphWorkspaceAccessRead sharing or exclusive access within the referenced environment.
Implementations§
Source§impl GraphExecutionProfile
impl GraphExecutionProfile
Sourcepub fn permission_mode(
&self,
definition: &AgentDefinition,
session_mode: PermissionMode,
) -> PermissionMode
pub fn permission_mode( &self, definition: &AgentDefinition, session_mode: PermissionMode, ) -> PermissionMode
Intersects node and definition restrictions with session permissions. This value must still pass through worker/runtime enforcement.
Sourcepub fn validate(&self) -> Result<(), GraphContractError>
pub fn validate(&self) -> Result<(), GraphContractError>
Checks execution-path compatibility without invoking a worker.
§Errors
Rejects blank identities, session schemas on utility contexts, utility schemas on task contexts, effects on fresh or read-only execution, and background readers outside fresh utility contexts.
Trait Implementations§
Source§impl Clone for GraphExecutionProfile
impl Clone for GraphExecutionProfile
Source§impl Debug for GraphExecutionProfile
impl Debug for GraphExecutionProfile
Source§impl<'de> Deserialize<'de> for GraphExecutionProfile
impl<'de> Deserialize<'de> for GraphExecutionProfile
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>,
impl Eq for GraphExecutionProfile
Source§impl PartialEq for GraphExecutionProfile
impl PartialEq for GraphExecutionProfile
Source§impl Serialize for GraphExecutionProfile
impl Serialize for GraphExecutionProfile
impl StructuralPartialEq for GraphExecutionProfile
Auto Trait Implementations§
impl Forget for GraphExecutionProfile
impl Freeze for GraphExecutionProfile
impl RefUnwindSafe for GraphExecutionProfile
impl Send for GraphExecutionProfile
impl Sync for GraphExecutionProfile
impl Unpin for GraphExecutionProfile
impl UnsafeUnpin for GraphExecutionProfile
impl UnwindSafe for GraphExecutionProfile
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.