Package com.tnsai.agents.execution
Interface LLMOrchestrator.ToolCallHandler
- Enclosing class:
LLMOrchestrator
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Functional interface for handling tool calls.
-
Method Summary
Modifier and TypeMethodDescriptionexecute(ChatResponse response, boolean useHistory) Executes tool calls from a ChatResponse.
-
Method Details
-
execute
Executes tool calls from a ChatResponse.- Parameters:
response- the response containing tool callsuseHistory- whether to use conversation history- Returns:
- the result of tool execution
-