Class: Courier::Models::FeedbackCreateParams

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

Overview

See Also:

  • Courier::Resources::Feedback#create

Defined Under Namespace

Modules: Category, Surface

Instance Attribute Summary collapse

Attributes included from Internal::Type::RequestParameters

#request_options

Class Method Summary collapse

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(category:, description:, surface:, title:, expected_behavior: nil, harness: nil, location: nil, model: nil, request_id: nil, request_options: {}) ⇒ FeedbackCreateParams

Some parameter documentations has been truncated, see Courier::Models::FeedbackCreateParams for more details.

Parameters:

  • category (Symbol, Courier::Models::FeedbackCreateParams::Category) —

    What kind of report this is: possible_bug for behavior that looks wrong, `conf

  • description (String) —

    What happened, in enough detail for someone at Courier to follow it.

  • surface (Symbol, Courier::Models::FeedbackCreateParams::Surface) —

    Where you met the problem: the REST api, an sdk, the Courier mcp server, t

  • title (String) —

    A one-line summary of the report.

  • expected_behavior (String) (defaults to: nil) —

    What you expected to happen instead.

  • harness (String) (defaults to: nil) —

    The agent or tool that submitted the report, such as Claude Code.

  • location (String) (defaults to: nil) —

    Where it happened, such as an endpoint (POST /send), an SDK method, an MCP too

  • model (String) (defaults to: nil) —

    The AI model that submitted the report, such as claude-opus-5-5.

  • request_id (String) (defaults to: nil) —

    The request ID of an API call that shows the problem, if there is one.

  • request_options (Courier::RequestOptions, Hash{Symbol=>Object}) (defaults to: {})
  • category: (Courier::Models::FeedbackCreateParams::category)
  • description: (String)
  • surface: (Courier::Models::FeedbackCreateParams::surface)
  • title: (String)
  • expected_behavior: (String) (defaults to: nil)
  • harness: (String) (defaults to: nil)
  • location: (String) (defaults to: nil)
  • model: (String) (defaults to: nil)
  • request_id: (String) (defaults to: nil)
  • request_options: (Courier::request_opts) (defaults to: {})


# File 'lib/courier/models/feedback_create_params.rb', line 68

Instance Attribute Details

#category ⇒ Symbol, Courier::Models::FeedbackCreateParams::Category

What kind of report this is: possible_bug for behavior that looks wrong, confusing_behavior for behavior that works but was hard to understand, feature_request for something Courier does not do yet, and other.

Parameters:

  • value (Courier::Models::FeedbackCreateParams::category)

Returns:



16
# File 'lib/courier/models/feedback_create_params.rb', line 16

required :category, enum: -> { Courier::FeedbackCreateParams::Category }

#description ⇒ String

What happened, in enough detail for someone at Courier to follow it.

Parameters:

  • value (String)

Returns:

  • (String)


22
# File 'lib/courier/models/feedback_create_params.rb', line 22

required :description, String

#expected_behavior ⇒ String?

What you expected to happen instead.

Parameters:

  • (String)

Returns:

  • (String, nil)


41
# File 'lib/courier/models/feedback_create_params.rb', line 41

optional :expected_behavior, String

#harness ⇒ String?

The agent or tool that submitted the report, such as Claude Code.

Parameters:

  • (String)

Returns:

  • (String, nil)


47
# File 'lib/courier/models/feedback_create_params.rb', line 47

optional :harness, String

#location ⇒ String?

Where it happened, such as an endpoint (POST /send), an SDK method, an MCP tool name or a docs URL.

Parameters:

  • (String)

Returns:

  • (String, nil)


54
# File 'lib/courier/models/feedback_create_params.rb', line 54

optional :location, String

#model ⇒ String?

The AI model that submitted the report, such as claude-opus-5-5.

Parameters:

  • (String)

Returns:

  • (String, nil)


60
# File 'lib/courier/models/feedback_create_params.rb', line 60

optional :model, String

#request_id ⇒ String?

The request ID of an API call that shows the problem, if there is one.

Parameters:

  • (String)

Returns:

  • (String, nil)


66
# File 'lib/courier/models/feedback_create_params.rb', line 66

optional :request_id, String

#surface ⇒ Symbol, Courier::Models::FeedbackCreateParams::Surface

Where you met the problem: the REST api, an sdk, the Courier mcp server, the Courier app ui, the docs, or other.

Parameters:

  • value (Courier::Models::FeedbackCreateParams::surface)

Returns:



29
# File 'lib/courier/models/feedback_create_params.rb', line 29

required :surface, enum: -> { Courier::FeedbackCreateParams::Surface }

#title ⇒ String

A one-line summary of the report.

Parameters:

  • value (String)

Returns:

  • (String)


35
# File 'lib/courier/models/feedback_create_params.rb', line 35

required :title, String

Class Method Details

.values ⇒ Array<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/courier/models/feedback_create_params.rb', line 103

Instance Method Details

#to_hash ⇒ { category: Courier::Models::FeedbackCreateParams::category, description: String, surface: Courier::Models::FeedbackCreateParams::surface, title: String, expected_behavior: String, harness: String, location: String, model: String, request_id: String, request_options: Courier::RequestOptions }

Returns:

  • ({ category: Courier::Models::FeedbackCreateParams::category, description: String, surface: Courier::Models::FeedbackCreateParams::surface, title: String, expected_behavior: String, harness: String, location: String, model: String, request_id: String, request_options: Courier::RequestOptions })


62
63
64
65
66
67
68
69
70
71
72
73
# File 'sig/courier/models/feedback_create_params.rbs', line 62

def to_hash: -> {
  category: Courier::Models::FeedbackCreateParams::category,
  description: String,
  surface: Courier::Models::FeedbackCreateParams::surface,
  title: String,
  expected_behavior: String,
  harness: String,
  location: String,
  model: String,
  request_id: String,
  request_options: Courier::RequestOptions
}