NativeFunctionCall
CORE · interface · Type contract
Request-local native call buffer; never an execution receipt.
Import
ts
import type { NativeFunctionCall } from '@jangts/agent-core/support';js
/** @typedef {import('@jangts/agent-core/support').NativeFunctionCall} NativeFunctionCall */Other public entry points:@jangts/agent-core/types, @jangts/agent-core/structs, @jangts/agent-core/support, @jangts/agent-core/support/model.
Definition
ts
interface NativeFunctionCallField structure
| Field | Type | Required | Description |
|---|---|---|---|
id | string | Required | Provider call id; only unique within the response. |
name | string | Required | Function name exactly as returned by the model. |
arguments | string | Required | Raw JSON argument text, validated only when the selection is parsed. |
Using the type
Read the contract at the call site
ts
import type { NativeFunctionCall } from '@jangts/agent-core/support';
// Keep the original contract at the call site; TS and JS share the same runtime behavior.
function inspect(value: NativeFunctionCall) {
return value.id;
}js
/** @param {import('@jangts/agent-core/support').NativeFunctionCall} value */
function inspect(value) {
return value.id;
}