Class LoopOperation
java.lang.Object
com.mulesoft.modules.agent.broker.internal.operation.loop.LoopOperation
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidagentLoop(AgentsBroker config, LLMClient llmClient, String taskId, String contextId, InputStream a2aMessageSendParams, String apiInstanceId, String instructions, List<McpServer> mcpServers, List<A2AClient> a2aClients, List<CustomToolRoute> tools, Integer maxNumberOfLoops, Integer maxConsecutiveErrors, org.mule.sdk.api.runtime.source.DistributedTraceContextManager traceContextManager, org.mule.runtime.extension.api.client.ExtensionsClient extensionsClient, org.mule.runtime.extension.api.runtime.process.CompletionCallback<String, Void> completionCallback)
-
Constructor Details
-
LoopOperation
public LoopOperation()
-
-
Method Details
-
agentLoop
@Execution(CPU_LITE) @Throws(LoopErrorTypeProvider.class) @MediaType(value="application/json", strict=false) public void agentLoop(@Config AgentsBroker config, @Connection LLMClient llmClient, @Optional @Expression(REQUIRED) String taskId, @Optional @Expression(REQUIRED) String contextId, @Content(primary=true) InputStream a2aMessageSendParams, @Optional String apiInstanceId, @Optional @Content String instructions, @ParameterDsl(allowReferences=false) @Optional @NullSafe List<McpServer> mcpServers, @ParameterDsl(allowReferences=false) @Alias("a2aClients") @Optional @NullSafe List<A2AClient> a2aClients, @Optional @NullSafe @ExecutionOccurrence(MULTIPLE_OR_NONE) @ChainInputResolver(ToolInputResolver.class) List<CustomToolRoute> tools, @ConfigOverride Integer maxNumberOfLoops, @ConfigOverride Integer maxConsecutiveErrors, org.mule.sdk.api.runtime.source.DistributedTraceContextManager traceContextManager, org.mule.runtime.extension.api.client.ExtensionsClient extensionsClient, org.mule.runtime.extension.api.runtime.process.CompletionCallback<String, Void> completionCallback)
-