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
| Parameter | Type | Description |
|---|---|---|
proposal | AgentRequestProposal | Proposal to admit, issue, or project. |
admission | AgentRequestAdmitted | Admission 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