Skip to content

Commit 5732e1c

Browse files
committed
Mark the JSON field of project_eval as hidden
1 parent 4cd1c84 commit 5732e1c

2 files changed

Lines changed: 2 additions & 10 deletions

File tree

lib/tidewave/tools/project_eval.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class Tidewave::Tools::ProjectEval < Tidewave::Tools::Base
2020
required(:code).filled(:string).description("The Ruby code to evaluate")
2121
optional(:arguments).value(:array).description("The arguments to pass to evaluation. They are available inside the evaluated code as `arguments`.")
2222
optional(:timeout).filled(:integer).description("The timeout in milliseconds. If the evaluation takes longer than this, it will be terminated. Defaults to 30000 (30 seconds).")
23-
optional(:json).filled(:bool).description("Whether to return the result as JSON with structured output containing result, success, stdout, and stderr fields. Defaults to false.")
23+
optional(:json).hidden().filled(:bool).description("Whether to return the result as JSON with structured output containing result, success, stdout, and stderr fields. Defaults to false.")
2424
end
2525

2626
def call(code:, arguments: [], timeout: 30_000, json: false)

spec/tools/project_eval_spec.rb

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,9 @@
11
# frozen_string_literal: true
22

33
describe Tidewave::Tools::ProjectEval do
4-
describe ".tool_name" do
5-
it "returns the correct tool name" do
6-
expect(described_class.tool_name).to eq("project_eval")
7-
end
8-
end
9-
104
describe ".description" do
115
it "returns the correct description" do
12-
expect(described_class.description).to match(
13-
/Evaluates Ruby code in the context of the project/
14-
)
6+
expect(described_class.input_schema_to_json[:properties][:json]).to be_nil
157
end
168
end
179

0 commit comments

Comments
 (0)