@cognipeer/agent-sdk 0.15.0 → 0.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/index.cjs +576 -139
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +140 -15
- package/dist/index.d.ts +140 -15
- package/dist/index.mjs +576 -140
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -38,7 +38,7 @@ Highlights:
|
|
|
38
38
|
- **Structured output** – provide a Zod schema and the agent injects a finalize tool to capture JSON deterministically.
|
|
39
39
|
- **Skills / progressive disclosure** – expose cheap capability headers first, then bind skill tools on demand with `open_skill` and `bind_skill_tools`.
|
|
40
40
|
- **Multi-agent and handoffs** – wrap agents as tools or transfer control mid-run with `asTool` / `asHandoff`.
|
|
41
|
-
- **Sub-agents / dynamic delegation** – let the orchestrator decompose problems with `delegate_to` (registry), `spawn_subagent` (ad-hoc), and `spawn_subagents_parallel` (fan-out); children are model-agnostic and inherit event
|
|
41
|
+
- **Sub-agents / dynamic delegation** – let the orchestrator decompose problems with `delegate_to` (registry), `spawn_subagent` (ad-hoc), and `spawn_subagents_parallel` (fan-out); children are model-agnostic and inherit event and cancellation wiring (child text streaming is opt-in via `subagentPolicy.streamChildren`). **Opt-in:** the spawn tools + `<available_subagents>` catalog appear only when you pass `subagents` and/or `subagentPolicy`.
|
|
42
42
|
- **Prompt overrides** – intercept otherwise-static prompts with `promptHooks` (`transformSystemPrompt`, `toolDescriptions`, `subagentCatalog`).
|
|
43
43
|
- **Human-in-the-loop** – `needsApproval` tools pause for review; `humanInTheLoop.askUser` enables a built-in `ask_user_question` tool that pauses with a structured multi-choice prompt and resumes from the user's answer.
|
|
44
44
|
- **Usage + events** – normalize provider usage, surface `tool_call`, `tool_approval`, `user_question`, `plan`, `summarization`, `reflection`, `metadata`, `handoff`, and `subagent` events.
|