Package com.embabel.agent.spi.support
Class SpringContextPlatformServices
-
- All Implemented Interfaces:
-
com.embabel.agent.api.common.PlatformServices
public final class SpringContextPlatformServices implements PlatformServices
-
-
Field Summary
Fields Modifier and Type Field Description private final AgentPlatformagentPlatformprivate final LlmOperationsllmOperationsprivate final AgenticEventListenereventListenerprivate final OperationScheduleroperationSchedulerprivate final Asyncerasyncerprivate final ObjectMapperobjectMapperprivate final OutputChanneloutputChannelprivate final TemplateRenderertemplateRenderer
-
Constructor Summary
Constructors Constructor Description SpringContextPlatformServices(AgentPlatform agentPlatform, LlmOperations llmOperations, AgenticEventListener eventListener, OperationScheduler operationScheduler, Asyncer asyncer, ObjectMapper objectMapper, OutputChannel outputChannel, TemplateRenderer templateRenderer, ApplicationContext applicationContext)
-
Method Summary
Modifier and Type Method Description AgentPlatformgetAgentPlatform()The agent platform executing this agent LlmOperationsgetLlmOperations()Operations to use for LLMs AgenticEventListenergetEventListener()Event listener for agentic events OperationSchedulergetOperationScheduler()Operation scheduler for scheduling operations AsyncergetAsyncer()Asyncer for async operations ObjectMappergetObjectMapper()OutputChannelgetOutputChannel()TemplateRenderergetTemplateRenderer()PlatformServiceswithEventListener(AgenticEventListener agenticEventListener)Autonomyautonomy()ModelProvidermodelProvider()-
-
Constructor Detail
-
SpringContextPlatformServices
SpringContextPlatformServices(AgentPlatform agentPlatform, LlmOperations llmOperations, AgenticEventListener eventListener, OperationScheduler operationScheduler, Asyncer asyncer, ObjectMapper objectMapper, OutputChannel outputChannel, TemplateRenderer templateRenderer, ApplicationContext applicationContext)
-
-
Method Detail
-
getAgentPlatform
AgentPlatform getAgentPlatform()
The agent platform executing this agent
-
getLlmOperations
LlmOperations getLlmOperations()
Operations to use for LLMs
-
getEventListener
AgenticEventListener getEventListener()
Event listener for agentic events
-
getOperationScheduler
OperationScheduler getOperationScheduler()
Operation scheduler for scheduling operations
-
getAsyncer
Asyncer getAsyncer()
Asyncer for async operations
-
getObjectMapper
ObjectMapper getObjectMapper()
-
getOutputChannel
OutputChannel getOutputChannel()
-
getTemplateRenderer
TemplateRenderer getTemplateRenderer()
-
withEventListener
PlatformServices withEventListener(AgenticEventListener agenticEventListener)
-
modelProvider
ModelProvider modelProvider()
-
-
-
-