MCPcopy Create free account
hub / github.com/AI45Lab/Code / workflow

Method workflow

core/src/agent_api.rs:993–995  ·  view source on GitHub ↗

A programmable [`Workflow`](crate::orchestration::Workflow) bound to this session. Pre-wired with this session's executor (inheriting the same governance as model-driven delegation), persistence store (so each [`phase`](crate::orchestration::Workflow::phase) is a resume boundary), per-step event stream, and a session-derived stable root id. Control flow is ordinary Rust: `await` a verb, inspect t

(&self)

Source from the content-addressed store, hash-verified

991 /// is ordinary Rust: `await` a verb, inspect the outcomes, decide what runs
992 /// next.
993 pub fn workflow(&self) -> crate::orchestration::Workflow {
994 self.workflow_with_token_budget(None)
995 }
996
997 /// Like [`workflow`](Self::workflow) but with a hard token ceiling shared
998 /// across every step. The cap is a best-effort *soft* cost ceiling — under a

Calls 1