Uses of Interface
dev.langchain4j.agentic.scope.AgenticScope
Packages that use AgenticScope
Package
Description
-
Uses of AgenticScope in dev.langchain4j.agentic
Methods in dev.langchain4j.agentic with parameters of type AgenticScopeModifier and TypeMethodDescriptionvoidAgenticServices.AgenticScopeAction.accept(AgenticScope agenticScope) AgenticServices.AgenticScopeFunction.accept(AgenticScope agenticScope) Method parameters in dev.langchain4j.agentic with type arguments of type AgenticScopeModifier and TypeMethodDescriptionAgenticServices.agentAction(AgenticServices.AgenticScopeAction.NonThrowingConsumer<AgenticScope> consumer) Wraps a consumer of the AgenticScope into an agent action that can be executed within the context of an agent. -
Uses of AgenticScope in dev.langchain4j.agentic.a2a
Methods in dev.langchain4j.agentic.a2a with parameters of type AgenticScopeModifier and TypeMethodDescriptionA2AClientAgentInvoker.toInvocationArguments(AgenticScope agenticScope) -
Uses of AgenticScope in dev.langchain4j.agentic.agent
Methods in dev.langchain4j.agentic.agent that return AgenticScopeModifier and TypeMethodDescriptionErrorContext.agenticScope()Returns the value of theagenticScoperecord component.Method parameters in dev.langchain4j.agentic.agent with type arguments of type AgenticScopeModifier and TypeMethodDescriptionAgentBuilder.chatModel(Function<AgenticScope, ChatModel> chatModelProvider) Sets a provider that resolves theChatModelfrom theAgenticScopeat execution time.AgentBuilder.context(Function<AgenticScope, String> contextProvider) Sets a function that provides additional context from theAgenticScopeto this agent's prompt.AgentBuilder.streamingChatModel(Function<AgenticScope, StreamingChatModel> streamingChatModelProvider) Sets a provider that resolves theStreamingChatModelfrom theAgenticScopeat execution time.Constructors in dev.langchain4j.agentic.agent with parameters of type AgenticScopeModifierConstructorDescriptionErrorContext(String agentName, AgenticScope agenticScope, AgentInvocationException exception) Creates an instance of aErrorContextrecord class. -
Uses of AgenticScope in dev.langchain4j.agentic.declarative
Methods in dev.langchain4j.agentic.declarative that return types with arguments of type AgenticScopeModifier and TypeMethodDescriptionstatic <T> Function<AgenticScope, T> DeclarativeUtil.agenticScopeFunction(Method functionMethod, Class<T> targetClass) static Predicate<AgenticScope> DeclarativeUtil.agenticScopePredicate(Method predicateMethod) -
Uses of AgenticScope in dev.langchain4j.agentic.internal
Fields in dev.langchain4j.agentic.internal with type parameters of type AgenticScopeModifier and TypeFieldDescriptionprotected Consumer<AgenticScope> AbstractServiceBuilder.beforeCallprotected Function<AgenticScope, Object> AbstractServiceBuilder.outputMethods in dev.langchain4j.agentic.internal with parameters of type AgenticScopeModifier and TypeMethodDescriptionstatic AgentInvocationArgumentsAgentUtil.agentInvocationArguments(AgenticScope agenticScope, Method method) static AgentInvocationArgumentsAgentUtil.agentInvocationArguments(AgenticScope agenticScope, List<AgentArgument> agentArguments) static AgentInvocationArgumentsAgentUtil.agentInvocationArguments(AgenticScope agenticScope, List<AgentArgument> agentArguments, Map<String, Object> additionalArgs) AbstractAgentInvoker.toInvocationArguments(AgenticScope agenticScope) AgentInvoker.toInvocationArguments(AgenticScope agenticScope) MapperAgentInvoker.toInvocationArguments(AgenticScope agenticScope) MethodAgentInvoker.toInvocationArguments(AgenticScope agenticScope) UntypedAgentInvoker.toInvocationArguments(AgenticScope agenticScope) Method parameters in dev.langchain4j.agentic.internal with type arguments of type AgenticScopeModifier and TypeMethodDescriptionAbstractServiceBuilder.beforeCall(Consumer<AgenticScope> beforeCall) AbstractServiceBuilder.output(Function<AgenticScope, Object> output) Constructors in dev.langchain4j.agentic.internal with parameters of type AgenticScopeModifierConstructorDescriptionAgenticScopeContextGenerator(AgenticScope agenticScope, Function<AgenticScope, String> contextProvider) Summarizer(AgenticScope agenticScope, ChatModel chatModel, String... agentNames) Constructor parameters in dev.langchain4j.agentic.internal with type arguments of type AgenticScopeModifierConstructorDescriptionAgenticScopeContextGenerator(AgenticScope agenticScope, Function<AgenticScope, String> contextProvider) -
Uses of AgenticScope in dev.langchain4j.agentic.mcp
Methods in dev.langchain4j.agentic.mcp with parameters of type AgenticScopeModifier and TypeMethodDescriptionMcpClientAgentInvoker.toInvocationArguments(AgenticScope agenticScope) -
Uses of AgenticScope in dev.langchain4j.agentic.observability
Methods in dev.langchain4j.agentic.observability that return AgenticScopeModifier and TypeMethodDescriptionAfterAgentToolExecution.agenticScope()AgentInvocation.agenticScope()AgentInvocationError.agenticScope()Returns the value of theagenticScoperecord component.AgentRequest.agenticScope()Returns the value of theagenticScoperecord component.AgentResponse.agenticScope()Returns the value of theagenticScoperecord component.BeforeAgentToolExecution.agenticScope()MonitoredExecution.agenticScope()Methods in dev.langchain4j.agentic.observability with parameters of type AgenticScopeModifier and TypeMethodDescriptiondefault voidAgentListener.afterAgenticScopeCreated(AgenticScope agenticScope) voidComposedAgentListener.afterAgenticScopeCreated(AgenticScope agenticScope) static voidListenerNotifierUtil.afterAgenticScopeCreated(AgentListener listener, AgenticScope agenticScope) static voidListenerNotifierUtil.afterAgentInvocation(AgentListener listener, AgenticScope agenticScope, AgentInstance agent, Map<String, Object> inputs, Object output) static voidListenerNotifierUtil.afterAgentInvocation(AgentListener listener, AgenticScope agenticScope, AgentInstance agent, Map<String, Object> inputs, Object output, ChatRequest chatRequest, ChatResponse chatResponse) static voidListenerNotifierUtil.agentError(AgentListener listener, AgenticScope agenticScope, AgentInstance agent, Map<String, Object> inputs, Throwable error) AgentMonitor.allExecutionsFor(AgenticScope agenticScope) Returns all executions (successful, failed, and ongoing) for a given memory ID.default voidAgentListener.beforeAgenticScopeDestroyed(AgenticScope agenticScope) voidComposedAgentListener.beforeAgenticScopeDestroyed(AgenticScope agenticScope) static voidListenerNotifierUtil.beforeAgenticScopeDestroyed(AgentListener listener, AgenticScope agenticScope) static voidListenerNotifierUtil.beforeAgentInvocation(AgentListener listener, AgenticScope agenticScope, AgentInstance agent, Map<String, Object> inputs) AgentMonitor.failedExecutionsFor(AgenticScope agenticScope) default voidAgentListener.onAgenticSystemSuspended(AgenticScope agenticScope) voidComposedAgentListener.onAgenticSystemSuspended(AgenticScope agenticScope) static voidListenerNotifierUtil.onAgenticSystemSuspended(AgentListener listener, AgenticScope agenticScope) AgentMonitor.ongoingExecutionFor(AgenticScope agenticScope) AgentMonitor.successfulExecutionsFor(AgenticScope agenticScope) Constructors in dev.langchain4j.agentic.observability with parameters of type AgenticScopeModifierConstructorDescriptionAgentInvocationError(AgenticScope agenticScope, AgentInstance agent, Map<String, Object> inputs, Throwable error) Creates an instance of aAgentInvocationErrorrecord class.AgentRequest(AgenticScope agenticScope, AgentInstance agent, Map<String, Object> inputs) Creates an instance of aAgentRequestrecord class.AgentResponse(AgenticScope agenticScope, AgentInstance agent, Map<String, Object> inputs, Object output, ChatRequest chatRequest, ChatResponse chatResponse) Creates an instance of aAgentResponserecord class. -
Uses of AgenticScope in dev.langchain4j.agentic.patterns.bdi
Methods in dev.langchain4j.agentic.patterns.bdi that return types with arguments of type AgenticScopeModifier and TypeMethodDescriptionDesire.achievable()Returns the value of theachievablerecord component.Desire.satisfied()Returns the value of thesatisfiedrecord component.Method parameters in dev.langchain4j.agentic.patterns.bdi with type arguments of type AgenticScopeModifier and TypeMethodDescriptionstatic DesireDesire.of(String name, int priority, Predicate<AgenticScope> achievable, Predicate<AgenticScope> satisfied, Class<?>... agentTypes) Constructor parameters in dev.langchain4j.agentic.patterns.bdi with type arguments of type AgenticScopeModifierConstructorDescriptionDesire(String name, int priority, Predicate<AgenticScope> achievable, Predicate<AgenticScope> satisfied, List<Class<?>> agentTypes) Creates an instance of aDesirerecord class. -
Uses of AgenticScope in dev.langchain4j.agentic.patterns.blackboard
Methods in dev.langchain4j.agentic.patterns.blackboard with parameters of type AgenticScopeModifier and TypeMethodDescriptionConflictResolutionStrategy.resolve(AgenticScope scope, List<AgentInstance> candidates) Method parameters in dev.langchain4j.agentic.patterns.blackboard with type arguments of type AgenticScopeModifier and TypeMethodDescriptionstatic ConflictResolutionStrategyConflictResolutionStrategy.agentOfType(Class<?> agentType, Predicate<AgenticScope> condition) Returns a strategy that selects the candidate matchingagentTypeonly whenconditionis satisfied, ornullotherwise.static ConflictResolutionStrategyConflictResolutionStrategy.agentWithName(String agentName, Predicate<AgenticScope> condition) Returns a strategy that selects the candidate matchingagentNameonly whenconditionis satisfied, ornullotherwise.Constructor parameters in dev.langchain4j.agentic.patterns.blackboard with type arguments of type AgenticScopeModifierConstructorDescriptionBlackboardPlanner(Predicate<AgenticScope> goalPredicate) BlackboardPlanner(Predicate<AgenticScope> goalPredicate, int maxInvocations) BlackboardPlanner(Predicate<AgenticScope> goalPredicate, int maxInvocations, ConflictResolutionStrategy conflictResolutionStrategy) BlackboardPlanner(Predicate<AgenticScope> goalPredicate, ConflictResolutionStrategy conflictResolutionStrategy) -
Uses of AgenticScope in dev.langchain4j.agentic.patterns.p2p
Constructor parameters in dev.langchain4j.agentic.patterns.p2p with type arguments of type AgenticScopeModifierConstructorDescriptionP2PPlanner(int maxAgentsInvocations, BiPredicate<AgenticScope, Integer> exitCondition) P2PPlanner(int maxAgentsInvocations, Predicate<AgenticScope> exitCondition) P2PPlanner(ChatModel chatModel, int maxAgentsInvocations, BiPredicate<AgenticScope, Integer> exitCondition) P2PPlanner(ChatModel chatModel, int maxAgentsInvocations, Predicate<AgenticScope> exitCondition) P2PPlanner(Predicate<AgenticScope> exitCondition) -
Uses of AgenticScope in dev.langchain4j.agentic.planner
Methods in dev.langchain4j.agentic.planner that return AgenticScopeModifier and TypeMethodDescriptionInitPlanningContext.agenticScope()Returns the value of theagenticScoperecord component.PlanningContext.agenticScope()Returns the value of theagenticScoperecord component.Methods in dev.langchain4j.agentic.planner with parameters of type AgenticScopeModifier and TypeMethodDescriptionChatMemoryAccessProvider.chatMemoryAccess(AgenticScope agenticScope) Method parameters in dev.langchain4j.agentic.planner with type arguments of type AgenticScopeModifier and TypeMethodDescriptionAgenticService.beforeCall(Consumer<AgenticScope> beforeCall) AgenticService.output(Function<AgenticScope, Object> output) Constructors in dev.langchain4j.agentic.planner with parameters of type AgenticScopeModifierConstructorDescriptionInitPlanningContext(AgenticScope agenticScope, AgentInstance plannerAgent, List<AgentInstance> subagents) Creates an instance of aInitPlanningContextrecord class.PlanningContext(AgenticScope agenticScope, AgentInvocation previousAgentInvocation) Creates an instance of aPlanningContextrecord class. -
Uses of AgenticScope in dev.langchain4j.agentic.scope
Classes in dev.langchain4j.agentic.scope that implement AgenticScopeMethods in dev.langchain4j.agentic.scope that return AgenticScopeModifier and TypeMethodDescriptionResultWithAgenticScope.agenticScope()AgenticScopeAccess.getAgenticScope(Object memoryId) Returns theAgenticScopewith the given id for this AI service or null if such memory doesn't exist.AgenticSystemSuspendedException.scope()Constructors in dev.langchain4j.agentic.scope with parameters of type AgenticScopeModifierConstructorDescriptionResultWithAgenticScope(AgenticScope agenticScope, T result) ResultWithAgenticScope(AgenticScope agenticScope, T result, boolean suspended) ResultWithAgenticScope(AgenticScope agenticScope, T result, boolean suspended, Supplier<ResultWithAgenticScope<T>> resumeCallback) -
Uses of AgenticScope in dev.langchain4j.agentic.supervisor
Methods in dev.langchain4j.agentic.supervisor with parameters of type AgenticScopeMethod parameters in dev.langchain4j.agentic.supervisor with type arguments of type AgenticScopeModifier and TypeMethodDescriptionSupervisorAgentService.beforeCall(Consumer<AgenticScope> beforeCall) SupervisorAgentService.output(Function<AgenticScope, Object> output) SupervisorAgentService.requestGenerator(Function<AgenticScope, String> requestGenerator) SupervisorAgentServiceImpl.requestGenerator(Function<AgenticScope, String> requestGenerator) Constructor parameters in dev.langchain4j.agentic.supervisor with type arguments of type AgenticScopeModifierConstructorDescriptionSupervisorPlanner(ChatModel chatModel, ChatMemoryProvider chatMemoryProvider, int maxAgentsInvocations, SupervisorContextStrategy contextStrategy, SupervisorResponseStrategy responseStrategy, Function<AgenticScope, String> requestGenerator, String outputKey, Function<AgenticScope, Object> output) -
Uses of AgenticScope in dev.langchain4j.agentic.workflow
Methods in dev.langchain4j.agentic.workflow that return types with arguments of type AgenticScopeModifier and TypeMethodDescriptionConditionalAgent.predicate()Returns the value of thepredicaterecord component.Function<AgenticScope, ?> HumanInTheLoop.responseProvider()Returns the value of theresponseProviderrecord component.Methods in dev.langchain4j.agentic.workflow with parameters of type AgenticScopeMethod parameters in dev.langchain4j.agentic.workflow with type arguments of type AgenticScopeModifier and TypeMethodDescriptionLoopAgentService.exitCondition(String exitConditionDescription, BiPredicate<AgenticScope, Integer> exitCondition) LoopAgentService.exitCondition(String exitConditionDescription, Predicate<AgenticScope> exitCondition) LoopAgentService.exitCondition(BiPredicate<AgenticScope, Integer> exitCondition) LoopAgentService.exitCondition(Predicate<AgenticScope> exitCondition) HumanInTheLoop.HumanInTheLoopBuilder.responseProvider(Function<AgenticScope, ?> responseProvider) ConditionalAgentService.subAgent(String conditionDescription, Predicate<AgenticScope> condition, AgentExecutor agentExecutor) ConditionalAgentService.subAgent(Predicate<AgenticScope> condition, AgentExecutor agentExecutor) ConditionalAgentService.subAgents(String conditionDescription, Predicate<AgenticScope> condition, Object... agents) ConditionalAgentService.subAgents(String conditionDescription, Predicate<AgenticScope> condition, List<AgentExecutor> agentExecutors) ConditionalAgentService.subAgents(Predicate<AgenticScope> condition, Object... agents) ConditionalAgentService.subAgents(Predicate<AgenticScope> condition, List<AgentExecutor> agentExecutors) Constructor parameters in dev.langchain4j.agentic.workflow with type arguments of type AgenticScopeModifierConstructorDescriptionConditionalAgent(String condition, Predicate<AgenticScope> predicate, List<AgentInstance> agentInstances) Creates an instance of aConditionalAgentrecord class.HumanInTheLoop(String outputKey, String description, boolean async, Function<AgenticScope, ?> responseProvider, AgentListener listener, List<AgentArgument> arguments) Creates an instance of aHumanInTheLooprecord class. -
Uses of AgenticScope in dev.langchain4j.agentic.workflow.impl
Fields in dev.langchain4j.agentic.workflow.impl with type parameters of type AgenticScopeModifier and TypeFieldDescriptionprotected BiPredicate<AgenticScope, Integer> LoopAgentServiceImpl.exitConditionMethod parameters in dev.langchain4j.agentic.workflow.impl with type arguments of type AgenticScopeModifier and TypeMethodDescriptionLoopAgentServiceImpl.exitCondition(String exitConditionDescription, BiPredicate<AgenticScope, Integer> exitCondition) LoopAgentServiceImpl.exitCondition(String exitConditionDescription, Predicate<AgenticScope> exitCondition) LoopAgentServiceImpl.exitCondition(BiPredicate<AgenticScope, Integer> exitCondition) LoopAgentServiceImpl.exitCondition(Predicate<AgenticScope> exitCondition) ConditionalAgentServiceImpl.subAgent(String conditionDescription, Predicate<AgenticScope> condition, AgentExecutor agentExecutor) ConditionalAgentServiceImpl.subAgent(Predicate<AgenticScope> condition, AgentExecutor agentExecutor) ConditionalAgentServiceImpl.subAgents(String conditionDescription, Predicate<AgenticScope> condition, Object... agents) ConditionalAgentServiceImpl.subAgents(String conditionDescription, Predicate<AgenticScope> condition, List<AgentExecutor> agentExecutors) ConditionalAgentServiceImpl.subAgents(Predicate<AgenticScope> condition, Object... agents) ConditionalAgentServiceImpl.subAgents(Predicate<AgenticScope> condition, List<AgentExecutor> agentExecutors) Constructor parameters in dev.langchain4j.agentic.workflow.impl with type arguments of type AgenticScopeModifierConstructorDescriptionLoopPlanner(int maxIterations, boolean testExitAtLoopEnd, BiPredicate<AgenticScope, Integer> exitCondition, String exitConditionDescription)