Class: Cadenya::Types::CallableTool_Agent
- Inherits:
-
Object
- Object
- Cadenya::Types::CallableTool_Agent
- Defined in:
- lib/cadenya/types.rb
Instance Attribute Summary collapse
-
#agent ⇒ Object
readonly
Returns the value of attribute agent.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(type: nil, agent: nil) ⇒ CallableTool_Agent
constructor
A new instance of CallableTool_Agent.
- #to_h ⇒ Object
Constructor Details
#initialize(type: nil, agent: nil) ⇒ CallableTool_Agent
Returns a new instance of CallableTool_Agent.
8987 8988 8989 8990 |
# File 'lib/cadenya/types.rb', line 8987 def initialize(type: nil, agent: nil) @type = type @agent = agent end |
Instance Attribute Details
#agent ⇒ Object (readonly)
Returns the value of attribute agent.
8985 8986 8987 |
# File 'lib/cadenya/types.rb', line 8985 def agent @agent end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
8985 8986 8987 |
# File 'lib/cadenya/types.rb', line 8985 def type @type end |
Class Method Details
.from_json(data) ⇒ Object
8992 8993 8994 8995 8996 8997 |
# File 'lib/cadenya/types.rb', line 8992 def self.from_json(data) new( type: data["type"], agent: data["agent"].nil? ? nil : Types::ResourceMetadata.from_json(data["agent"]), ) end |