RaiInvocationModeration interface

宣告請求/回應文字所在位置,以便內容安全欄杆能擷取。

屬性

input_content_type

REQUEST 主體是如何解析的。 若省略,服務預設為 json。

input_paths

REQUEST 主體中使用者文字的路徑。 當input_content_type為 json時必須 。

output_content_type

回應體是如何解析的。 若省略,服務預設為 json。

output_paths

NON-STREAMING 回應體中代理文字的路徑。 當response_mode non_streaming/兩者同時且output_content_type 時 json,必須 。

response_mode

作者宣告的回應形狀;驅動哪些輸出閘執行及哪些欄位是必需的。

stream_selectors

每個事件類型一個 SSE 事件欄位>選擇器,攜帶文字。 當response_mode同時串流/兩者同時進行時,output_content_type json是必須的。

屬性詳細資料

input_content_type

REQUEST 主體是如何解析的。 若省略,服務預設為 json。

input_content_type?: RaiInvocationContentType

屬性值

input_paths

REQUEST 主體中使用者文字的路徑。 當input_content_type為 json時必須 。

input_paths?: string[]

屬性值

string[]

output_content_type

回應體是如何解析的。 若省略,服務預設為 json。

output_content_type?: RaiInvocationContentType

屬性值

output_paths

NON-STREAMING 回應體中代理文字的路徑。 當response_mode non_streaming/兩者同時且output_content_type 時 json,必須 。

output_paths?: string[]

屬性值

string[]

response_mode

作者宣告的回應形狀;驅動哪些輸出閘執行及哪些欄位是必需的。

response_mode: RaiInvocationMode

屬性值

stream_selectors

每個事件類型一個 SSE 事件欄位>選擇器,攜帶文字。 當response_mode同時串流/兩者同時進行時,output_content_type json是必須的。

stream_selectors?: RaiSseTextSelector[]

屬性值