Class: LanggraphPlatform::Client
- Inherits:
-
Object
- Object
- LanggraphPlatform::Client
- Defined in:
- lib/langgraph_platform/client.rb
Instance Attribute Summary collapse
-
#assistants ⇒ Object
readonly
Returns the value of attribute assistants.
-
#configuration ⇒ Object
readonly
Returns the value of attribute configuration.
-
#crons ⇒ Object
readonly
Returns the value of attribute crons.
-
#mcp ⇒ Object
readonly
Returns the value of attribute mcp.
-
#runs ⇒ Object
readonly
Returns the value of attribute runs.
-
#store ⇒ Object
readonly
Returns the value of attribute store.
-
#threads ⇒ Object
readonly
Returns the value of attribute threads.
Instance Method Summary collapse
- #configure {|@configuration| ... } ⇒ Object
-
#initialize(api_key: nil, base_url: nil, **options) ⇒ Client
constructor
A new instance of Client.
Constructor Details
#initialize(api_key: nil, base_url: nil, **options) ⇒ Client
Returns a new instance of Client.
5 6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/langgraph_platform/client.rb', line 5 def initialize(api_key: nil, base_url: nil, **) @configuration = Configuration.new(api_key: api_key, base_url: base_url) @configuration.timeout = [:timeout] if [:timeout] @configuration.retries = [:retries] if [:retries] @configuration.user_agent = [:user_agent] if [:user_agent] validate_configuration! @http_client = BaseClient.new(@configuration) initialize_resources end |
Instance Attribute Details
#assistants ⇒ Object (readonly)
Returns the value of attribute assistants.
3 4 5 |
# File 'lib/langgraph_platform/client.rb', line 3 def assistants @assistants end |
#configuration ⇒ Object (readonly)
Returns the value of attribute configuration.
3 4 5 |
# File 'lib/langgraph_platform/client.rb', line 3 def configuration @configuration end |
#crons ⇒ Object (readonly)
Returns the value of attribute crons.
3 4 5 |
# File 'lib/langgraph_platform/client.rb', line 3 def crons @crons end |
#mcp ⇒ Object (readonly)
Returns the value of attribute mcp.
3 4 5 |
# File 'lib/langgraph_platform/client.rb', line 3 def mcp @mcp end |
#runs ⇒ Object (readonly)
Returns the value of attribute runs.
3 4 5 |
# File 'lib/langgraph_platform/client.rb', line 3 def runs @runs end |
#store ⇒ Object (readonly)
Returns the value of attribute store.
3 4 5 |
# File 'lib/langgraph_platform/client.rb', line 3 def store @store end |
#threads ⇒ Object (readonly)
Returns the value of attribute threads.
3 4 5 |
# File 'lib/langgraph_platform/client.rb', line 3 def threads @threads end |
Instance Method Details
#configure {|@configuration| ... } ⇒ Object
18 19 20 21 22 |
# File 'lib/langgraph_platform/client.rb', line 18 def configure yield(@configuration) if block_given? @http_client = BaseClient.new(@configuration) initialize_resources end |