类 SkillHook

java.lang.Object
io.agentscope.core.skill.SkillHook
所有已实现的接口:
Hook

@Deprecated(since="2.0.0") public class SkillHook extends Object implements Hook
已过时。
since 2.0.0. The skill package and the hook system are removed; manage markdown skill catalogs in application code or via MiddlewareBase.
Injects the skill catalog prompt into the unified system message on PreCallEvent via HookEvent.appendSystemContent(String).

Uses priority SKILL_HOOK_PRIORITY so that, in typical HarnessAgent wiring, this hook runs after SubagentsHook (80) and before WorkspaceContextHook (900), yielding append order: base prompt → subagents → skills → workspace context.

The skill prompt is appended to the transient system message and is never stored in the agent's persistent Memory.

  • 字段概要

    字段
    修饰符和类型
    字段
    说明
    static final int
    已过时。
    Runs after subagent prompt injection and before workspace context injection in the default harness hook chain.
  • 构造器概要

    构造器
    构造器
    说明
    SkillHook(SkillBox skillBox)
    已过时。
     
  • 方法概要

    修饰符和类型
    方法
    说明
    <T extends HookEvent>
    reactor.core.publisher.Mono<T>
    onEvent(T event)
    已过时。
    Handle a hook event.
    int
    已过时。
    The priority of this hook (lower value = higher priority).

    从类继承的方法 java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    从接口继承的方法 io.agentscope.core.hook.Hook

    tools
  • 字段详细资料

    • SKILL_HOOK_PRIORITY

      public static final int SKILL_HOOK_PRIORITY
      已过时。
      Runs after subagent prompt injection and before workspace context injection in the default harness hook chain.
      另请参阅:
  • 构造器详细资料

    • SkillHook

      public SkillHook(SkillBox skillBox)
      已过时。
  • 方法详细资料

    • onEvent

      public <T extends HookEvent> reactor.core.publisher.Mono<T> onEvent(T event)
      已过时。
      从接口复制的说明: Hook
      Handle a hook event.

      This method is called for all agent execution events. Use pattern matching to handle specific event types.

      Modifiable Events: For events with setters, you can modify the context and the changes will affect agent execution:

      Notification Events: Events without setters are read-only:

      指定者:
      onEvent 在接口中 Hook
      类型参数:
      T - The concrete event type
      参数:
      event - The hook event
      返回:
      Mono containing the potentially modified event
    • priority

      public int priority()
      已过时。
      从接口复制的说明: Hook
      The priority of this hook (lower value = higher priority).

      Hooks are executed in ascending priority order. Hooks with the same priority execute in their registration order.

      Common Priority Ranges:

      • 0-50: Critical system hooks (auth, security)
      • 51-100: High priority hooks (validation, preprocessing)
      • 101-500: Normal priority hooks (business logic)
      • 501-1000: Low priority hooks (logging, metrics)
      指定者:
      priority 在接口中 Hook
      返回:
      The priority value (default: 100)