pub struct SystemOneRequest {
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
Jev 互換 POST /v1/systemone リクエストペイロード。
Fields§
§model: Option<String>使用するローカルモデル識別子(任意)。
state: Value判断の材料となる非構造化コンテキストデータ(文字列、オブジェクト、配列など)。
§備考
サーバー側の前処理ガードレールパイプライン通過後は、推論バックボーンへ供給するために
常に自然言語文字列 (Value::String) として標準化および注釈付加が行われる。
questions: IndexMap<String, Question>評価対象となる質問群のマップ(キーは質問識別子)。
gating: Option<GatingConfig>確信度ゲーティング処理の設定パラメータ(任意)。
auto_hierarchical: Option<bool>候補数 K > 16 の Choice 質問に対する透過的粗密階層ルーティングの制御フラグ (任意)。
state_hash: Option<String>State 中間特徴量キャッシュのキー識別子 (xxHash3 16進文字列、任意)。
Implementations§
Source§impl SystemOneRequest
impl SystemOneRequest
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_model(
model: impl Into<String>,
state: impl Into<Value>,
questions: IndexMap<String, Question>,
) -> Self
pub fn with_model( model: impl Into<String>, state: impl Into<Value>, questions: IndexMap<String, Question>, ) -> Self
モデル名を指定してリクエストを作成する。
Sourcepub fn with_auto_hierarchical(self, auto_hierarchical: bool) -> Self
pub fn with_auto_hierarchical(self, auto_hierarchical: bool) -> Self
透過的粗密階層ルーティングの有効/無効を指定してリクエストを作成する。
Sourcepub fn with_gating(self, gating: GatingConfig) -> Self
pub fn with_gating(self, gating: GatingConfig) -> 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 キャッシュキーを指定してリクエストを作成する。
Trait Implementations§
Source§impl Clone for SystemOneRequest
impl Clone for SystemOneRequest
Source§fn clone(&self) -> SystemOneRequest
fn clone(&self) -> SystemOneRequest
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 SystemOneRequest
impl ComposeSchema for SystemOneRequest
Source§impl Debug for SystemOneRequest
impl Debug for SystemOneRequest
Source§impl<'de> Deserialize<'de> for SystemOneRequest
impl<'de> Deserialize<'de> for SystemOneRequest
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 SystemOneRequest
impl PartialEq for SystemOneRequest
Source§impl Serialize for SystemOneRequest
impl Serialize for SystemOneRequest
impl StructuralPartialEq for SystemOneRequest
Auto Trait Implementations§
impl Freeze for SystemOneRequest
impl RefUnwindSafe for SystemOneRequest
impl Send for SystemOneRequest
impl Sync for SystemOneRequest
impl Unpin for SystemOneRequest
impl UnsafeUnpin for SystemOneRequest
impl UnwindSafe for SystemOneRequest
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