Skip to content
PACKAGES

admitAgentRequestProposal()

Admits agent request proposal.

import { admitAgentRequestProposal } from "@graphrefly/ts/orchestration";
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>;
},
): AgentRequestAdmitted
ParameterTypeDescription
proposalAgentRequestProposalProposal 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.

The admit agent request proposal result.

import { admitAgentRequestProposal } from "@graphrefly/ts/orchestration";

packages/ts/src/orchestration/agent-runtime-request-ledger.ts