Class: Envoy::Runner
- Inherits:
-
Object
- Object
- Envoy::Runner
- Defined in:
- lib/envoy/runner.rb
Constant Summary collapse
- ERROR_CONVENTION =
<<~TXT.freeze When a tool returns a JSON object with an "error" key, it failed. The "type" tells you why: "not_found" (no such record), "forbidden" (you may not do that), "invalid" (bad arguments). Explain the problem to the user instead of retrying blindly. TXT
Instance Method Summary collapse
- #call(content:, &on_event) ⇒ Object
-
#initialize(conversation:) ⇒ Runner
constructor
A new instance of Runner.
Constructor Details
#initialize(conversation:) ⇒ Runner
Returns a new instance of Runner.
10 11 12 |
# File 'lib/envoy/runner.rb', line 10 def initialize(conversation:) @conversation = conversation end |