GraphReFlyTS

API Reference

admitAgentRequestProposal()

Admits agent request proposal.

Import

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

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>;
	},
): AgentRequestAdmitted

Parameters

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.

Returns

The admit agent request proposal result.

Example

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

Source

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