style(ai): gofmt
gofmt 정렬만 적용. 동작 변경 없음.
This commit is contained in:
1 parent
43696d48c8
commit
683a2de530
2 files changed
+11
-9
No files matched your search
@@ -37,8 +37,10 @@ type Enums struct {
|
|||||||
Actions []string // + "none", "escalate"
|
Actions []string // + "none", "escalate"
|
||||||
}
|
}
|
||||||
|
|
||||||
func (e Enums) LabelEnum() []string { return append(append([]string{}, e.Labels...), "unknown") }
|
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) 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).
|
// Schema is the JSON schema of the submit_diagnosis tool parameters (strict: additionalProperties false, all required).
|
||||||
func (e Enums) Schema() map[string]any {
|
func (e Enums) Schema() map[string]any {
|
||||||
|
|||||||
@@ -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.
|
// Item is one input/output item of the Responses API. Only the fields this agent uses are modelled.
|
||||||
type Item struct {
|
type Item struct {
|
||||||
Type string `json:"type"` // message | function_call | function_call_output
|
Type string `json:"type"` // message | function_call | function_call_output
|
||||||
Role string `json:"role,omitempty"` // message: system | user | assistant
|
Role string `json:"role,omitempty"` // message: system | user | assistant
|
||||||
Content any `json:"content,omitempty"` // message: string (input) or []ContentPart (output)
|
Content any `json:"content,omitempty"` // message: string (input) or []ContentPart (output)
|
||||||
CallID string `json:"call_id,omitempty"` // function_call / function_call_output
|
CallID string `json:"call_id,omitempty"` // function_call / function_call_output
|
||||||
Name string `json:"name,omitempty"` // function_call
|
Name string `json:"name,omitempty"` // function_call
|
||||||
Arguments string `json:"arguments,omitempty"` // function_call (JSON string)
|
Arguments string `json:"arguments,omitempty"` // function_call (JSON string)
|
||||||
Output string `json:"output,omitempty"` // function_call_output
|
Output string `json:"output,omitempty"` // function_call_output
|
||||||
ID string `json:"id,omitempty"`
|
ID string `json:"id,omitempty"`
|
||||||
Status string `json:"status,omitempty"`
|
Status string `json:"status,omitempty"`
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user