Follow Discord
Sweep 20 Nov 2026 · 19:55Z Build v2.1.330 547 read Stable v2.1.323 Latest v2.1.330 Next v2.1.330 Feeds RSS JSON llms.txt llms-full.txt Unofficial
HomeDocsSearch
Search the documentation

5 pages for asuser.

Titles and paths first, then pages whose text carries it. Each row opens that page as this site last read it.

Before Claude Developer Platform · in the page api/migration-2026-10-21 …d `_additionalProperties()` are now on the class for the role, which `asUser()`, `asAssistant()`, or `asSystem()` returns. </Tab> <Tab title="PHP"> The classes are in `Anthropic\Messages`, an… sessions Claude Developer Platform · in the page managed-agents/sessions …er.message" { continue } for _, contentBlock := range event.AsUserMessage().Content { if contentBlock.Type == "text" { fmt.Printf("Seeded event: %s\n", contentBlock.AsText().Text)… Plugin commands reference Claude Code CLI · in the page plugins/cli-reference …for each `notes` entry. Requires Claude Code v2.1.268 or later | | `hasUserConfig` | boolean | Present and `true` when the plugin loaded and its manifest declares [`userConfig` options](https://code.… Use the mods API Claude Code CLI · in the page plugins/mods/api …nder. To send it as the user's own words, without that sentence, add `asUser: true`. The call waits until the session is idle and then starts a new turn. It resolves when that turn starts, so don't `a… Mods reference Claude Code CLI · in the page plugins/mods/reference …` after a sentence that names your mod as the sender. `submit({ text, asUser: true })` sends the text as the user's own words, without that sentence. | | `$.turn` | `abort` | | [`$.session`](https://c…
Feedback