Class: Firecrawl::Models::AgentListResponse

Inherits:
Object
  • Object
show all
Defined in:
lib/firecrawl/models/agent_list_response.rb

Overview

Response from listing agent tasks.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(raw) ⇒ AgentListResponse

Returns a new instance of AgentListResponse.



9
10
11
12
13
14
# File 'lib/firecrawl/models/agent_list_response.rb', line 9

def initialize(raw)
  @success = raw["success"]
  @agents = raw["agents"]
  @next = raw["next"]
  @error = raw["error"]
end

Instance Attribute Details

#agentsObject (readonly)

Returns the value of attribute agents.



7
8
9
# File 'lib/firecrawl/models/agent_list_response.rb', line 7

def agents
  @agents
end

#errorObject (readonly)

Returns the value of attribute error.



7
8
9
# File 'lib/firecrawl/models/agent_list_response.rb', line 7

def error
  @error
end

#nextObject (readonly)

Returns the value of attribute next.



7
8
9
# File 'lib/firecrawl/models/agent_list_response.rb', line 7

def next
  @next
end

#successObject (readonly)

Returns the value of attribute success.



7
8
9
# File 'lib/firecrawl/models/agent_list_response.rb', line 7

def success
  @success
end

Instance Method Details

#to_sObject



16
17
18
# File 'lib/firecrawl/models/agent_list_response.rb', line 16

def to_s
  "AgentListResponse{success=#{success}, agents=#{agents&.size}}"
end