Yolk SDK
Reference

Protocol glossary

Core transcript and event terms used across Yolk packages.

TermMeaning
UserMessageuser-authored transcript message
AssistantAgentMessageassistant/model-authored message with text, reasoning, and tool calls
ToolResultMessagehost-authored result for a tool call
AgentMessageunion of user, assistant, and tool-result messages
AgentEventstream event emitted by loop/runtime/client surfaces
UserMessageEventreplay-safe event for host-promoted user input in durable streams
ToolDefmodel-visible tool name, description, parameters, and approval (and staging) metadata
ToolCallmodel request to execute a host tool; id and name are non-empty trimmed strings
ToolResulthost result returned to the model
AgentAwaitingInputlogical terminal pause state for approvals/questions
AgentStatusone run status: Idle, Working, Blocked, Done, or Failed (OSC 7501 terms)
FilePartfile bytes a tool yields for other tools to move; the model only sees its label
fileIdfile_… handle of a captured file (ToolResult.files lists them)
ToolFilea typed tool's output file field: FileBytes or FileStored in, FileRef or FileUnavailable out
FileBytesthe bytes, name and MIME type a typed tool returns in a ToolFile field (view: true also shows the model)
FileStoreda file the host already stored, returned in a ToolFile field without its bytes (checked with head)
FileRefa stored file as scripts see it: { fileId, name, mimeType, size }
FileUnavailablea file field whose bytes were not stored: { unavailable: reason, name, mimeType }
ToolChangePreviewtool-agnostic before → after diff of one call, shown on approvals and plan reviews

See Agent protocol for examples.