Class: Anthropic::Models::Beta::BetaManagedAgentsOutcomeEvaluationResource

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/anthropic/models/beta/beta_managed_agents_outcome_evaluation_resource.rb

Defined Under Namespace

Modules: Type

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(completed_at:, description:, explanation:, iteration:, outcome_id:, result:, type:) ⇒ Object

Some parameter documentations has been truncated, see Anthropic::Models::Beta::BetaManagedAgentsOutcomeEvaluationResource for more details.

Evaluation state for a single outcome defined via a define_outcome event.

Parameters:

  • completed_at (Time, nil)

    A timestamp in RFC 3339 format

  • description (String)

    What the agent should produce.

  • explanation (String, nil)

    Grader’s verdict text from the most recent evaluation. For satisfied, explains w

  • iteration (Integer)

    0-indexed revision cycle the outcome is currently on.

  • outcome_id (String)

    Server-generated outc_ ID for this outcome.

  • result (String)

    Current evaluation state. ‘pending’ before the agent begins work; ‘running’ whil

  • type (Symbol, Anthropic::Models::Beta::BetaManagedAgentsOutcomeEvaluationResource::Type)


# File 'lib/anthropic/models/beta/beta_managed_agents_outcome_evaluation_resource.rb', line 52

Instance Attribute Details

#completed_atTime?

A timestamp in RFC 3339 format

Returns:

  • (Time, nil)


11
# File 'lib/anthropic/models/beta/beta_managed_agents_outcome_evaluation_resource.rb', line 11

required :completed_at, Time, nil?: true

#descriptionString

What the agent should produce.

Returns:

  • (String)


17
# File 'lib/anthropic/models/beta/beta_managed_agents_outcome_evaluation_resource.rb', line 17

required :description, String

#explanationString?

Grader’s verdict text from the most recent evaluation. For satisfied, explains why criteria are met; for needs_revision (intermediate), what’s missing; for failed, why unrecoverable.

Returns:

  • (String, nil)


25
# File 'lib/anthropic/models/beta/beta_managed_agents_outcome_evaluation_resource.rb', line 25

required :explanation, String, nil?: true

#iterationInteger

0-indexed revision cycle the outcome is currently on.

Returns:

  • (Integer)


31
# File 'lib/anthropic/models/beta/beta_managed_agents_outcome_evaluation_resource.rb', line 31

required :iteration, Integer

#outcome_idString

Server-generated outc_ ID for this outcome.

Returns:

  • (String)


37
# File 'lib/anthropic/models/beta/beta_managed_agents_outcome_evaluation_resource.rb', line 37

required :outcome_id, String

#resultString

Current evaluation state. ‘pending’ before the agent begins work; ‘running’ while producing or revising; ‘evaluating’ while the grader scores; ‘satisfied’/‘max_iterations_reached’/‘failed’/‘interrupted’ are terminal.

Returns:

  • (String)


45
# File 'lib/anthropic/models/beta/beta_managed_agents_outcome_evaluation_resource.rb', line 45

required :result, String

#typeSymbol, Anthropic::Models::Beta::BetaManagedAgentsOutcomeEvaluationResource::Type



50
# File 'lib/anthropic/models/beta/beta_managed_agents_outcome_evaluation_resource.rb', line 50

required :type, enum: -> { Anthropic::Beta::BetaManagedAgentsOutcomeEvaluationResource::Type }