renderItemForAgent
function renderItemForAgent(itemType, item): string | undefined;Defined in: 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.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
itemType |
ItemType |
item |
{ data: unknown; key?: string; } |
item.data |
unknown |
item.key? |
string |
Returns
Section titled “Returns”string | undefined