mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-06-11 09:35:59 -04:00
agent: use enum tag for eval tool name
This commit is contained in:
@@ -364,7 +364,7 @@ fn handleSlash(self: *Self, body: []const u8) bool {
|
||||
return false;
|
||||
};
|
||||
|
||||
if (std.mem.eql(u8, schema.tool_name, "eval")) {
|
||||
if (std.mem.eql(u8, schema.tool_name, @tagName(lp.tools.Action.eval))) {
|
||||
// callEval surfaces the is_error flag separately from the text;
|
||||
// tool_executor.call discards it.
|
||||
const script = extractEvalScript(aa, args_json) catch {
|
||||
|
||||
Reference in New Issue
Block a user