Skip to content
中文

AssociationSource ​

SUPPORT · interface · Type contract

Local provenance, never an extra model input requirement.

Import ​

ts
import type { AssociationSource } from '@jangts/agent-core/support';
js
/** @typedef {import('@jangts/agent-core/support').AssociationSource} AssociationSource */

Other public entry points:@jangts/agent-core/support.

Definition ​

ts
interface AssociationSource

Field structure ​

FieldTypeRequiredDescription
kind"registration" | "standalone"RequiredRead-only. See the type definition and usage context.
idstringRequiredRead-only. See the type definition and usage context.
descriptionstringRequiredRead-only. See the type definition and usage context.
toolIdsreadonly string[]RequiredRead-only. See the type definition and usage context.

Using the type ​

Read the contract at the call site ​

ts
import type { AssociationSource } from '@jangts/agent-core/support';

// Keep the original contract at the call site; TS and JS share the same runtime behavior.
function inspect(value: AssociationSource) {
  return value.kind;
}
js
/** @param {import('@jangts/agent-core/support').AssociationSource} value */
function inspect(value) {
  return value.kind;
}

API reference, usage examples and developer guides.