ToolChoiceRequired 必须使用指定工具
(toolName string)
| 164 | |
| 165 | // ToolChoiceRequired 必须使用指定工具 |
| 166 | func ToolChoiceRequired(toolName string) *ToolChoice { |
| 167 | return &ToolChoice{ |
| 168 | Type: "tool", |
| 169 | Name: toolName, |
| 170 | } |
| 171 | } |
| 172 | |
| 173 | // ToConstraints 将 ToolChoice 转换为 ToolConstraints |
| 174 | func (tc *ToolChoice) ToConstraints() ToolConstraints { |
no outgoing calls