Package com.embabel.agent.core
Interface LlmInvocationHistory
-
- All Implemented Interfaces:
public interface LlmInvocationHistoryHistory of LLM invocations made during an agent process.
-
-
Method Summary
Modifier and Type Method Description Doublecost()List<LlmMetadata>modelsUsed()Distinct list of LLMs use, sorted by name. Usageusage()Note that this is not apples to apples: The usage may be across different LLMs, and the cost may be different. StringcostInfoString(Boolean verbose)abstract List<LlmInvocation>getLlmInvocations()abstract ToolsStatsgetToolsStats()-
-
Method Detail
-
modelsUsed
List<LlmMetadata> modelsUsed()
Distinct list of LLMs use, sorted by name.
-
usage
Usage usage()
Note that this is not apples to apples: The usage may be across different LLMs, and the cost may be different. Cost will correctly reflect this. Look in the list for more details about what tokens were spent where.
-
costInfoString
String costInfoString(Boolean verbose)
-
getLlmInvocations
abstract List<LlmInvocation> getLlmInvocations()
-
getToolsStats
abstract ToolsStats getToolsStats()
-
-
-
-