pub struct StateBatchResponse {
pub answers: IndexMap<String, Answer>,
pub usage: Usage,
pub routing: Option<SystemRoutingSummary>,
pub cache_hit: bool,
pub state_hash: Option<String>,
}Expand description
単一 State に対する一括バッチ質問レスポンスペイロード (POST /v1/systemone/state-batch)。
Fields§
§answers: IndexMap<String, Answer>各 question_id に対応する判定結果マップ。
usage: Usageトークン使用統計情報。
routing: Option<SystemRoutingSummary>リクエスト全体の集約ルーティングサマリー (任意)。
cache_hit: boolState 特徴量キャッシュがヒットしたかどうかのフラグ。
state_hash: Option<String>処理対象となった State のキャッシュハッシュ値 (16進文字列、任意)。
Implementations§
Source§impl StateBatchResponse
impl StateBatchResponse
Sourcepub fn new(
answers: IndexMap<String, Answer>,
usage: Usage,
cache_hit: bool,
) -> Self
pub fn new( answers: IndexMap<String, Answer>, usage: Usage, cache_hit: bool, ) -> Self
新規バッチレスポンスを生成する。
Sourcepub fn with_routing(self, routing: SystemRoutingSummary) -> Self
pub fn with_routing(self, routing: SystemRoutingSummary) -> 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 StateBatchResponse
impl Clone for StateBatchResponse
Source§fn clone(&self) -> StateBatchResponse
fn clone(&self) -> StateBatchResponse
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 StateBatchResponse
impl ComposeSchema for StateBatchResponse
Source§impl Debug for StateBatchResponse
impl Debug for StateBatchResponse
Source§impl<'de> Deserialize<'de> for StateBatchResponse
impl<'de> Deserialize<'de> for StateBatchResponse
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 StateBatchResponse
impl PartialEq for StateBatchResponse
Source§impl Serialize for StateBatchResponse
impl Serialize for StateBatchResponse
impl StructuralPartialEq for StateBatchResponse
Auto Trait Implementations§
impl Freeze for StateBatchResponse
impl RefUnwindSafe for StateBatchResponse
impl Send for StateBatchResponse
impl Sync for StateBatchResponse
impl Unpin for StateBatchResponse
impl UnsafeUnpin for StateBatchResponse
impl UnwindSafe for StateBatchResponse
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