API Reference
agentRequestProposalFromDecision()
Creates an agent request proposal from decision.
Import
import { agentRequestProposalFromDecision } from "@graphrefly/ts/orchestration";
Signature
function agentRequestProposalFromDecision(
decision: AgentDecisionContinue,
proposal: Omit<AgentRequestProposal, "kind" | "effectRunId" | "agentRunId" | "sourceDecisionId">,
): AgentRequestProposal
Parameters
| Parameter | Type | Description |
|---|---|---|
decision | AgentDecisionContinue | Admission decision or interpreter output to project. |
proposal | Omit<AgentRequestProposal, "kind" | "effectRunId" | "agentRunId" | "sourceDecisionId"> | Proposal to admit, issue, or project. |
Returns
The agent request proposal from decision result.
Example
import { agentRequestProposalFromDecision } from "@graphrefly/ts/orchestration";
Source
packages/ts/src/orchestration/agent-runtime-request-ledger.ts