Class: Tama::Client
- Inherits:
-
Object
- Object
- Tama::Client
- Defined in:
- lib/tama/client.rb
Constant Summary collapse
- DEFAULT_TIMEOUT =
300- DEFAULT_RETRIES =
2
Instance Attribute Summary collapse
-
#agentic ⇒ Object
readonly
Returns the value of attribute agentic.
-
#connection ⇒ Object
readonly
Returns the value of attribute connection.
-
#memory ⇒ Object
readonly
Returns the value of attribute memory.
-
#neural ⇒ Object
readonly
Returns the value of attribute neural.
-
#perception ⇒ Object
readonly
Returns the value of attribute perception.
Instance Method Summary collapse
-
#initialize(base_url:, headers: {}, timeout: DEFAULT_TIMEOUT, retries: DEFAULT_RETRIES, connection: nil) ⇒ Client
constructor
A new instance of Client.
Constructor Details
#initialize(base_url:, headers: {}, timeout: DEFAULT_TIMEOUT, retries: DEFAULT_RETRIES, connection: nil) ⇒ Client
Returns a new instance of Client.
10 11 12 13 14 15 16 17 18 |
# File 'lib/tama/client.rb', line 10 def initialize(base_url:, headers: {}, timeout: DEFAULT_TIMEOUT, retries: DEFAULT_RETRIES, connection: nil) http = HTTP.new(base_url:, headers:, timeout:, retries:, connection:) @connection = http.connection @neural = Neural::Service.new(http) @memory = Memory::Service.new(http) @perception = Perception::Service.new(http) @agentic = Agentic::Service.new(http) freeze end |
Instance Attribute Details
#agentic ⇒ Object (readonly)
Returns the value of attribute agentic.
8 9 10 |
# File 'lib/tama/client.rb', line 8 def agentic @agentic end |
#connection ⇒ Object (readonly)
Returns the value of attribute connection.
8 9 10 |
# File 'lib/tama/client.rb', line 8 def connection @connection end |
#memory ⇒ Object (readonly)
Returns the value of attribute memory.
8 9 10 |
# File 'lib/tama/client.rb', line 8 def memory @memory end |
#neural ⇒ Object (readonly)
Returns the value of attribute neural.
8 9 10 |
# File 'lib/tama/client.rb', line 8 def neural @neural end |
#perception ⇒ Object (readonly)
Returns the value of attribute perception.
8 9 10 |
# File 'lib/tama/client.rb', line 8 def perception @perception end |