class Anthropic::EventSource
- Anthropic::EventSource
- Reference
- Object
Defined in:
event_source.crConstructors
Instance Method Summary
- #last_id : String | Nil
- #on_error(&on_error : NamedTuple(status_code: Int32, message: String) -> ) : self
- #on_message(&on_message : EventMessage, self -> ) : self
- #response : HTTP::Client::Response
- #run : Nil
- #stop : Nil
Constructor Detail
Instance Method Detail
def on_error(&on_error : NamedTuple(status_code: Int32, message: String) -> ) : self
#