Anthropic::Page(T)
Inherits JSON::Serializable < Struct < Value < Object
Generic page response for cursor-based list endpoints. T is the type of items in the data array.
Constructors
new(data : Array(T) = [] of T, has_more : Bool = false, first_id : String | Nil = nil, last_id : String | Nil = nil)
Sourcenew(pull : JSON::PullParser)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
data
Sourcefirst_id
Sourcehas_more?
Sourcelast_id
Source