Lava Filters - AgentToolMetadata
Category:AI Agent
Description:Adds additional metadata to the result to be used by the agent when crafting the response text. It is not stored in the hidden chat history.
Input:
Lava: {% assign total = 7 %}
{% assign message = 'We found the following campuses close to you: North Side, East Side, West Side.' %}
{% assign metadata = '' AddToDictionary:'HasMoreData', 'True' %}
{{ 'Success' | AgentToolResult:message
| AgentToolMetadata:'TotalResultCount',7
| AgenttoolMetadata:metadata }}
Output: