OutputComposeInput
KIT · interface · Type contract
Input for composing one output: model values plus program-assigned group members.
Import
ts
import type { OutputComposeInput } from '@jangts/agent-core/kits/presentation';js
/** @typedef {import('@jangts/agent-core/kits/presentation').OutputComposeInput} OutputComposeInput */Other public entry points:@jangts/agent-core/types, @jangts/agent-core/kits/presentation, @jangts/agent-core/kits.
Definition
ts
interface OutputComposeInputField structure
| Field | Type | Required | Description |
|---|---|---|---|
generated | Readonly<Record<string, unknown>> | undefined | Optional | Read-only. Values already produced for this output's fields, keyed by field id. |
items | readonly { readonly id: string; readonly outputId: string; readonly input: OutputComposeInput; }[] | undefined | Optional | Read-only. Group members supplied by the program, in order. |
Using the type
Read the contract at the call site
ts
import type { OutputComposeInput } from '@jangts/agent-core/kits/presentation';
// Keep the original contract at the call site; TS and JS share the same runtime behavior.
function inspect(value: OutputComposeInput) {
return value.generated;
}js
/** @param {import('@jangts/agent-core/kits/presentation').OutputComposeInput} value */
function inspect(value) {
return value.generated;
}