stack kb agent-builder post-agent-builder-agents-agent-id-consumption cli command
Auth required
elastic stack kb agent-builder post-agent-builder-agents-agent-id-consumption \
--agent-id <agent-id> \
[options]
Get agent consumption data
Behaviour flags:
--dry-run — validate all inputs and exit without performing any action
--agent-idstringrequired- The unique identifier of the agent.
--has-warnings- Filter to conversations with or without high-token warnings.
--searchstring- Free-text search filter on conversation title.
--search-afterstring[]-
Cursor for pagination. Pass the search_after value from the previous response.
Repeatable: pass
--search-aftermultiple times to supply more than one value --sizenumber- Number of results per page.
--sort-fieldenum-
Field to sort results by.
Values: updated_at, total_tokens, round_count
--sort-orderenum-
Sort direction.
Values: asc, desc
--usernamesstring[]-
Filter results to conversations by these usernames.
Repeatable: pass
--usernamesmultiple times to supply more than one value --input-filestring- path to a JSON file to use as command input
--dry-run- validate all inputs and exit without performing any action (preview changes without applying them)
--json-
output as JSON