MCPcopy Create free account
hub / github.com/astercloud/aster / ToolChoiceRequired

Function ToolChoiceRequired

pkg/tools/constraints.go:166–171  ·  view source on GitHub ↗

ToolChoiceRequired 必须使用指定工具

(toolName string)

Source from the content-addressed store, hash-verified

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

Callers 2

ShouldUseToolChoiceMethod · 0.85

Calls

no outgoing calls

Tested by 1