Class: Openlayer::Models::InferencePipelines::DataStreamParams

Inherits:
Internal::Type::BaseModel show all
Extended by:
Internal::Type::RequestParameters::Converter
Includes:
Internal::Type::RequestParameters
Defined in:
lib/openlayer/models/inference_pipelines/data_stream_params.rb,
sig/openlayer/models/inference_pipelines/data_stream_params.rbs

Overview

See Also:

  • Openlayer::Resources::InferencePipelines::Data#stream

Defined Under Namespace

Modules: Config

Constant Summary

Constants included from Internal::Type::RequestParameters

Internal::Type::RequestParameters::Openlayer

Instance Attribute Summary collapse

Attributes included from Internal::Type::RequestParameters

#request_options

Instance Method Summary collapse

Methods included from Internal::Type::RequestParameters::Converter

dump_request

Methods included from Internal::Type::RequestParameters

included

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

#initialize(inference_pipeline_id:, config:, rows:, request_options: {}) ⇒ Object

Some parameter documentations has been truncated, see Openlayer::Models::InferencePipelines::DataStreamParams for more details.

type

Parameters:



# File 'lib/openlayer/models/inference_pipelines/data_stream_params.rb', line 30

Instance Attribute Details

#configOpenlayer::Models::InferencePipelines::DataStreamParams::Config::LlmData, ...

Configuration for the data stream. Depends on your Openlayer project task type.



21
# File 'lib/openlayer/models/inference_pipelines/data_stream_params.rb', line 21

required :config, union: -> { Openlayer::InferencePipelines::DataStreamParams::Config }

#inference_pipeline_idString

Parameters:

  • value (String)

Returns:

  • (String)


14
# File 'lib/openlayer/models/inference_pipelines/data_stream_params.rb', line 14

required :inference_pipeline_id, String

#rowsArray<Hash{Symbol=>Object}>

A list of inference data points with inputs and outputs

Parameters:

  • value (::Array[::Hash[Symbol, top]])

Returns:

  • (Array<Hash{Symbol=>Object}>)


27
28
# File 'lib/openlayer/models/inference_pipelines/data_stream_params.rb', line 27

required :rows,
Openlayer::Internal::Type::ArrayOf[Openlayer::Internal::Type::HashOf[Openlayer::Internal::Type::Unknown]]

Instance Method Details

#to_hash{

Returns:

  • ({)


29
# File 'sig/openlayer/models/inference_pipelines/data_stream_params.rbs', line 29

def to_hash: -> {