Skip to content

Commit 077a390

Browse files
Add SectionPreamble to go/README SystemMessage keys list
The SystemMessage parameter-reference table's inline section-constant list still started at SectionIdentity. Add SectionPreamble so it matches the dedicated 'Available section constants' list and the other SDKs. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 0fd40b2 commit 077a390

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

go/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ Event types: `SessionLifecycleCreated`, `SessionLifecycleDeleted`, `SessionLifec
165165
- `SystemMessage` (\*SystemMessageConfig): System message configuration. Supports three modes:
166166
- **append** (default): Appends `Content` after the SDK-managed prompt
167167
- **replace**: Replaces the entire prompt with `Content`
168-
- **customize**: Selectively override individual sections via `Sections` map (keys: `SectionIdentity`, `SectionTone`, `SectionToolEfficiency`, `SectionEnvironmentContext`, `SectionCodeChangeRules`, `SectionGuidelines`, `SectionSafety`, `SectionToolInstructions`, `SectionCustomInstructions`, `SectionRuntimeInstructions`, `SectionLastInstructions`; values: `SectionOverride` with `Action` and optional `Content`)
168+
- **customize**: Selectively override individual sections via `Sections` map (keys: `SectionPreamble`, `SectionIdentity`, `SectionTone`, `SectionToolEfficiency`, `SectionEnvironmentContext`, `SectionCodeChangeRules`, `SectionGuidelines`, `SectionSafety`, `SectionToolInstructions`, `SectionCustomInstructions`, `SectionRuntimeInstructions`, `SectionLastInstructions`; values: `SectionOverride` with `Action` and optional `Content`)
169169
- `Provider` (\*ProviderConfig): Custom API provider configuration (BYOK). See [Custom Providers](#custom-providers) section.
170170
- `Streaming` (*bool): Enable streaming delta events (nil = runtime default)
171171
- `InfiniteSessions` (\*InfiniteSessionConfig): Automatic context compaction configuration

0 commit comments

Comments
 (0)