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 AssociationSourceField structure
| Field | Type | Required | Description |
|---|---|---|---|
kind | "registration" | "standalone" | Required | Read-only. See the type definition and usage context. |
id | string | Required | Read-only. See the type definition and usage context. |
description | string | Required | Read-only. See the type definition and usage context. |
toolIds | readonly string[] | Required | Read-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;
}