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