Skip to content

Commit

Permalink
Rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
alexrudall committed Oct 28, 2023
1 parent cf3d9f3 commit a228851
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions lib/superagi/agent.rb
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ def status(id:)
DEFAULT_UPDATE_PARAMETERS = {
constraints: [],
goal: [],
tools: [],
}
tools: []
}.freeze

def valid_parameters(parameters:)
parameters = DEFAULT_CREATE_PARAMETERS.merge(parameters)
Expand Down
10 changes: 5 additions & 5 deletions spec/superagi/client/agent_spec.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
RSpec.describe SuperAGI::Client do
describe "#agent", :vcr do
let(:create_parameters) do
let(:create_params) do
{
name: "Motivational Quote Generator",
description: "Generates motivational quotes",
Expand All @@ -14,13 +14,13 @@
end
let(:agent_id) do
VCR.use_cassette("#{cassette} setup agent") do
SuperAGI::Client.new.agent.create(parameters: create_parameters)
SuperAGI::Client.new.agent.create(parameters: create_params)
end["agent_id"]
end

describe "#create" do
let(:cassette) { "agent create" }
let(:response) { SuperAGI::Client.new.agent.create(parameters: create_parameters) }
let(:response) { SuperAGI::Client.new.agent.create(parameters: create_params) }

it "succeeds" do
VCR.use_cassette(cassette) do
Expand All @@ -30,9 +30,9 @@
end

describe "#update" do
let(:update_parameters) { { name: "Updated Name" } }
let(:update_params) { { name: "Updated Name" } }
let(:cassette) { "agent update" }
let(:response) { SuperAGI::Client.new.agent.update(id: agent_id, parameters: update_parameters) }
let(:response) { SuperAGI::Client.new.agent.update(id: agent_id, parameters: update_params) }

it "succeeds" do
VCR.use_cassette(cassette) do
Expand Down

0 comments on commit a228851

Please sign in to comment.