Module: Cerca::Models::ToolCreateParams::Body
- Extended by:
- Internal::Type::Union
- Defined in:
- lib/cerca/models/tool_create_params.rb
Defined Under Namespace
Classes: CreateHTTPToolSourceRequest, CreateMcpToolSourceRequest
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(auth:, namespace:, tools:, approval: nil, enabled: nil, execution: nil, type: :http) ⇒ Object
Some parameter documentations has been truncated, see CreateHTTPToolSourceRequest for more details.
Methods included from Internal::Type::Union
==, ===, coerce, dump, hash, inspect, to_sorbet_type, variants
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Methods included from Internal::Type::Converter
#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info
Class Method Details
.variants ⇒ Array(Cerca::Models::ToolCreateParams::Body::CreateHTTPToolSourceRequest, Cerca::Models::ToolCreateParams::Body::CreateMcpToolSourceRequest)
|
|
# File 'lib/cerca/models/tool_create_params.rb', line 152
|
Instance Method Details
#initialize(auth:, namespace:, tools:, approval: nil, enabled: nil, execution: nil, type: :http) ⇒ Object
Some parameter documentations has been truncated, see CreateHTTPToolSourceRequest for more details.
25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 |
# File 'lib/cerca/models/tool_create_params.rb', line 25 module Body extend Cerca::Internal::Type::Union discriminator :type variant :http, -> { Cerca::ToolCreateParams::Body::CreateHTTPToolSourceRequest } variant :mcp, -> { Cerca::ToolCreateParams::Body::CreateMcpToolSourceRequest } class CreateHTTPToolSourceRequest < Cerca::Internal::Type::BaseModel # @!attribute auth # Tool source authentication configuration. The `kind` field selects one of # `none`, `api_key`, `oauth_exchange`, or `oauth_connection`. # # @return [Cerca::Models::NoToolSourceAuth, Cerca::Models::APIKeyToolSourceAuth, Cerca::Models::OAuthExchangeToolSourceAuth, Cerca::Models::OAuthConnectionToolSourceAuth] required :auth, union: -> { Cerca::ToolSourceAuth } # @!attribute namespace # # @return [String] required :namespace, String # @!attribute tools # # @return [Array<Cerca::Models::HTTPToolDefinition>] required :tools, -> { Cerca::Internal::Type::ArrayOf[Cerca::HTTPToolDefinition] } # @!attribute type # # @return [Symbol, :http] required :type, const: :http # @!attribute approval # # @return [Symbol, Cerca::Models::ToolApprovalMode, nil] optional :approval, enum: -> { Cerca::ToolApprovalMode } # @!attribute enabled # # @return [Boolean, nil] optional :enabled, Cerca::Internal::Type::Boolean # @!attribute execution # HTTP tool execution retry and timeout policy. # # @return [Cerca::Models::HTTPToolExecutionPolicy, nil] optional :execution, -> { Cerca::HTTPToolExecutionPolicy } # @!method initialize(auth:, namespace:, tools:, approval: nil, enabled: nil, execution: nil, type: :http) # Some parameter documentations has been truncated, see # {Cerca::Models::ToolCreateParams::Body::CreateHTTPToolSourceRequest} for more # details. # # @param auth [Cerca::Models::NoToolSourceAuth, Cerca::Models::APIKeyToolSourceAuth, Cerca::Models::OAuthExchangeToolSourceAuth, Cerca::Models::OAuthConnectionToolSourceAuth] Tool source authentication configuration. The `kind` field selects one of `none` # # @param namespace [String] # # @param tools [Array<Cerca::Models::HTTPToolDefinition>] # # @param approval [Symbol, Cerca::Models::ToolApprovalMode] # # @param enabled [Boolean] # # @param execution [Cerca::Models::HTTPToolExecutionPolicy] HTTP tool execution retry and timeout policy. # # @param type [Symbol, :http] end class CreateMcpToolSourceRequest < Cerca::Internal::Type::BaseModel # @!attribute auth # Tool source authentication configuration. The `kind` field selects one of # `none`, `api_key`, `oauth_exchange`, or `oauth_connection`. # # @return [Cerca::Models::NoToolSourceAuth, Cerca::Models::APIKeyToolSourceAuth, Cerca::Models::OAuthExchangeToolSourceAuth, Cerca::Models::OAuthConnectionToolSourceAuth] required :auth, union: -> { Cerca::ToolSourceAuth } # @!attribute namespace # # @return [String] required :namespace, String # @!attribute type # # @return [Symbol, :mcp] required :type, const: :mcp # @!attribute url # # @return [String] required :url, String # @!attribute approval # # @return [Symbol, Cerca::Models::ToolApprovalMode, nil] optional :approval, enum: -> { Cerca::ToolApprovalMode } # @!attribute enabled # # @return [Boolean, nil] optional :enabled, Cerca::Internal::Type::Boolean # @!attribute execution # MCP discovery and execution retry/timeout policy. # # @return [Cerca::Models::McpToolExecutionPolicy, nil] optional :execution, -> { Cerca::McpToolExecutionPolicy } # @!method initialize(auth:, namespace:, url:, approval: nil, enabled: nil, execution: nil, type: :mcp) # Some parameter documentations has been truncated, see # {Cerca::Models::ToolCreateParams::Body::CreateMcpToolSourceRequest} for more # details. # # @param auth [Cerca::Models::NoToolSourceAuth, Cerca::Models::APIKeyToolSourceAuth, Cerca::Models::OAuthExchangeToolSourceAuth, Cerca::Models::OAuthConnectionToolSourceAuth] Tool source authentication configuration. The `kind` field selects one of `none` # # @param namespace [String] # # @param url [String] # # @param approval [Symbol, Cerca::Models::ToolApprovalMode] # # @param enabled [Boolean] # # @param execution [Cerca::Models::McpToolExecutionPolicy] MCP discovery and execution retry/timeout policy. # # @param type [Symbol, :mcp] end # @!method self.variants # @return [Array(Cerca::Models::ToolCreateParams::Body::CreateHTTPToolSourceRequest, Cerca::Models::ToolCreateParams::Body::CreateMcpToolSourceRequest)] end |