added anthropic tool support i think
This commit is contained in:
@@ -31,6 +31,14 @@ func (e enum) GoogleParameters() *genai.Schema {
|
||||
}
|
||||
}
|
||||
|
||||
func (e enum) AnthropicInputSchema() map[string]any {
|
||||
return map[string]any{
|
||||
"type": "string",
|
||||
"description": e.Description(),
|
||||
"enum": e.values,
|
||||
}
|
||||
}
|
||||
|
||||
func (e enum) FromAny(val any) (reflect.Value, error) {
|
||||
v := reflect.ValueOf(val)
|
||||
if v.Kind() != reflect.String {
|
||||
|
Reference in New Issue
Block a user