> ## Documentation Index
> Fetch the complete documentation index at: https://phaseo.app/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# 応答

> C# SDKでResponses APIを呼び出します。

**メソッド**: `client.generate_response(...)`、`client.create_response(...)`。

### 例

```ruby theme={null}
require 'phaseo_sdk'

client = PhaseoSdk::Phaseo.new(api_key: ENV.fetch("PHASEO_API_KEY"))

resp = client.create_response(
  "model" => "openai/gpt-4.1",
  "input" => [{ "role" => "user", "content" => [{ "type" => "input_text", "text" => "Summarise this text" }] }],
  "temperature" => 0.7
)
```

### 主なパラメーター

* `model`（必須）：対象モデルのID。
* `input`（必須）：メッセージやツール呼び出しなど、順序付きの入力項目の配列。
* `temperature`（0～2）：値が高いほどランダム性が増します。
* `top_p`（0～1）/ `top_k`（>=1）：nucleus/k-bestサンプリングの制御。
* `max_output_tokens`（整数）：レスポンスごとの生成トークン数の上限。各メッセージ項目には`max_output_tokens_per_message`を使います。
* ツール：`tools`（定義）、`tool_choice`（自動/なし/指定）、`max_tool_calls`（整数）、`parallel_tool_calls`（真偽値）。
* 対数確率：`logprobs`（真偽値）、`top_logprobs`（0～20）。トークンごとの対数確率を返します。
* 出力：`response_format`（json/text）、`service_tier`、`store`（真偽値）、`stream`（真偽値）。
* メタデータ：`metadata`（そのまま渡されるオブジェクト）、`reasoning`（推論の強さを指定するオブジェクト）。
* ゲートウェイ追加項目：`usage`（使用量を要求する真偽値）、`meta`（metaブロックを含める真偽値）。

### 戻り値

`ResponsesResponse`


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.