Uses of Interface
com.flowable.agent.engine.impl.runtime.invocation.AgentInvocationContext
Packages that use AgentInvocationContext
Package
Description
-
Uses of AgentInvocationContext in com.flowable.agent.engine.impl.guardrail
Methods in com.flowable.agent.engine.impl.guardrail with parameters of type AgentInvocationContextModifier and TypeMethodDescriptionGuardrailValidatingAiModelInvoker.invoke(AgentInvocationContext agentInvocationContext) GuardrailValidatingAiModelInvoker.resolveMockOverride(AgentInvocationContext context, String serviceKey, AgentDefinitionModel.GuardrailReference ref) protected GuardrailResultGuardrailValidatingAiModelInvoker.validateDelegateExpressionGuardrail(AgentDefinitionModel.GuardrailReference guardrailReference, AgentDefinitionModel.AgentOperation operation, AgentInvocationContext context, String phase, String outputContent, Map<String, Object> parsedOutputParameters, List<AgentInvocationResultResponse.Exchange> guardrailExchanges) protected GuardrailResultGuardrailValidatingAiModelInvoker.validateGuardrailAgent(AgentDefinitionModel.GuardrailReference ref, AgentDefinitionModel.AgentOperation operation, AgentInvocationContext context, String phase, String outputContent, List<AgentInvocationResultResponse.Exchange> guardrailExchanges) protected GuardrailResultGuardrailValidatingAiModelInvoker.validateOperationGuardrails(AgentDefinitionModel.AgentOperation operation, AgentInvocationContext context, String phase, String outputContent, Map<String, Object> parsedOutputParameters, List<AgentInvocationResultResponse.Exchange> guardrailExchanges) Validates guardrails set on the operation in their configured order.protected GuardrailResultGuardrailValidatingAiModelInvoker.validateOutputParameterConstraints(AgentDefinitionModel.AgentOperation operation, Map<String, Object> parsedOutputParameters, AgentInvocationContext context, String outputContent, List<AgentInvocationResultResponse.Exchange> guardrailExchanges) protected GuardrailResultGuardrailValidatingAiModelInvoker.validateWithServiceRegistry(AgentDefinitionModel.GuardrailReference ref, AgentDefinitionModel.AgentOperation operation, AgentInvocationContext context, String phase, String outputContent, List<AgentInvocationResultResponse.Exchange> guardrailExchanges) -
Uses of AgentInvocationContext in com.flowable.agent.engine.impl.job
Methods in com.flowable.agent.engine.impl.job that return AgentInvocationContextModifier and TypeMethodDescriptionAbstractAgentJobHandler.AgentJobHandlerResult.invocationContext()Returns the value of theinvocationContextrecord component.Methods in com.flowable.agent.engine.impl.job with parameters of type AgentInvocationContextModifier and TypeMethodDescriptionprotected AgentInvocationEntityAbstractAgentJobHandler.auditExchange(org.flowable.common.engine.impl.interceptor.CommandContext commandContext, AgentInvocationContext agentInvocationContext, AgentInvocationResultResponse.Invocation aiInvocation, boolean storeAsHumanContent) protected voidAiActivationJobHandler.createProcessAiActivatedPlanItemsJob(List<String> planItemInstanceIds, String explanation, AgentInvocationContext agentInvocationContext, tools.jackson.databind.JsonNode jobConfiguration) AbstractAgentJobHandler.handleGuardrailViolation(AgentInvocationContext agentInvocationContext, FlowableGuardrailViolationException ex, IntentEvaluationTrigger intentEvaluationTrigger, tools.jackson.databind.JsonNode jobConfiguration) Invoked when the agent invocation (which runs in the non-transactional phase of the job) raises a guardrail business error.AsyncAgentInvokeJobHandler.handleGuardrailViolation(AgentInvocationContext agentInvocationContext, FlowableGuardrailViolationException ex, IntentEvaluationTrigger intentEvaluationTrigger, tools.jackson.databind.JsonNode jobConfiguration) protected AgentInvocationResultResponseAbstractAgentJobHandler.invokeAgent(AgentInvocationContext agentInvocationContext) Constructors in com.flowable.agent.engine.impl.job with parameters of type AgentInvocationContextModifierConstructorDescriptionAgentJobHandlerResult(AgentInvocationContext invocationContext, AgentInvocationResultResponse resultResponse, IntentEvaluationTrigger intentEvaluationTrigger, tools.jackson.databind.JsonNode jobConfiguration) AgentJobHandlerResult(AgentInvocationContext invocationContext, AgentInvocationResultResponse resultResponse, IntentEvaluationTrigger intentEvaluationTrigger, tools.jackson.databind.JsonNode jobConfiguration, FlowableGuardrailViolationException guardrailViolation) Creates an instance of aAgentJobHandlerResultrecord class. -
Uses of AgentInvocationContext in com.flowable.agent.engine.impl.model
Methods in com.flowable.agent.engine.impl.model with parameters of type AgentInvocationContextModifier and TypeMethodDescriptionAiModelInvoker.invoke(AgentInvocationContext agentInvocationContext) -
Uses of AgentInvocationContext in com.flowable.agent.engine.impl.model.a2a
Methods in com.flowable.agent.engine.impl.model.a2a with parameters of type AgentInvocationContextModifier and TypeMethodDescriptionprotected A2AMessageA2AModelInvoker.createSendMessage(AgentInvocationContext agentInvocationContext) A2AModelInvoker.determineMetadata(AgentInvocationContext agentInvocationContext) A2AModelInvoker.invoke(AgentInvocationContext agentInvocationContext) -
Uses of AgentInvocationContext in com.flowable.agent.engine.impl.model.chatclient
Methods in com.flowable.agent.engine.impl.model.chatclient with parameters of type AgentInvocationContextModifier and TypeMethodDescriptionprotected voidFlowableAgentModelSettingsAdvisor.addAuthenticationHeaders(Map<String, String> headers, BaseAgentModelSettings modelSettings, AgentInvocationContext context) protected voidFlowableAgentModelSettingsAdvisor.addConfiguredHeaders(Map<String, String> headers, Map<String, String> configuredHeaders, AgentInvocationContext context) protected voidFlowableAgentModelSettingsAdvisor.addCustomHeaders(Map<String, String> headers, BaseAgentModelSettings modelSettings, AgentInvocationContext context) protected voidSpringChatClientAiModelInvoker.addPreviousChatExchanges(AgentInvocationContext agentInvocationContext, org.springframework.ai.chat.client.ChatClient.ChatClientRequestSpec prompt) protected org.springframework.ai.chat.prompt.ChatOptionsFlowableAgentModelSettingsAdvisor.applyAnthropicModelSettings(org.springframework.ai.chat.prompt.ChatOptions existingOptions, AnthropicAgentModelSettings modelSettings, AgentInvocationContext context) protected org.springframework.ai.chat.prompt.ChatOptionsFlowableAgentModelSettingsAdvisor.applyAzureOpenAiModelSettings(org.springframework.ai.chat.prompt.ChatOptions existingOptions, AzureOpenAiAgentModelSettings modelSettings, AgentInvocationContext context) protected org.springframework.ai.chat.prompt.ChatOptionsFlowableAgentModelSettingsAdvisor.applyModelSettings(org.springframework.ai.chat.prompt.ChatOptions promptOptions, AgentDefinitionModel.AgentModelSettings modelSettings, AgentInvocationContext agentInvocationContext) protected org.springframework.ai.chat.prompt.ChatOptionsFlowableAgentModelSettingsAdvisor.applyOpenAiModelSettings(org.springframework.ai.chat.prompt.ChatOptions existingOptions, OpenAiAgentModelSettings modelSettings, AgentInvocationContext context) protected voidFlowableAgentModelSettingsAdvisor.applyStructuredNativeOutput(org.springframework.ai.chat.client.ChatClientRequest.Builder clientRequestBuilder, AgentInvocationContext agentInvocationContext) protected List<org.springframework.ai.tool.ToolCallback> SpringChatClientAiModelInvoker.collectTools(AgentInvocationContext agentInvocationContext, AgentEngineConfiguration agentEngineConfiguration) protected intSpringChatClientAiModelInvoker.determineMaxNumberOfPreviousExchanges(AgentInvocationContext agentInvocationContext) protected org.springframework.ai.chat.client.ResponseEntity<org.springframework.ai.chat.model.ChatResponse, AgentInvocationResult> SpringChatClientAiModelInvoker.executeCallAndHandleOutput(AgentInvocationContext agentInvocationContext, org.springframework.ai.chat.client.ChatClient.ChatClientRequestSpec prompt) protected org.springframework.ai.converter.StructuredOutputConverter<tools.jackson.databind.JsonNode> SpringChatClientAiModelInvoker.getOutputConverter(AgentInvocationContext agentInvocationContext) protected List<AgentInvocationExchangePart> SpringChatClientAiModelInvoker.getPageOfExchangeParts(AgentInvocationContext agentInvocationContext) protected voidSpringChatClientAiModelInvoker.handleUserAndSystemPrompts(AgentInvocationContext agentInvocationContext, org.springframework.ai.chat.client.ChatClient.ChatClientRequestSpec prompt) SpringChatClientAiModelInvoker.invoke(AgentInvocationContext agentInvocationContext) protected abstract org.springframework.ai.chat.client.ChatClientRequestBaseAgentClientAdvisor.prepareChatClientRequest(org.springframework.ai.chat.client.ChatClientRequest chatClientRequest, AgentInvocationContext agentInvocationContext) protected org.springframework.ai.chat.client.ChatClientRequestFlowableAgentModelSettingsAdvisor.prepareChatClientRequest(org.springframework.ai.chat.client.ChatClientRequest chatClientRequest, AgentInvocationContext agentInvocationContext) protected AgentDefinitionModel.AgentModelSettingsFlowableAgentModelSettingsAdvisor.resolveConnectionSettings(AgentConnectionAgentModelSettings connectionSettings, AgentDefinitionModel model, AgentInvocationContext agentInvocationContext) protected List<org.springframework.ai.tool.ToolCallback> SpringChatClientAiModelInvoker.resolveModelAndOperationToolCallbacks(AgentInvocationContext agentInvocationContext) -
Uses of AgentInvocationContext in com.flowable.agent.engine.impl.model.external
Methods in com.flowable.agent.engine.impl.model.external with parameters of type AgentInvocationContextModifier and TypeMethodDescriptionprotected org.springframework.ai.converter.StructuredOutputConverter<tools.jackson.databind.JsonNode> ExternalAgentModelInvoker.getOutputConverter(AgentInvocationContext agentInvocationContext) ExternalAgentModelInvoker.invoke(AgentInvocationContext agentInvocationContext) -
Uses of AgentInvocationContext in com.flowable.agent.engine.impl.model.observation
Fields in com.flowable.agent.engine.impl.model.observation declared as AgentInvocationContextModifier and TypeFieldDescriptionprotected final AgentInvocationContextFlowableSpringChatClientObservationContext.agentInvocationContextMethods in com.flowable.agent.engine.impl.model.observation that return AgentInvocationContextModifier and TypeMethodDescriptionFlowableSpringChatClientObservationContext.getAgentInvocationContext()Constructors in com.flowable.agent.engine.impl.model.observation with parameters of type AgentInvocationContextModifierConstructorDescriptionFlowableSpringChatClientObservationContext(AgentInvocationContext agentInvocationContext) -
Uses of AgentInvocationContext in com.flowable.agent.engine.impl.runtime.invocation
Classes in com.flowable.agent.engine.impl.runtime.invocation that implement AgentInvocationContextModifier and TypeClassDescriptionclassclassclassAn implementation of theAgentInvocationContextinterface that is used to invoke agent operations when there is no database transaction active (as to not block the database transaction).Methods in com.flowable.agent.engine.impl.runtime.invocation that return AgentInvocationContextModifier and TypeMethodDescriptionAgentInvocationContextBuilder.create()AgentInvocationContextBuilderImpl.create()protected AgentInvocationContextAgentInvocationContextBuilderImpl.create(boolean nonTransactional) AgentInvocationContextBuilder.createNonTransactional()AgentInvocationContextBuilderImpl.createNonTransactional()Methods in com.flowable.agent.engine.impl.runtime.invocation with parameters of type AgentInvocationContextModifier and TypeMethodDescriptionstatic tools.jackson.databind.node.ObjectNodeNontransactionalAgentInvocationContext.transformToNonTransactionalJson(AgentInvocationContext invocationContext, AgentEngineConfiguration agentEngineConfiguration) -
Uses of AgentInvocationContext in com.flowable.agent.engine.impl.sandbox.ratelimiter
Methods in com.flowable.agent.engine.impl.sandbox.ratelimiter with parameters of type AgentInvocationContextModifier and TypeMethodDescriptionprotected org.springframework.ai.chat.client.ChatClientResponseAgentRateLimiterAdvisor.adviseCall(org.springframework.ai.chat.client.ChatClientRequest chatClientRequest, org.springframework.ai.chat.client.advisor.api.CallAdvisorChain callAdvisorChain, AgentInvocationContext agentInvocationContext) -
Uses of AgentInvocationContext in com.flowable.agent.engine.impl.util
Methods in com.flowable.agent.engine.impl.util with parameters of type AgentInvocationContextModifier and TypeMethodDescriptionprotected static voidAgentUtil.applyDocumentAgentResults(org.flowable.common.engine.impl.interceptor.CommandContext commandContext, AgentInvocationContext agentInvocationContext, AgentInvocationResult agentInvocationResult) static AgentInvocationEntityAgentUtil.auditAiInvocation(AgentEngineConfiguration engineConfiguration, AgentInvocationContext agentInvocationContext, AgentInvocationResultResponse.Invocation aiInvocation, boolean storeAsHumanContent) protected static voidAgentUtil.dispatchOperationEvaluators(AgentEngineConfiguration engineConfiguration, AgentInvocationContext context, String agentType) Sync auto-dispatch for a just-completed, persisted turn: skips when evaluators are disabled or the turn was guardrail-blocked (its output is synthetic, not the agent's answer), then defers to the shared scheduler.static voidAgentUtil.handleAgentInvocationResponse(org.flowable.common.engine.impl.interceptor.CommandContext commandContext, AgentInvocationContext agentInvocationContext, AgentInstanceEntity agentInstance, AgentInvocationResultResponse resultResponse, boolean storeInteractionsAsHumanContent) static voidAgentUtil.persistGuardrailViolationExchanges(AgentEngineConfiguration engineConfiguration, AgentInvocationContext agentInvocationContext, FlowableGuardrailViolationException ex) Persists the guardrail exchanges that were recorded on aFlowableGuardrailViolationExceptionbefore it is (re)thrown.protected static AgentInvocationEntityAgentUtil.processExchangeMessages(AgentEngineConfiguration agentEngineConfiguration, AgentInvocationContext agentInvocationContext, boolean storeInteractionsAsHumanContent, AgentInvocationResultResponse resultResponse)