类 SkillHook
- 所有已实现的接口:
Hook
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.
-
字段详细资料
-
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
已过时。
-
-
方法详细资料
-
onEvent
已过时。从接口复制的说明:HookHandle 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:
PreReasoningEvent- Modify messages before LLM reasoningPostReasoningEvent- Modify reasoning resultsPreActingEvent- Modify tool parameters before executionPostActingEvent- Modify tool resultsPreCallEvent- Modify messages before agent startsPostCallEvent- Modify final agent response
Notification Events: Events without setters are read-only:
ReasoningChunkEvent- Streaming reasoning chunksActingChunkEvent- Streaming tool execution chunksErrorEvent- Errors during execution
-
priority
public int priority()已过时。从接口复制的说明:HookThe 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)
-
MiddlewareBase.