GraphReFlyTS

API Reference

issueAgentRequest()

Checks whether a value is an issue agent request.

Import

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

Signature

function issueAgentRequest(
	proposal: AgentRequestProposal,
	admission: AgentRequestAdmitted,
	opts: { readonly issuedAtMs?: number; readonly sourceRefs?: readonly SourceRef[] } = {},
): AgentRequestIssued

Parameters

ParameterTypeDescription
proposalAgentRequestProposalProposal to admit, issue, or project.
admissionAgentRequestAdmittedAdmission decision paired with the proposal.
opts{ readonly issuedAtMs?: number; readonly sourceRefs?: readonly SourceRef[] }Options that configure the helper.

Returns

true when the value matches the expected shape.

Example

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

Source

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