Class: Firecrawl::Models::AgentListResponse
- Inherits:
-
Object
- Object
- Firecrawl::Models::AgentListResponse
- Defined in:
- lib/firecrawl/models/agent_list_response.rb
Overview
Response from listing agent tasks.
Instance Attribute Summary collapse
-
#agents ⇒ Object
readonly
Returns the value of attribute agents.
-
#error ⇒ Object
readonly
Returns the value of attribute error.
-
#next ⇒ Object
readonly
Returns the value of attribute next.
-
#success ⇒ Object
readonly
Returns the value of attribute success.
Instance Method Summary collapse
-
#initialize(raw) ⇒ AgentListResponse
constructor
A new instance of AgentListResponse.
- #to_s ⇒ Object
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
#agents ⇒ Object (readonly)
Returns the value of attribute agents.
7 8 9 |
# File 'lib/firecrawl/models/agent_list_response.rb', line 7 def agents @agents end |
#error ⇒ Object (readonly)
Returns the value of attribute error.
7 8 9 |
# File 'lib/firecrawl/models/agent_list_response.rb', line 7 def error @error end |
#next ⇒ Object (readonly)
Returns the value of attribute next.
7 8 9 |
# File 'lib/firecrawl/models/agent_list_response.rb', line 7 def next @next end |
#success ⇒ Object (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_s ⇒ Object
16 17 18 |
# File 'lib/firecrawl/models/agent_list_response.rb', line 16 def to_s "AgentListResponse{success=#{success}, agents=#{agents&.size}}" end |