mirror of
https://github.com/googleapis/genai-toolbox.git
synced 2026-05-02 03:00:36 -04:00
fix trino execute-sql tool
This commit is contained in:
@@ -101,7 +101,7 @@ func (t Tool) Invoke(ctx context.Context, resourceMgr tools.SourceProvider, para
|
||||
if !ok {
|
||||
return nil, util.NewAgentError("unable to cast the `sql` input parameter into string", nil)
|
||||
}
|
||||
res, err := source.RunSQL(ctx, sql, sliceParams)
|
||||
res, err := source.RunSQL(ctx, sql, []any{})
|
||||
if err != nil {
|
||||
return nil, util.ProcessGeneralError(err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user