Graphorin API reference v0.8.0
Graphorin API reference / @graphorin/proactive / / parseApprovalRef
Function: parseApprovalRef()
ts
function parseApprovalRef(raw):
| AgentApprovalRef
| null;Defined in: packages/proactive/src/approval-ref.ts:45
Parse a run:<runId>:<toolCallId> ref. Returns null on anything malformed - callback-data is untrusted channel input and must never throw at the parse boundary.
Parameters
| Parameter | Type |
|---|---|
raw | string |
Returns
| AgentApprovalRef | null