#include <GenerativeAI.h>
◆ Model() [1/2]
| GenerativeAI::Model::Model |
( |
| ) |
|
|
inline |
◆ Model() [2/2]
| GenerativeAI::Model::Model |
( |
ProviderID |
provider, |
|
|
const std::string & |
model_uri |
|
) |
| |
AIプロバイダとモデルURIからModelオブジェクトを構築する。
- Parameters
-
| provider | AIプロバイダID。 |
| model_uri | モデルのURI文字列。 |
◆ api_compatibility()
| ProviderID GenerativeAI::Model::api_compatibility |
( |
| ) |
const |
|
inline |
◆ default_model()
| std::string GenerativeAI::Model::default_model |
( |
| ) |
|
|
static |
既定のAIモデル名を返す。
- Returns
- デフォルトモデル名の文字列。
◆ env_name()
| std::string GenerativeAI::Model::env_name |
( |
| ) |
const |
|
inline |
◆ from_name()
| Model GenerativeAI::Model::from_name |
( |
std::string const & |
name | ) |
|
|
static |
モデル名の文字列パターンからModelオブジェクトを生成する。
- Parameters
-
- Returns
- 対応するAIプロバイダに紐付いたModelオブジェクト。パターン不一致の場合は空のModelを返す。
◆ host()
| std::string GenerativeAI::Model::host |
( |
| ) |
const |
|
inline |
◆ model_name()
| std::string GenerativeAI::Model::model_name |
( |
| ) |
const |
|
inline |
◆ model_uri()
| ModelURI GenerativeAI::Model::model_uri |
( |
| ) |
const |
|
inline |
◆ operator bool()
| GenerativeAI::Model::operator bool |
( |
| ) |
const |
|
inlineexplicit |
◆ operator=()
| void GenerativeAI::Model::operator= |
( |
std::string const & |
| ) |
|
|
delete |
◆ parse_model()
| void GenerativeAI::Model::parse_model |
( |
std::string const & |
model_uri | ) |
|
モデル名またはURIを解析し、ホスト・ポート・モデル名を設定する。
- Parameters
-
| model_uri | 解析対象のモデル名またはURI文字列。 |
◆ port()
| int GenerativeAI::Model::port |
( |
| ) |
const |
|
inline |
◆ provider_id()
| ProviderID GenerativeAI::Model::provider_id |
( |
| ) |
const |
|
inline |
◆ reasoning_effort()
| char const* GenerativeAI::Model::reasoning_effort |
( |
| ) |
const |
|
inline |
◆ api_compatibility__
◆ host_
| std::string GenerativeAI::Model::host_ |
◆ model_name_
| std::string GenerativeAI::Model::model_name_ |
◆ model_uri_
| ModelURI GenerativeAI::Model::model_uri_ |
◆ port_
| int GenerativeAI::Model::port_ = 80 |
◆ provider_info_
The documentation for this struct was generated from the following files: