Class: RunApi::GeminiOmni::Resources::CreateCharacter
- Inherits:
-
Object
- Object
- RunApi::GeminiOmni::Resources::CreateCharacter
- Includes:
- Core::ResourceHelpers
- Defined in:
- lib/runapi/gemini_omni/resources/create_character.rb
Constant Summary collapse
- ENDPOINT =
"/api/v1/gemini_omni/create_character"- RESPONSE_CLASS =
Types::CreateCharacterResponse
- DESCRIPTIONS_MAX_LENGTH =
20_000- CHARACTER_NAME_MAX_LENGTH =
210- IMAGE_URLS_MAX =
1
Instance Method Summary collapse
-
#initialize(http) ⇒ CreateCharacter
constructor
A new instance of CreateCharacter.
- #run(**params) ⇒ Object
Constructor Details
#initialize(http) ⇒ CreateCharacter
Returns a new instance of CreateCharacter.
15 16 17 |
# File 'lib/runapi/gemini_omni/resources/create_character.rb', line 15 def initialize(http) @http = http end |
Instance Method Details
#run(**params) ⇒ Object
19 20 21 22 23 |
# File 'lib/runapi/gemini_omni/resources/create_character.rb', line 19 def run(**params) params = compact_params(params) validate_params!(params) request(:post, ENDPOINT, body: params) end |