Class: Aws::BedrockRuntime::Types::CountTokensInput
- Inherits:
-
Struct
- Object
- Struct
- Aws::BedrockRuntime::Types::CountTokensInput
- Includes:
- Structure, Structure::Union
- Defined in:
- lib/aws-sdk-bedrockruntime/types.rb
Overview
CountTokensInput is a union - when making an API calls you must set exactly one of the members.
The input value for token counting. The value should be either an ‘InvokeModel` or `Converse` request body.
Direct Known Subclasses
Defined Under Namespace
Classes: Converse, InvokeModel, Unknown
Constant Summary collapse
- SENSITIVE =
[]
Instance Attribute Summary collapse
-
#converse ⇒ Types::ConverseTokensRequest
A ‘Converse` request for which to count tokens.
-
#invoke_model ⇒ Types::InvokeModelTokensRequest
An ‘InvokeModel` request for which to count tokens.
-
#unknown ⇒ Object
Returns the value of attribute unknown.
Instance Attribute Details
#converse ⇒ Types::ConverseTokensRequest
A ‘Converse` request for which to count tokens. Use this field when you want to count tokens for a conversation-based input that would be sent to the `Converse` operation.
1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 |
# File 'lib/aws-sdk-bedrockruntime/types.rb', line 1331 class CountTokensInput < Struct.new( :invoke_model, :converse, :unknown) SENSITIVE = [] include Aws::Structure include Aws::Structure::Union class InvokeModel < CountTokensInput; end class Converse < CountTokensInput; end class Unknown < CountTokensInput; end end |
#invoke_model ⇒ Types::InvokeModelTokensRequest
An ‘InvokeModel` request for which to count tokens. Use this field when you want to count tokens for a raw text input that would be sent to the `InvokeModel` operation.
1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 |
# File 'lib/aws-sdk-bedrockruntime/types.rb', line 1331 class CountTokensInput < Struct.new( :invoke_model, :converse, :unknown) SENSITIVE = [] include Aws::Structure include Aws::Structure::Union class InvokeModel < CountTokensInput; end class Converse < CountTokensInput; end class Unknown < CountTokensInput; end end |
#unknown ⇒ Object
Returns the value of attribute unknown
1331 1332 1333 |
# File 'lib/aws-sdk-bedrockruntime/types.rb', line 1331 def unknown @unknown end |