Class: OpenAI::Models::Beta::AgentDeleted

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/openai/models/beta/agent_deleted.rb,
sig/openai/models/beta/agent_deleted.rbs

Overview

See Also:

  • OpenAI::Resources::Beta::Agents#delete

Instance Attribute Summary collapse

Attributes inherited from Internal::Type::BaseModel

#last_response

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], #_request_id, #_set_last_response, coerce, #deconstruct_keys, #deep_to_h, dump, #encode_with, 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, coerce_with_error, 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(id:, deleted:, object: :"agent.deleted") ⇒ Object

A deleted reusable agent.

Parameters:

  • id (String)

    The ID of the deleted agent.

  • deleted (Boolean)

    Whether the agent was deleted. Always true.

  • object (Symbol, :"agent.deleted") (defaults to: :"agent.deleted")

    The object type. Always agent.deleted.



# File 'lib/openai/models/beta/agent_deleted.rb', line 26

Instance Attribute Details

#deletedBoolean

Whether the agent was deleted. Always true.

Parameters:

Returns:



18
# File 'lib/openai/models/beta/agent_deleted.rb', line 18

required :deleted, OpenAI::Internal::Type::Boolean

#idString

The ID of the deleted agent.

Parameters:

  • value (String)

Returns:

  • (String)


12
# File 'lib/openai/models/beta/agent_deleted.rb', line 12

required :id, String

#objectSymbol, :"agent.deleted"

The object type. Always agent.deleted.

Parameters:

Returns:



24
# File 'lib/openai/models/beta/agent_deleted.rb', line 24

required :object, const: :"agent.deleted"

Instance Method Details

#to_hash{ id: String, deleted: bool, ?object: :"agent.deleted" }

Returns:

  • ({ id: String, deleted: bool, ?object: :"agent.deleted" })


20
# File 'sig/openai/models/beta/agent_deleted.rbs', line 20

def to_hash: -> { id: String, deleted: bool, ?object: :"agent.deleted" }