Skip to content
中文

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 OutputComposeInput

Field structure ​

FieldTypeRequiredDescription
generatedReadonly<Record<string, unknown>> | undefinedOptionalRead-only. Values already produced for this output's fields, keyed by field id.
itemsreadonly { readonly id: string; readonly outputId: string; readonly input: OutputComposeInput; }[] | undefinedOptionalRead-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;
}

API reference, usage examples and developer guides.