runToolInputGuardrails
このコンテンツはまだ日本語訳がありません。
function runToolInputGuardrails<TContext, TAgent>(__namedParameters): Promise< | { type: "allow";} | { message: string; type: "reject";}>;Type Parameters
Section titled “Type Parameters”| Type Parameter |
|---|
|
|
|
|
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
|
|
{ |
‐ |
|
|
|
‐ |
|
|
|
‐ |
|
|
|
‐ |
|
|
( |
‐ |
|
|
{ |
‐ |
|
|
|
The arguments of the function call. |
|
|
|
The ID of the tool call. Required to match up the respective tool call result. |
|
|
|
An ID to identify the item. This is optional by default. If a model provider absolutely requires this field, it will be validated on the model level. |
|
|
|
The name of the function. |
|
|
|
Additional optional provider specific data. Used for custom functionality or model provider specific fields. |
|
|
|
The status of the function call. |
|
|
|
‐ |
Returns
Section titled “Returns”Promise<
| {
type: "allow";
}
| {
message: string;
type: "reject";
}>