Class ChainStepAgent<Request,Response>
java.lang.Object
com.javaaidev.agenticpatterns.core.Agent
com.javaaidev.agenticpatterns.taskexecution.TaskExecutionAgent<Request,Response>
com.javaaidev.agenticpatterns.chainworkflow.ChainStepAgent<Request,Response>
- Type Parameters:
Request- Task input typeResponse- Task output type
- All Implemented Interfaces:
ChainStep<Request,,Response> Function<Request,,Response> org.springframework.core.Ordered
public abstract class ChainStepAgent<Request,Response>
extends TaskExecutionAgent<Request,Response>
implements ChainStep<Request,Response>
A step in the chain implemented as a TaskExecutionAgent
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class com.javaaidev.agenticpatterns.taskexecution.TaskExecutionAgent
chatClientRequestSpecUpdater, mcpClientConfiguration, name, objectMapper, promptTemplate, promptTemplateContextProvider, responseType, toolFilterFields inherited from class com.javaaidev.agenticpatterns.core.Agent
chatClient, observationRegistryFields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedChainStepAgent(org.springframework.ai.chat.client.ChatClient chatClient, @Nullable io.micrometer.observation.ObservationRegistry observationRegistry) protectedChainStepAgent(org.springframework.ai.chat.client.ChatClient chatClient, @Nullable Type responseType, @Nullable io.micrometer.observation.ObservationRegistry observationRegistry) ChainStepAgent(org.springframework.ai.chat.client.ChatClient chatClient, String promptTemplate, @Nullable Type responseType, @Nullable Function<Request, Map<String, Object>> promptTemplateContextProvider, @Nullable Consumer<org.springframework.ai.chat.client.ChatClient.ChatClientRequestSpec> chatClientRequestSpecUpdater, @Nullable com.javaaidev.agenticpatterns.core.McpClientConfiguration mcpClientConfiguration, @Nullable Predicate<String> toolFilter, @Nullable String name, @Nullable io.micrometer.observation.ObservationRegistry observationRegistry, @Nullable com.fasterxml.jackson.databind.ObjectMapper objectMapper) -
Method Summary
Methods inherited from class com.javaaidev.agenticpatterns.taskexecution.TaskExecutionAgent
apply, call, defaultBuilder, getName, getPromptContext, getPromptTemplate, getToolCallbackProvider, instrumentedCall, updateChatClientRequestMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.core.Ordered
getOrder
-
Constructor Details
-
ChainStepAgent
protected ChainStepAgent(org.springframework.ai.chat.client.ChatClient chatClient, @Nullable io.micrometer.observation.ObservationRegistry observationRegistry) -
ChainStepAgent
protected ChainStepAgent(org.springframework.ai.chat.client.ChatClient chatClient, @Nullable Type responseType, @Nullable io.micrometer.observation.ObservationRegistry observationRegistry) -
ChainStepAgent
public ChainStepAgent(org.springframework.ai.chat.client.ChatClient chatClient, String promptTemplate, @Nullable Type responseType, @Nullable Function<Request, Map<String, Object>> promptTemplateContextProvider, @Nullable Consumer<org.springframework.ai.chat.client.ChatClient.ChatClientRequestSpec> chatClientRequestSpecUpdater, @Nullable com.javaaidev.agenticpatterns.core.McpClientConfiguration mcpClientConfiguration, @Nullable Predicate<String> toolFilter, @Nullable String name, @Nullable io.micrometer.observation.ObservationRegistry observationRegistry, @Nullable com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-
-
Method Details
-
builder
-