ドキュメント
エージェントフロー
インテグレーション
テキスト埋め込み
トークン化
モデル情報
エージェントフロー
インテグレーション
テキスト埋め込み
トークン化
モデル情報
インテグレーション
新規フィールドの定義
プラグインサポートは現在プライベートベータ版です。こちらからベータ版に参加してください。
以下のフィールドタイプをサポートしています。
string: テキスト入力フィールド。
// ... other fields ...
.field(
"stringField", // The key of the field.
"string", // Type of the field.
{
displayName: "A string field",
subtitle: "Subtitle", // Optional subtitle for the field. (Show below the field)
hint: "Hint", // Optional hint for the field. (Show on hover)
isParagraph: false, // Whether to show a large text input area for this field.
isProtected: false, // Whether the value should be obscured in the UI (e.g., for passwords).
placeholder: "Placeholder text", // Optional placeholder text for the field.
},
"default value", // Default Value
)
// ... other fields ...
numeric: オプションの検証とスライダーUIを備えた数値入力フィールド。
// ... other fields ...
.field(
"numberField", // The key of the field.
"numeric", // Type of the field.
{
displayName: "A number field",
subtitle: "Subtitle for", // Optional subtitle for the field. (Show below the field)
hint: "Hint for number field", // Optional hint for the field. (Show on hover)
int: false, // Whether the field should accept only integer values.
min: 0, // Minimum value for the field.
max: 100, // Maximum value for the field.
slider: {
// If present, configurations for the slider UI
min: 0, // Minimum value for the slider.
max: 100, // Maximum value for the slider.
step: 1, // Step value for the slider.
},
},
42, // Default Value
)
// ... other fields ...
boolean: チェックボックスまたはトグル入力フィールド。
// ... other fields ...
.field(
"booleanField", // The key of the field.
"boolean", // Type of the field.
{
displayName: "A boolean field",
subtitle: "Subtitle", // Optional subtitle for the field. (Show below the field)
hint: "Hint", // Optional hint for the field. (Show on hover)
},
true, // Default Value
)
// ... other fields ...
stringArray: 設定可能な制約を持つ文字列値の配列。
// ... other fields ...
.field(
"stringArrayField",
"stringArray",
{
displayName: "A string array field",
subtitle: "Subtitle", // Optional subtitle for the field. (Show below the field)
hint: "Hint", // Optional hint for the field. (Show on hover)
allowEmptyStrings: true, // Whether to allow empty strings in the array.
maxNumItems: 5, // Maximum number of items in the array.
},
["default", "values"], // Default Value
)
// ... other fields ...
select: 事前定義されたオプションを持つドロップダウン選択フィールド。
// ... other fields ...
.field(
"selectField",
"select",
{
displayName: "A select field",
options: [
{ value: "option1", displayName: "Option 1" },
{ value: "option2", displayName: "Option 2" },
{ value: "option3", displayName: "Option 3" },
],
subtitle: "Subtitle", // Optional subtitle for the field. (Show below the field)
hint: "Hint", // Optional hint for the field. (Show on hover)
},
"option1", // Default Value
)
// ... other fields ...
このページのソースは GitHub で入手できます。