Miscellaneous¶
29 types. Import any of them from opencode.types.
CommandInfo
¶
CommandListResponse
¶
ExperimentalPersistentPtyCreateSize
¶
ExperimentalPersistentPtyHandoffResponse
¶
ExperimentalPersistentPtyUpdateSize
¶
FilesystemChangedEventData
¶
GenerateTextResponse
¶
RpcOutput
¶
ServerInfo
¶
ServerInfoCapabilities
¶
TokenUsageInfo
¶
ToolContent
module-attribute
¶
ToolContent: TypeAlias = Annotated[
Annotated[ToolTextContent, Tag("text")]
| Annotated[ToolFileContent, Tag("file")]
| Annotated[UnknownToolContent, Tag("__unknown__")],
Discriminator(
discriminator("type", "type", ["text", "file"])
),
]