接口的使用
io.agentscope.core.hook.Hook
使用Hook的程序包
程序包
说明
-
io.agentscope.core中Hook的使用
参数类型为Hook的io.agentscope.core中的方法修饰符和类型方法说明Adds a hook for monitoring and intercepting agent execution events.类型变量类型为Hook的io.agentscope.core中的方法参数修饰符和类型方法说明Adds multiple hooks for monitoring and intercepting agent execution events. -
io.agentscope.core.agent中Hook的使用
返回变量类型为Hook的类型的io.agentscope.core.agent中的方法修饰符和类型方法说明AgentBase.getHooks()Get the list of hooks for this agent.AgentBase.getSortedHooks()Get hooks sorted by priority (lower value = higher priority).参数类型为Hook的io.agentscope.core.agent中的方法修饰符和类型方法说明protected voidAdd a hook to this agent dynamically.static voidAgentBase.addSystemHook(Hook hook) protected voidAgentBase.removeHook(Hook hook) Remove a hook from this agent dynamically.static voidAgentBase.removeSystemHook(Hook hook) 类型变量类型为Hook的io.agentscope.core.agent中的构造器参数限定符构造器说明Constructor for AgentBase with hooks.protectedStructuredOutputCapableAgent(String name, String description, boolean checkRunning, List<Hook> hooks, Toolkit toolkit) Constructor with default reminder mode (TOOL_CHOICE).protectedStructuredOutputCapableAgent(String name, String description, boolean checkRunning, List<Hook> hooks, Toolkit toolkit, StructuredOutputReminder structuredOutputReminder) Constructor with custom reminder mode. -
io.agentscope.core.agent.user中Hook的使用
类型变量类型为Hook的io.agentscope.core.agent.user中的方法参数修饰符和类型方法说明Set the hooks for monitoring agent execution. -
io.agentscope.core.hook中Hook的使用
修饰符和类型类说明classHook that automatically recovers from orphaned pending tool calls by generating errorToolResultBlocks before the agent processes new input.classHook for real-time Text-to-Speech synthesis during agent execution. -
io.agentscope.core.hook.recorder中Hook的使用
修饰符和类型类说明final classA built-in, out-of-the-box JSONL trace exporter based on the Hook event system. -
io.agentscope.core.memory中Hook的使用
修饰符和类型类说明classStatic Long-Term Memory Hook for automatic memory management. -
io.agentscope.core.rag中Hook的使用
修饰符和类型类说明classGeneric RAG Hook for automatic knowledge retrieval before reasoning. -
io.agentscope.core.shutdown中Hook的使用
修饰符和类型类说明final classSystem hook that integrates graceful shutdown into the agent lifecycle. -
io.agentscope.core.skill中Hook的使用