Class: Firecrawl::Models::AgentResponse
- Inherits:
-
Object
- Object
- Firecrawl::Models::AgentResponse
- Defined in:
- lib/firecrawl/models/agent_response.rb
Overview
Response from starting an agent task.
Instance Attribute Summary collapse
-
#error ⇒ Object
readonly
Returns the value of attribute error.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#success ⇒ Object
readonly
Returns the value of attribute success.
Instance Method Summary collapse
-
#initialize(data) ⇒ AgentResponse
constructor
A new instance of AgentResponse.
- #to_s ⇒ Object
Constructor Details
#initialize(data) ⇒ AgentResponse
Returns a new instance of AgentResponse.
9 10 11 12 13 |
# File 'lib/firecrawl/models/agent_response.rb', line 9 def initialize(data) @success = data["success"] @id = data["id"] @error = data["error"] end |
Instance Attribute Details
#error ⇒ Object (readonly)
Returns the value of attribute error.
7 8 9 |
# File 'lib/firecrawl/models/agent_response.rb', line 7 def error @error end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
7 8 9 |
# File 'lib/firecrawl/models/agent_response.rb', line 7 def id @id end |
#success ⇒ Object (readonly)
Returns the value of attribute success.
7 8 9 |
# File 'lib/firecrawl/models/agent_response.rb', line 7 def success @success end |
Instance Method Details
#to_s ⇒ Object
15 16 17 |
# File 'lib/firecrawl/models/agent_response.rb', line 15 def to_s "AgentResponse{id=#{id}, success=#{success}}" end |