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 type
Response - 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
  • 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 String name, @Nullable io.micrometer.observation.ObservationRegistry observationRegistry)
  • Method Details