Skip to content

Commit 79b253c

Browse files
Copilotpatniko
andcommitted
Add system_message field to ResumeSessionConfig in all SDKs
Co-authored-by: patniko <26906478+patniko@users.noreply.github.com>
1 parent ccd32ab commit 79b253c

4 files changed

Lines changed: 10 additions & 0 deletions

File tree

dotnet/src/Types.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -771,6 +771,12 @@ public class SessionConfig
771771
public class ResumeSessionConfig
772772
{
773773
public ICollection<AIFunction>? Tools { get; set; }
774+
775+
/// <summary>
776+
/// System message configuration for the session.
777+
/// </summary>
778+
public SystemMessageConfig? SystemMessage { get; set; }
779+
774780
public ProviderConfig? Provider { get; set; }
775781

776782
/// <summary>

go/types.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -401,6 +401,8 @@ type ToolResult struct {
401401
type ResumeSessionConfig struct {
402402
// Tools exposes caller-implemented tools to the CLI
403403
Tools []Tool
404+
// SystemMessage configures the system message for the session
405+
SystemMessage *SystemMessageConfig
404406
// Provider configures a custom model provider
405407
Provider *ProviderConfig
406408
// ReasoningEffort level for models that support it.

nodejs/src/types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -731,6 +731,7 @@ export interface SessionConfig {
731731
export type ResumeSessionConfig = Pick<
732732
SessionConfig,
733733
| "tools"
734+
| "systemMessage"
734735
| "provider"
735736
| "streaming"
736737
| "reasoningEffort"

python/copilot/types.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -493,6 +493,7 @@ class ResumeSessionConfig(TypedDict, total=False):
493493
"""Configuration for resuming a session"""
494494

495495
tools: list[Tool]
496+
system_message: SystemMessageConfig # System message configuration
496497
provider: ProviderConfig
497498
# Reasoning effort level for models that support it.
498499
reasoning_effort: ReasoningEffort

0 commit comments

Comments
 (0)