Class: Firecrawl::Models::AgentResponse

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

Overview

Response from starting an agent task.

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#errorObject (readonly)

Returns the value of attribute error.



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

def error
  @error
end

#idObject (readonly)

Returns the value of attribute id.



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

def id
  @id
end

#successObject (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_sObject



15
16
17
# File 'lib/firecrawl/models/agent_response.rb', line 15

def to_s
  "AgentResponse{id=#{id}, success=#{success}}"
end