Tool Loop Llm Operations
LlmOperations implementation that uses Embabel's framework-agnostic tool loop.
This class provides the core tool loop orchestration logic without depending on any specific LLM framework (Spring AI, LangChain4j, etc.). Subclasses provide the framework-specific implementations for message sending and output conversion.
Parameters
ModelProvider to get the LLM model
ToolDecorator to decorate tools
Validator for bean validation
Generator for validation prompts
Properties for data binding configuration
Resolver for auto LLM selection
Properties for prompt configuration
ObjectMapper for JSON serialization
Registry for distributed tracing observations
TemplateRenderer for rendering prompt templates (default: NoOpTemplateRenderer)
Constructors
Functions
Create an output object, in the context of an AgentProcess.
Try to create an output object in the context of an AgentProcess. Return a failure result if the LLM does not have enough information to create the object.
Try to create an output object with thinking block extraction in the context of an AgentProcess. Return a failure result if the LLM does not have enough information to create the object.
Create an output object with thinking block extraction, in the context of an AgentProcess.
Low level transform, not necessarily aware of platform This is a convenience overload that creates a UserMessage from a String prompt
Low level transform, not necessarily aware of platform
Low level transform with thinking block extraction, not necessarily aware of platform.
Low level transform with thinking block extraction and MaybeReturn semantics, not necessarily aware of platform. Returns a failure result if the LLM indicates it cannot create the object.
Generate text in the context of an AgentProcess.