Skip to content

Commit da7ffc9

Browse files
olaservoclaude
andcommitted
docs(everything): add trigger-agentic-sampling to docs
Update features.md and structure.md to document the new trigger-agentic-sampling tool. Also adds missing documentation for trigger-elicitation-request. πŸ¦‰ Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
1 parent d7d0945 commit da7ffc9

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

β€Žsrc/everything/docs/features.mdβ€Ž

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@
2222
- `trigger-long-running-operation` (tools/trigger-trigger-long-running-operation.ts): Simulates a multi-step operation over a given `duration` and number of `steps`; reports progress via `notifications/progress` when a `progressToken` is provided by the client.
2323
- `toggle-simulated-logging` (tools/toggle-simulated-logging.ts): Starts or stops simulated, random‑leveled logging for the invoking session. Respects the client’s selected minimum logging level.
2424
- `toggle-subscriber-updates` (tools/toggle-subscriber-updates.ts): Starts or stops simulated resource update notifications for URIs the invoking session has subscribed to.
25-
- `trigger-sampling-request` (tools/trigger-sampling-request.ts): Issues a `sampling/createMessage` request to the client/LLM using provided `prompt` and optional generation controls; returns the LLM’s response payload.
25+
- `trigger-sampling-request` (tools/trigger-sampling-request.ts): Issues a `sampling/createMessage` request to the client/LLM using provided `prompt` and optional generation controls; returns the LLM's response payload. Only registered if the client supports the `sampling` capability.
26+
- `trigger-agentic-sampling` (tools/trigger-agentic-sampling.ts): Demonstrates SEP-1577 sampling with tools. Sends a `prompt` to the LLM with tools available (`echo`, `add`), handles `tool_use` responses by executing tools locally, and loops until a final response or `maxIterations` is reached. Only registered if the client supports the `sampling.tools` capability.
27+
- `trigger-elicitation-request` (tools/trigger-elicitation-request.ts): Demonstrates user input elicitation by requesting a form with various field types (string, boolean, number, enum). Only registered if the client supports the `elicitation` capability.
2628

2729
## Prompts
2830

β€Žsrc/everything/docs/structure.mdβ€Ž

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ src/everything
5050
β”‚ β”œβ”€β”€ gzip-file-as-resource.ts
5151
β”‚ β”œβ”€β”€ toggle-simulated-logging.ts
5252
β”‚ β”œβ”€β”€ toggle-subscriber-updates.ts
53+
β”‚ β”œβ”€β”€ trigger-agentic-sampling.ts
5354
β”‚ β”œβ”€β”€ trigger-elicitation-request.ts
5455
β”‚ β”œβ”€β”€ trigger-long-running-operation.ts
5556
β”‚ └── trigger-sampling-request.ts
@@ -151,6 +152,8 @@ src/everything
151152
- Registers a `trigger-elicitation-request` tool that sends an `elicitation/create` request to the client/LLM and returns the elicitation result.
152153
- `trigger-sampling-request.ts`
153154
- Registers a `trigger-sampling-request` tool that sends a `sampling/createMessage` request to the client/LLM and returns the sampling result.
155+
- `trigger-agentic-sampling.ts`
156+
- Registers a `trigger-agentic-sampling` tool that demonstrates SEP-1577 sampling with tools. Sends a prompt to the LLM with tools available (`echo`, `add`), handles `tool_use` responses by executing tools locally, and loops until a final response or max iterations is reached. Only registered if the client supports the `sampling.tools` capability.
154157
- `get-structured-content.ts`
155158
- Registers a `get-structured-content` tool that demonstrates structuredContent block responses.
156159
- `get-sum.ts`

0 commit comments

Comments
Β (0)