Expand description
Message and content part types for opencode_rs.
Structs§
- Agent
Source - Agent source information.
- Cache
Usage - Cache usage information.
- Command
Request - Request to execute a command in a session.
- File
Part Source Text - Text range within a file part source.
- Message
- A message with its parts (API response format).
- Message
Info - Message info (metadata).
- Message
Time - Message timestamps.
- Prompt
Request - Request to send a prompt to a session.
- Shell
Request - Request to execute a shell command in a session.
- Token
Usage - Token usage information.
- Tool
State Completed - Tool state when completed successfully.
- Tool
State Error - Tool state when errored.
- Tool
State Pending - Tool state when pending execution.
- Tool
State Running - Tool state when running.
- Tool
Time Range - Tool execution time range.
- Tool
Time Start - Tool execution time (start only).
Enums§
- File
Part Source - Source information for a file part (internally tagged by “type”).
- Part
- A content part within a message (12 variants).
- Prompt
Part - A content part in a prompt request.
- Tool
State - State of a tool execution (untagged enum with Unknown fallback).
Type Aliases§
- Message
With Parts - Alias for backward compatibility.