feat(sdk): add host integration extension points

This commit is contained in:
chengyongru authored and Xubin Ren committed 2026-07-28 15:30:28 +08:00
1 parent 12f828ea3d
commit c050955ae3
13 files changed
+359 -7

No files matched your search

+2
View File
@@ -29,6 +29,7 @@ class AgentTurnHookSpec:
chat_id: str = "direct"
message_id: str | None = None
metadata: dict[str, Any] | None = None
attributes: dict[str, Any] | None = None
session_key: str | None = None
workspace: Path | None = None
tool_hint_max_length: int = 40
@@ -62,6 +63,7 @@ def build_agent_turn_hook(spec: AgentTurnHookSpec) -> AgentHook:
message_id=spec.message_id,
session_key=spec.session_key,
metadata=dict(spec.metadata or {}),
attributes=dict(spec.attributes or {}),
ephemeral=spec.ephemeral,
)
hook_chain: list[AgentHook] = [progress_hook]