Package com.embabel.agent.api.common
Interface ExecutingOperationContext
-
- All Implemented Interfaces:
-
com.embabel.agent.api.common.OperationContext,com.embabel.agent.core.Bindable,com.embabel.agent.core.Blackboard,com.embabel.agent.core.MayHaveLastResult,com.embabel.agent.core.ToolGroupConsumer,com.embabel.common.core.types.HasInfoString
public interface ExecutingOperationContext implements OperationContext
OperationContext that execute actions. An ExecutingOperationContext can execute agents as sub-processes.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classExecutingOperationContext.Companion
-
Method Summary
Modifier and Type Method Description UnitsendMessage(Message message)Convenience method to send a message to the output channel of the process. UnitupdateProgress(String message)UnitsendOutputChannelEvent(OutputChannelEvent event)<O extends Any> OasSubProcess(Class<O> outputClass, AgentScopeBuilder<O> agentScopeBuilder)Run the given agent as a sub-process of this operation context. <O extends Any> OasSubProcess(Class<O> outputClass, Agent agent)Run the given agent as a sub-process of this operation context. -
Methods inherited from class com.embabel.agent.api.common.OperationContext
agentPlatform, ai, fireAgent, getAgentProcess, getOperation, getProcessContext, parallelMap, promptRunner, promptRunner, user -
Methods inherited from class com.embabel.agent.core.Blackboard
count, expressionEvaluationModel, get, getBlackboardId, getCondition, getObjects, getOrPut, getValue, hasValue, hide, last, lastResult, objectsOfType, setCondition, spawn -
Methods inherited from class com.embabel.agent.core.Bindable
addAll, addObject, bind, bindAll, plusAssign, plusAssign, plusAssign, set -
Methods inherited from class com.embabel.common.core.types.HasInfoString
infoString -
Methods inherited from class com.embabel.agent.core.ToolGroupConsumer
getToolGroups -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
sendMessage
Unit sendMessage(Message message)
Convenience method to send a message to the output channel of the process.
-
updateProgress
Unit updateProgress(String message)
-
sendOutputChannelEvent
Unit sendOutputChannelEvent(OutputChannelEvent event)
-
asSubProcess
<O extends Any> O asSubProcess(Class<O> outputClass, AgentScopeBuilder<O> agentScopeBuilder)
Run the given agent as a sub-process of this operation context.
- Parameters:
outputClass- the class of the output of the agentagentScopeBuilder- the builder for the agent scope to run
-
-
-
-