Package kimaira.agentic.pattern.chain
Class ChainWorkflowPattern
java.lang.Object
kimaira.agentic.core.AbstractAgentCard
kimaira.agentic.core.AgenticFlowComponent
kimaira.agentic.pattern.AbstractAgenticPattern
kimaira.agentic.pattern.chain.ChainWorkflowPattern
- All Implemented Interfaces:
AgentCard,AgenticExecutionLifecycle
Chain Workflow pattern exemplifies the principle of breaking down complex tasks into simpler, more manageable steps.
When to Use:- Tasks with clear sequential steps
- When you want to trade latency for higher accuracy
- When each step builds on the previous step’s output
- Each step has a focused responsibility
- Output from one step becomes input for the next
- The chain is easily extensible and maintainable
-
Field Summary
Fields inherited from class kimaira.agentic.core.AgenticFlowComponent
chat, tracing -
Constructor Summary
ConstructorsConstructorDescriptionChainWorkflowPattern(AgenticChatBehavior chat, AgenticTracingBehavior tracing, AgenticMessagingBehavior messaging) -
Method Summary
Modifier and TypeMethodDescriptionkimaira.agentic.data.transfer.messaging.MessagedoExecute(kimaira.agentic.data.transfer.messaging.Message input) Methods inherited from class kimaira.agentic.pattern.AbstractAgenticPattern
assignRespondentInFinalMessage, execute, getConversationReplyTo, getConversationStatus, getConversationStep, getValue, listAvailableAgents, listAvailableAgentsWithDescription, setValue, updateConversationReplyTo, updateConversationStatus, updateConversationStepMethods inherited from class kimaira.agentic.core.AgenticFlowComponent
getNext, isFirstInFlow, postExecute, postExecuteNotification, preExecute, sendMessage, setName, storeExecutionResultMethods inherited from class kimaira.agentic.core.AbstractAgentCard
add, add, getChildAt, getChildren, getDefaultInputModes, getDefaultOutputMode, getDefaultOutputModes, getDescription, getName, getPredefinedAgentSkill, getProvider, getSkills, isRagEnabled, setDescription, setProvider, setSkills, systemPromptMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface kimaira.agentic.core.AgenticExecutionLifecycle
getName
-
Constructor Details
-
ChainWorkflowPattern
public ChainWorkflowPattern(AgenticChatBehavior chat, AgenticTracingBehavior tracing, AgenticMessagingBehavior messaging)
-
-
Method Details
-
doExecute
public kimaira.agentic.data.transfer.messaging.Message doExecute(kimaira.agentic.data.transfer.messaging.Message input) - Specified by:
doExecutein interfaceAgenticExecutionLifecycle- Overrides:
doExecutein classAgenticFlowComponent
-