Skip to content
中文

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 NativeFunctionCall

Field structure ​

FieldTypeRequiredDescription
idstringRequiredProvider call id; only unique within the response.
namestringRequiredFunction name exactly as returned by the model.
argumentsstringRequiredRaw 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;
}

API reference, usage examples and developer guides.