Consolidated a bunch of reused code to agents
This commit is contained in:
@@ -13,7 +13,7 @@ var Calculator = gollm.NewFunction(
|
||||
"A starlark calculator",
|
||||
func(ctx *gollm.Context, args struct {
|
||||
Expression string `description:"The expression to evaluate using starlark"`
|
||||
}) (string, error) {
|
||||
}) (any, error) {
|
||||
val, err := starlark.EvalOptions(&syntax.FileOptions{},
|
||||
&starlark.Thread{Name: "main"},
|
||||
"input",
|
||||
|
Reference in New Issue
Block a user