From 683a2de530f5d2d43bb3ece4ff5c815e263fd168 Mon Sep 17 00:00:00 2001 From: seonNoh Date: Thu, 8 Oct 2026 01:47:19 +0900 Subject: [PATCH] style(ai): gofmt MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit gofmt 정렬만 적용. 동작 변경 없음. --- ai/internal/diag/diag.go | 6 ++++-- ai/internal/openai/client.go | 14 +++++++------- 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/ai/internal/diag/diag.go b/ai/internal/diag/diag.go index e061ed2..233bc2d 100644 --- a/ai/internal/diag/diag.go +++ b/ai/internal/diag/diag.go @@ -37,8 +37,10 @@ type Enums struct { Actions []string // + "none", "escalate" } -func (e Enums) LabelEnum() []string { return append(append([]string{}, e.Labels...), "unknown") } -func (e Enums) ActionEnum() []string { return append(append([]string{}, e.Actions...), "none", "escalate") } +func (e Enums) LabelEnum() []string { return append(append([]string{}, e.Labels...), "unknown") } +func (e Enums) ActionEnum() []string { + return append(append([]string{}, e.Actions...), "none", "escalate") +} // Schema is the JSON schema of the submit_diagnosis tool parameters (strict: additionalProperties false, all required). func (e Enums) Schema() map[string]any { diff --git a/ai/internal/openai/client.go b/ai/internal/openai/client.go index f81c9a7..a306b9c 100644 --- a/ai/internal/openai/client.go +++ b/ai/internal/openai/client.go @@ -37,13 +37,13 @@ type Tool struct { // Item is one input/output item of the Responses API. Only the fields this agent uses are modelled. type Item struct { - Type string `json:"type"` // message | function_call | function_call_output - Role string `json:"role,omitempty"` // message: system | user | assistant - Content any `json:"content,omitempty"` // message: string (input) or []ContentPart (output) - CallID string `json:"call_id,omitempty"` // function_call / function_call_output - Name string `json:"name,omitempty"` // function_call - Arguments string `json:"arguments,omitempty"` // function_call (JSON string) - Output string `json:"output,omitempty"` // function_call_output + Type string `json:"type"` // message | function_call | function_call_output + Role string `json:"role,omitempty"` // message: system | user | assistant + Content any `json:"content,omitempty"` // message: string (input) or []ContentPart (output) + CallID string `json:"call_id,omitempty"` // function_call / function_call_output + Name string `json:"name,omitempty"` // function_call + Arguments string `json:"arguments,omitempty"` // function_call (JSON string) + Output string `json:"output,omitempty"` // function_call_output ID string `json:"id,omitempty"` Status string `json:"status,omitempty"` }