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

# コンテキスト属性

> リアルタイムデータを活用した、より効果的なトリートメント配信

<Note>
  日本語版はAIによる翻訳です。正確な情報については[英語版](/deploying-auxia/deploying-with-auxia-api/contextual-attributes)をご参照ください。
</Note>

Auxiaの意思決定システムは、リアルタイムデータを使用することで最高のパフォーマンスを発揮します。

GetTreatmentsリクエスト内のコンテキスト属性は、ユーザーの直近の行動に関する現在のコンテキストを各リクエストに付加する方法を提供します。この情報は、モデルのトレーニングとスコアリング時に使用され、より多くのコンテキストとより適切なトリートメントのレコメンデーションを提供します。

### 例

マーケットプレイスのユースケースを例に取り、商品一覧ページにトリートメントを表示する場合を考えてみましょう。

このユースケースにおける重要なコンテキスト属性の一つは、ユーザーが現在閲覧している商品に関する情報（商品カテゴリなど）です。リアルタイムでより適切なトリートメントを配信するために、この情報をリクエストに含めることを推奨します。

<table>
  <thead>
    <tr>
      <th />

      <th>Field</th>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>key</td>
      <td>string</td>
      <td>ユーザー属性の識別子</td>
    </tr>

    <tr>
      <td rowspan="8">oneof</td>
      <td>stringValue</td>
      <td>string</td>
      <td>文字列型の値。</td>
    </tr>

    <tr>
      <td>integerValue</td>
      <td>int64</td>
      <td>整数型の値。</td>
    </tr>

    <tr>
      <td>doubleValue</td>
      <td>double</td>
      <td>倍精度浮動小数点型の値。</td>
    </tr>

    <tr>
      <td>booleanValue</td>
      <td>bool</td>
      <td>ブール型の値。</td>
    </tr>

    <tr>
      <td>boolValue</td>
      <td>bool</td>
      <td>ブール型の値。</td>
    </tr>

    <tr>
      <td>timestampValue</td>
      <td>string</td>

      <td>
        タイムスタンプのフォーマットはISO形式に準拠する必要があります。
        <a href="https://github.com/protocolbuffers/protobuf/blob/main/src/google/protobuf/timestamp.proto#L108" target="_blank">[https://github.com/protocolbuffers/protobuf/blob/main/src/google/protobuf/timestamp.proto#L108](https://github.com/protocolbuffers/protobuf/blob/main/src/google/protobuf/timestamp.proto#L108)</a>
        例えば、「2017-01-15T01:30:15.01Z」は2017年1月15日UTC 01:30から15.01秒後を表します。
      </td>
    </tr>

    <tr>
      <td>timestampMicrosValue</td>
      <td>int64</td>
      <td>エポックマイクロ秒単位のタイムスタンプ値。</td>
    </tr>
  </tbody>
</table>
