works.iterative.claude.core.model
Members list
Type members
Classlikes
An assistant reply on the live stream. id is the vendor uuid when the wire message carries one (synthetic messages may not); parentToolUseId joins subagent output to its sidechain transcript; model is the model that produced the reply.
An assistant reply on the live stream. id is the vendor uuid when the wire message carries one (synthetic messages may not); parentToolUseId joins subagent output to its sidechain transcript; model is the model that produced the reply.
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait Messageclass Objecttrait Matchableclass AnyShow all
How a UserInput reached the session. Open vocabulary: Custom carries any channel name we have not given a dedicated case, so the enum is never closed against a new delivery path.
How a UserInput reached the session. Open vocabulary: Custom carries any channel name we have not given a dedicated case, so the enum is never closed against a new delivery path.
Attributes
- Supertypes
-
trait Enumtrait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
class RedactedThinkingBlockclass TextBlockclass ThinkingBlockclass ToolResultBlockclass ToolUseBlock
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Supertypes
-
trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
ControlRequest.type
Attributes
- Supertypes
-
trait Enumtrait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Reply to a ControlRequest, arriving interleaved on stdout and correlated to its request by the vendor-supplied requestId. payload is the inner response object, e.g. {"still_queued": []} for an interrupt.
Reply to a ControlRequest, arriving interleaved on stdout and correlated to its request by the vendor-supplied requestId. payload is the inner response object, e.g. {"still_queued": []} for an interrupt.
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait Messageclass Objecttrait Matchableclass AnyShow all
The outcome of an Session.interrupt, read from the vendor's control_response.
The outcome of an Session.interrupt, read from the vendor's control_response.
stillQueued is the vendor's still_queued list: inputs that were queued and survived the interrupt rather than being discarded with the stopped turn.
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
trait Singletontrait Producttrait Mirrortrait Serializabletrait Producttrait Equalstrait Messageclass Objecttrait Matchableclass AnyShow all
- Self type
-
KeepAliveMessage.type
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
class AssistantMessageclass ControlResponseobject KeepAliveMessageclass ResultMessageclass StreamEventMessageclass SystemMessageclass UnknownMessageclass UserMessageShow all
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
MessageId.type
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
trait Enumtrait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Configuration options for Claude Code queries.
Configuration options for Claude Code queries.
Maps to Claude Code CLI arguments for subprocess execution.
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Supertypes
-
trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
QueryOptions.type
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait ContentBlockclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
RequestId.type
The end-of-turn envelope on the live stream. origin is None when the result ends an interactive turn — the wire key is absent there — and present when a background task finished; id is the vendor uuid; usage carries real token counts.
The end-of-turn envelope on the live stream. origin is None when the result ends an interactive turn — the wire key is absent there — and present when a background task finished; id is the vendor uuid; usage carries real token counts.
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait Messageclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
trait Enumtrait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Supertypes
-
trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
SDKUserMessage.type
How a session ended.
How a session ended.
exitCode is the process exit code when one was observed. error is the CLIError a pending waiter should fail with — present when the process died abnormally, None on a clean shutdown.
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
SessionId.type
Identifying information about a live session.
Identifying information about a live session.
sessionId is the id the vendor assigned — always a real value, never a sentinel: Session.info blocks until the CLI names the session (via its init message or the first result) rather than returning a placeholder.
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Configuration options for a Claude Code streaming session.
Configuration options for a Claude Code streaming session.
Contains all fields from QueryOptions except prompt, which is sent per-turn during the session. Fields that are process-level configuration (timeout, inheritEnvironment, environmentVariables, executable, executableArgs, pathToClaudeCodeExecutable) are consumed by the session runner and not translated to CLI flags.
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Supertypes
-
trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
SessionOptions.type
The session's activity state, folded from the message stream.
The session's activity state, folded from the message stream.
Read it to observe completion: resultsSeen is a monotone counter of real turn completions, so a predicate like resultsSeen > n is stable once true and readable at any time — there is no window to lose a race in. A background task finishing bumps notificationsSeen instead, so it can never wake a waiter for a real result.
Value parameters
- ended
-
set once the session's process has ended
- lastNotification
-
the most recent background-task result, if any
- lastResult
-
the most recent real result, if any
- notificationsSeen
-
monotone count of background-task results (wire
originkey present) - resultsSeen
-
monotone count of real results (wire
originkey absent)
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Supertypes
-
trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
SessionState.type
The lines a Session writes to the CLI process's stdin.
The lines a Session writes to the CLI process's stdin.
User input is encoded with UserInput.encode into a content-block array, so the verbatim user text is its own block and never concatenates with context — injection is impossible by construction. Control requests use the vendor control protocol correlated by request_id.
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
SessionStdin.type
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait Messageclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait Messageclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait ContentBlockclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait ContentBlockclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Supertypes
-
trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
TokenUsage.type
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait ContentBlockclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait ContentBlockclass Objecttrait Matchableclass AnyShow all
A wire message the parser has no specific type for — the raw JSON survives verbatim. Covers unknown type values and known types whose required fields are missing or malformed. messageType is the wire type value, or empty when the message carries no string type key.
A wire message the parser has no specific type for — the raw JSON survives verbatim. Covers unknown type values and known types whose required fields are missing or malformed. messageType is the wire type value, or empty when the message carries no string type key.
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait Messageclass Objecttrait Matchableclass AnyShow all
A user message plus the context and delivery channel that accompany it.
A user message plus the context and delivery channel that accompany it.
text is the human's verbatim message. context is per-message ambient information (what the user is viewing, named instruction blocks, …). channel records how the input reached the session.
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait Messageclass Objecttrait Matchableclass AnyShow all