Cache tool response json instead of generating 1001 times
This commit is contained in:
@@ -51,8 +51,9 @@ test_max_tool_iterations() {
|
||||
|
||||
# Generate 1001 tool call responses (exceeds default max of 1000)
|
||||
> mock_responses.txt
|
||||
resp_line=$(tool_call read_file '{"path":"test_file.txt"}')
|
||||
for i in $(seq 1 1001); do
|
||||
tool_call read_file '{"path":"test_file.txt"}' >> mock_responses.txt
|
||||
echo "$resp_line" >> mock_responses.txt
|
||||
done
|
||||
be_done "final response" >> mock_responses.txt
|
||||
|
||||
|
||||
Reference in New Issue
Block a user