admitAgentRequestProposal()
Admits agent request proposal.
Import
Section titled “Import”import { admitAgentRequestProposal } from "@graphrefly/ts/orchestration";Signature
Section titled “Signature”function admitAgentRequestProposal( proposal: AgentRequestProposal, opts: { readonly requestId: string; readonly operationId: string; readonly admittedAtMs?: number; readonly reason?: string; readonly sourceRefs?: readonly SourceRef[]; readonly metadata?: Record<string, unknown>; },): AgentRequestAdmittedParameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
proposal | AgentRequestProposal | Proposal to admit, issue, or project. |
opts | { readonly requestId: string; readonly operationId: string; readonly admittedAtMs?: number; readonly reason?: string; readonly sourceRefs?: readonly SourceRef[]; readonly metadata?: Record<string, unknown>; } | Options that configure the helper. |
Returns
Section titled “Returns”The admit agent request proposal result.
Example
Section titled “Example”import { admitAgentRequestProposal } from "@graphrefly/ts/orchestration";Source
Section titled “Source”packages/ts/src/orchestration/agent-runtime-request-ledger.ts