GraphReFlyTS

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

ParameterTypeDescription
decisionAgentDecisionContinueAdmission decision or interpreter output to project.
proposalOmit<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