AS AgentScopeAPI 手册 / API Reference

Hook

@FunctionalInterface public interface Hook
源码Source io/agentscope/harness/agent/team/TeamWakeups.java:30–33

定义钩子契约的接口。位于 io.agentscope.harness.agent.team 包。核心成员包括 wake。

Wakes a teammate, optionally injecting notice into its next turn.

方法摘要Method Summary

方法Method说明Description
public boolean wake(String teamName, String memberName, String notice)
执行 `wake` 方法。
Performs the wake operation.

方法详情Method Detail

wake

public boolean wake(String teamName, String memberName, String notice)

执行 wake 方法。

Performs the wake operation.

参数Parameters
名称Name类型Type说明Description
teamNameString团队名称(类型 `String`)。The team name.
memberNameString成员名称(类型 `String`)。The member name.
noticeStringnotice(类型 `String`)。The notice.
返回Returns boolean
返回布尔值,表示判断结果。Returns a boolean result.
源码Source io/agentscope/harness/agent/team/TeamWakeups.java:32
基于官方固定版本源码静态生成Generated from pinned official sources · Python 2.0.11 · Java 2.0.4
签名与文档为静态抽取;如有疑问请以源码为准。Signatures and docs are extracted statically; verify against the source when in doubt.