java.lang.Object
java.lang.Record
com.agentforge4j.bootstrap.BootstrapComponents
public record BootstrapComponents(AgentRepository agentRepository, WorkflowRepository workflowRepository, WorkflowStateRepository workflowStateRepository, WorkflowEventLog workflowEventLog, LlmClientResolver llmClientResolver, ContextRenderer contextRenderer, LlmCommandParser llmCommandParser, EventRecorder eventRecorder, FileSink fileSink, LlmProviderSelectionStrategy llmProviderSelectionStrategy, IntegrationRepository integrationRepository, ToolProviderResolver toolProviderResolver, ToolExecutionService toolExecutionService, com.fasterxml.jackson.databind.ObjectMapper objectMapper, Clock clock, AgentInvoker agentInvoker, LlmCallObserver llmCallObserver, LoadedConfiguration loadedConfiguration)
extends Record
Exposes the individual components assembled by
AgentForge4jBootstrap.
Internal — for framework integrators only (Spring starter, Quarkus extension, CLI). Not part of the public API. Not advertised in the README.
A framework integrator uses this record to register the individual components without duplicating bootstrap's default-wiring logic.
Tool support is opt-in, so integrationRepository, toolProviderResolver, and
toolExecutionService are null unless an integrations source (or explicit resolver / providers) was
configured; integrationRepository is non-null only on the integrations path, where it is the repository
feeding the resolver. All other components are never null.
-
Constructor Summary
ConstructorsConstructorDescriptionBootstrapComponents(AgentRepository agentRepository, WorkflowRepository workflowRepository, WorkflowStateRepository workflowStateRepository, WorkflowEventLog workflowEventLog, LlmClientResolver llmClientResolver, ContextRenderer contextRenderer, LlmCommandParser llmCommandParser, EventRecorder eventRecorder, FileSink fileSink, LlmProviderSelectionStrategy llmProviderSelectionStrategy, IntegrationRepository integrationRepository, ToolProviderResolver toolProviderResolver, ToolExecutionService toolExecutionService, com.fasterxml.jackson.databind.ObjectMapper objectMapper, Clock clock, AgentInvoker agentInvoker, LlmCallObserver llmCallObserver, LoadedConfiguration loadedConfiguration) Creates an instance of aBootstrapComponentsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theagentInvokerrecord component.Returns the value of theagentRepositoryrecord component.clock()Returns the value of theclockrecord component.Returns the value of thecontextRendererrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theeventRecorderrecord component.fileSink()Returns the value of thefileSinkrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theintegrationRepositoryrecord component.Returns the value of thellmCallObserverrecord component.Returns the value of thellmClientResolverrecord component.Returns the value of thellmCommandParserrecord component.Returns the value of thellmProviderSelectionStrategyrecord component.Returns the value of theloadedConfigurationrecord component.com.fasterxml.jackson.databind.ObjectMapperReturns the value of theobjectMapperrecord component.Returns the value of thetoolExecutionServicerecord component.Returns the value of thetoolProviderResolverrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theworkflowEventLogrecord component.Returns the value of theworkflowRepositoryrecord component.Returns the value of theworkflowStateRepositoryrecord component.
-
Constructor Details
-
BootstrapComponents
public BootstrapComponents(AgentRepository agentRepository, WorkflowRepository workflowRepository, WorkflowStateRepository workflowStateRepository, WorkflowEventLog workflowEventLog, LlmClientResolver llmClientResolver, ContextRenderer contextRenderer, LlmCommandParser llmCommandParser, EventRecorder eventRecorder, FileSink fileSink, LlmProviderSelectionStrategy llmProviderSelectionStrategy, IntegrationRepository integrationRepository, ToolProviderResolver toolProviderResolver, ToolExecutionService toolExecutionService, com.fasterxml.jackson.databind.ObjectMapper objectMapper, Clock clock, AgentInvoker agentInvoker, LlmCallObserver llmCallObserver, LoadedConfiguration loadedConfiguration) Creates an instance of aBootstrapComponentsrecord class.- Parameters:
agentRepository- the value for theagentRepositoryrecord componentworkflowRepository- the value for theworkflowRepositoryrecord componentworkflowStateRepository- the value for theworkflowStateRepositoryrecord componentworkflowEventLog- the value for theworkflowEventLogrecord componentllmClientResolver- the value for thellmClientResolverrecord componentcontextRenderer- the value for thecontextRendererrecord componentllmCommandParser- the value for thellmCommandParserrecord componenteventRecorder- the value for theeventRecorderrecord componentfileSink- the value for thefileSinkrecord componentllmProviderSelectionStrategy- the value for thellmProviderSelectionStrategyrecord componentintegrationRepository- the value for theintegrationRepositoryrecord componenttoolProviderResolver- the value for thetoolProviderResolverrecord componenttoolExecutionService- the value for thetoolExecutionServicerecord componentobjectMapper- the value for theobjectMapperrecord componentclock- the value for theclockrecord componentagentInvoker- the value for theagentInvokerrecord componentllmCallObserver- the value for thellmCallObserverrecord componentloadedConfiguration- the value for theloadedConfigurationrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
agentRepository
Returns the value of theagentRepositoryrecord component.- Returns:
- the value of the
agentRepositoryrecord component
-
workflowRepository
Returns the value of theworkflowRepositoryrecord component.- Returns:
- the value of the
workflowRepositoryrecord component
-
workflowStateRepository
Returns the value of theworkflowStateRepositoryrecord component.- Returns:
- the value of the
workflowStateRepositoryrecord component
-
workflowEventLog
Returns the value of theworkflowEventLogrecord component.- Returns:
- the value of the
workflowEventLogrecord component
-
llmClientResolver
Returns the value of thellmClientResolverrecord component.- Returns:
- the value of the
llmClientResolverrecord component
-
contextRenderer
Returns the value of thecontextRendererrecord component.- Returns:
- the value of the
contextRendererrecord component
-
llmCommandParser
Returns the value of thellmCommandParserrecord component.- Returns:
- the value of the
llmCommandParserrecord component
-
eventRecorder
Returns the value of theeventRecorderrecord component.- Returns:
- the value of the
eventRecorderrecord component
-
fileSink
Returns the value of thefileSinkrecord component.- Returns:
- the value of the
fileSinkrecord component
-
llmProviderSelectionStrategy
Returns the value of thellmProviderSelectionStrategyrecord component.- Returns:
- the value of the
llmProviderSelectionStrategyrecord component
-
integrationRepository
Returns the value of theintegrationRepositoryrecord component.- Returns:
- the value of the
integrationRepositoryrecord component
-
toolProviderResolver
Returns the value of thetoolProviderResolverrecord component.- Returns:
- the value of the
toolProviderResolverrecord component
-
toolExecutionService
Returns the value of thetoolExecutionServicerecord component.- Returns:
- the value of the
toolExecutionServicerecord component
-
objectMapper
public com.fasterxml.jackson.databind.ObjectMapper objectMapper()Returns the value of theobjectMapperrecord component.- Returns:
- the value of the
objectMapperrecord component
-
clock
Returns the value of theclockrecord component.- Returns:
- the value of the
clockrecord component
-
agentInvoker
Returns the value of theagentInvokerrecord component.- Returns:
- the value of the
agentInvokerrecord component
-
llmCallObserver
Returns the value of thellmCallObserverrecord component.- Returns:
- the value of the
llmCallObserverrecord component
-
loadedConfiguration
Returns the value of theloadedConfigurationrecord component.- Returns:
- the value of the
loadedConfigurationrecord component
-