pub struct StateBatchRequest {
pub model: Option<String>,
pub state: Value,
pub questions: IndexMap<String, Question>,
pub gating: Option<GatingConfig>,
pub auto_hierarchical: Option<bool>,
pub state_hash: Option<String>,
}Expand description
単一 State に対する一括バッチ質問リクエストペイロード (POST /v1/systemone/state-batch)。
Fields§
§model: Option<String>使用するローカルモデル識別子 (任意)。
state: Value判断の材料となる単一の長文コンテキストデータ。
questions: IndexMap<String, Question>評価対象となる複数質問群のマップ (キーは質問識別子)。
gating: Option<GatingConfig>確信度ゲーティング処理の設定パラメータ (任意)。
auto_hierarchical: Option<bool>候補数 $K > 16$ の Choice 質問に対する透過的粗密階層ルーティングの制御フラグ (任意)。
state_hash: Option<String>クライアント側事前計算または以前取得した State キャッシュキー (任意)。
Implementations§
Source§impl StateBatchRequest
impl StateBatchRequest
Sourcepub fn new(
state: impl Into<Value>,
questions: IndexMap<String, Question>,
) -> Self
pub fn new( state: impl Into<Value>, questions: IndexMap<String, Question>, ) -> Self
新規バッチリクエストを作成する。
Sourcepub fn with_state_hash(self, state_hash: impl Into<String>) -> Self
pub fn with_state_hash(self, state_hash: impl Into<String>) -> Self
State キャッシュキーを指定してバッチリクエストを作成する。
Sourcepub fn with_model(self, model: impl Into<String>) -> Self
pub fn with_model(self, model: impl Into<String>) -> Self
モデル名を指定してバッチリクエストを作成する。
Sourcepub fn with_gating(self, gating: GatingConfig) -> Self
pub fn with_gating(self, gating: GatingConfig) -> Self
ゲーティング設定を指定してバッチリクエストを作成する。
Sourcepub fn with_auto_hierarchical(self, auto_hierarchical: bool) -> Self
pub fn with_auto_hierarchical(self, auto_hierarchical: bool) -> Self
粗密階層ルーティング制御フラグを指定してバッチリクエストを作成する。
Trait Implementations§
Source§impl Clone for StateBatchRequest
impl Clone for StateBatchRequest
Source§fn clone(&self) -> StateBatchRequest
fn clone(&self) -> StateBatchRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl ComposeSchema for StateBatchRequest
impl ComposeSchema for StateBatchRequest
Source§impl Debug for StateBatchRequest
impl Debug for StateBatchRequest
Source§impl<'de> Deserialize<'de> for StateBatchRequest
impl<'de> Deserialize<'de> for StateBatchRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for StateBatchRequest
impl PartialEq for StateBatchRequest
Source§impl Serialize for StateBatchRequest
impl Serialize for StateBatchRequest
impl StructuralPartialEq for StateBatchRequest
Auto Trait Implementations§
impl Freeze for StateBatchRequest
impl RefUnwindSafe for StateBatchRequest
impl Send for StateBatchRequest
impl Sync for StateBatchRequest
impl Unpin for StateBatchRequest
impl UnsafeUnpin for StateBatchRequest
impl UnwindSafe for StateBatchRequest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more