Skip to content

renderItemForAgent

function renderItemForAgent(itemType, item): string | undefined;

Defined in: shared/src/item/item.types.ts:35

The text an item contributes to an agent’s context: undefined for presentation-only types, the type’s own rendering when it defines one, and a name-labelled JSON dump otherwise.

Parameter Type
itemType ItemType
item { data: unknown; key?: string; }
item.data unknown
item.key? string

string | undefined