Skip to main content

Glossary

The manual uses a set of terms that carry precise meaning in Golato. This page defines them in one place, grouped by topic, with links to the chapters that explain them in full.

Conversation and messages

TermMeaningMore
Messageone message.Message unit of the model-visible conversationBuilding messages and content
UserMessagea message.UserMessage containing user input, text, or imagesBuilding messages and content
AssistantMessageone message.AssistantMessage reply, with text, thinking, tool calls, and provider factsBuilding messages and content
ToolResultMessagethe model-visible message.ToolResultMessage paired with one tool callBuilding messages and content
content blockone part of a message, such as message.TextContent, message.ThinkingContent, message.ImageContent, or message.ToolCallBuilding messages and content
ToolCalla model-requested message.ToolCall, holding an ID, a name, and raw JSON argumentsDefining tools
StopReasonthe message.StopReason explaining why a reply ended, such as stop, length, tool_use, error, or abortedBuilding messages and content
Usageprovider-reported token counts in message.UsageBuilding messages and content

Generation

TermMeaningMore
Generatorthe generation.Generator entry point for one model request and one replyUsing a Generator
Streamthe live generation.Stream returned by a Generator, carrying both events and the final replyUsing a Generator
terminal eventthe final generation.DoneEvent or generation.ErrorEvent that decides the resultObserving generation events
authoritativethe answer returned by generation.Stream.Result or stored in agent.Result.Final, not a display-only deltaObserving generation events
result modeconsumption by calling generation.Stream.Result first, waiting for the terminal factObserving generation events
event modeconsumption by calling generation.Stream.Next first, reading events until io.EOFObserving generation events
Partialthe complete cumulative assistant message carried by each content eventObserving generation events
deltaa display-only fragment, not a reconstruction of the answerObserving generation events
Snapshotan immediate copy returned by generation.Stream.Snapshot that never claims the streamObserving generation events

Agent

TermMeaningMore
Agentan immutable reusable agent.Agent definition of the tool loopRunning an Agent
Runone agent.Run execution created from an agent.Agent, started with Start and settled with WaitRunning an Agent
turnone assistant reply together with its tool executionsRunning an Agent
tool loopthe cycle of validating calls, executing them, and requesting the next turnRunning an Agent
tool batchthe tool.Call values from one assistant reply, executed in parallel or in sequenceUsing tools and the built-ins
Terminatethe tool.Result.Terminate flag on a final tool result. The loop stops after the batch only when every call requests itUsing tools and the built-ins
eventone agent.Event entry of the run's live stream, from agent.RunStartEvent to agent.RunEndEventObserving Agent events

Context and compaction

TermMeaningMore
Contextthe agent.Context continuation state passed between runs, with SystemPrompt, Summary, and MessagesStoring and continuing conversation state
compactionreplacing an older message prefix with one summaryCompacting conversation context
threshold maintenanceproactive compaction when the local estimate crosses the configured ratioCompacting conversation context
overflow recoverycompaction after the provider rejects a request for exceeding the context windowCompacting conversation context
Plan / Applythe Plan and Apply methods on compaction.Compactor, covering decision and execution for one compactionCompacting conversation context
Recordthe immutable facts in a compaction.Record for one successful rewriteCompacting conversation context

Providers and the adapter

TermMeaningMore
providerthe model service behind the HTTP callsConfiguring the OpenAI-compatible adapter
adapterthe package that translates provider formats into Golato's typesConfiguring the OpenAI-compatible adapter
sentinela package error value tested with errors.IsConfiguring the OpenAI-compatible adapter
typed erroran error struct read with errors.As for its fieldsConfiguring the OpenAI-compatible adapter
embeddinga vector for one text inputEmbedding a batch of text

Host and policy

TermMeaningMore
host applicationthe program using Golato, which owns storage, access, and product policyManual index