Private
Public Access
1
0

Rough-in support for deepseeek-style separate reasoning output

This commit is contained in:
2025-01-25 19:18:52 +00:00
parent fb3edad0c3
commit 9372c1d2c0
10 changed files with 94 additions and 39 deletions

View File

@@ -16,10 +16,11 @@ const (
)
type Message struct {
Content string // TODO: support multi-part messages
Role MessageRole
ToolCalls []ToolCall
ToolResults []ToolResult
Content string // TODO: support multi-part messages
ReasoningContent string
Role MessageRole
ToolCalls []ToolCall
ToolResults []ToolResult
}
type ToolSpec struct {
@@ -49,10 +50,11 @@ type ToolResult struct {
Result string `json:"result,omitempty" yaml:"result"`
}
func NewMessageWithAssistant(content string) *Message {
func NewMessageWithAssistant(content string, reasoning string) *Message {
return &Message{
Role: MessageRoleAssistant,
Content: content,
ReasoningContent: reasoning,
}
}