Class: Handinger::Models::UpdateWorker

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/handinger/models/update_worker.rb

Direct Known Subclasses

WorkerUpdateParams

Defined Under Namespace

Modules: Visibility

Instance Attribute Summary collapse

Instance Method Summary collapse

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(instructions: nil, output_schema: nil, summary: nil, title: nil, visibility: nil) ⇒ Object

Some parameter documentations has been truncated, see Handinger::Models::UpdateWorker for more details.

Parameters:

  • instructions (String) (defaults to: nil)

    Replaces the persistent system prompt. Subsequent tasks pick up the new instruct

  • output_schema (Hash{Symbol=>Object}, nil) (defaults to: nil)

    Replace the worker’s structured output schema. Pass ‘null` to clear it and retur

  • summary (String) (defaults to: nil)

    Replaces the worker’s short one-line summary.

  • title (String) (defaults to: nil)

    New display name for the worker.

  • visibility (Symbol, Handinger::Models::UpdateWorker::Visibility) (defaults to: nil)

    Change visibility between ‘public` (any org member can run tasks) and `private`



# File 'lib/handinger/models/update_worker.rb', line 42

Instance Attribute Details

#instructionsString?

Replaces the persistent system prompt. Subsequent tasks pick up the new instructions immediately; in-flight tasks keep using the previous version.

Returns:

  • (String, nil)


11
# File 'lib/handinger/models/update_worker.rb', line 11

optional :instructions, String

#output_schemaHash{Symbol=>Object}?

Replace the worker’s structured output schema. Pass ‘null` to clear it and return to free-form text responses.

Returns:

  • (Hash{Symbol=>Object}, nil)


18
19
20
21
# File 'lib/handinger/models/update_worker.rb', line 18

optional :output_schema,
Handinger::Internal::Type::HashOf[Handinger::Internal::Type::Unknown],
api_name: :outputSchema,
nil?: true

#summaryString?

Replaces the worker’s short one-line summary.

Returns:

  • (String, nil)


27
# File 'lib/handinger/models/update_worker.rb', line 27

optional :summary, String

#titleString?

New display name for the worker.

Returns:

  • (String, nil)


33
# File 'lib/handinger/models/update_worker.rb', line 33

optional :title, String

#visibilitySymbol, ...

Change visibility between ‘public` (any org member can run tasks) and `private` (only invited members).



40
# File 'lib/handinger/models/update_worker.rb', line 40

optional :visibility, enum: -> { Handinger::UpdateWorker::Visibility }