API 概要
class ActionsExecuteBatchReq
Pydantic のフィールド:
project_id:<class 'str'>action_ref:<class 'str'>call_ids:list[str]wb_user_id:str | None
class ActionsExecuteBatchRes
class AggregationType
feedback と call stats のメトリクスで使用できる集約関数。
class AliasesListReq
Pydantic のフィールド:
project_id:<class 'str'>wb_user_id:str | None
class AliasesListRes
Pydantic のフィールド:
aliases:list[str]
class AnnotationQueueAddCallsReq
アノテーションキューに call を一括で追加するためのリクエスト。
内部 API 用の queue_id を追加した AnnotationQueueAddCallsBody の拡張です。
Pydantic のフィールド:
project_id:<class 'str'>call_ids:list[str]display_fields:list[str]queue_id:<class 'str'>wb_user_id:str | None
class AnnotationQueueAddCallsRes
キューに call を追加した際のレスポンス。
Pydantic のフィールド:
added_count:<class 'int'>duplicates:<class 'int'>
class AnnotationQueueCreateReq
新しいアノテーションキューを作成するためのリクエスト。
Pydantic のフィールド:
project_id:<class 'str'>name:<class 'str'>description:<class 'str'>scorer_refs:list[str]wb_user_id:str | None
class AnnotationQueueCreateRes
アノテーションキューの作成時のレスポンス。
Pydantic のフィールド:
id:<class 'str'>
class AnnotationQueueDeleteReq
アノテーションキューを削除 (ソフトデリート) するためのリクエスト。
Pydantic のフィールド:
project_id:<class 'str'>queue_id:<class 'str'>wb_user_id:str | None
class AnnotationQueueDeleteRes
アノテーションキューの削除レスポンス。
Pydantic のフィールド:
queue:<class 'AnnotationQueueSchema'>
class AnnotationQueueItemSchema
アノテーションキュー 項目 レスポンス用のスキーマ。
Pydantic のフィールド:
id:<class 'str'>project_id:<class 'str'>queue_id:<class 'str'>call_id:<class 'str'>call_started_at:<class 'datetime.datetime'>call_ended_at:datetime.datetime | Nonecall_op_name:<class 'str'>call_trace_id:<class 'str'>display_fields:list[str]added_by:str | Noneannotation_state:typing.Literal['unstarted', 'in_progress', 'completed', 'skipped']annotator_user_id:str | Nonecreated_at:<class 'datetime.datetime'>created_by:<class 'str'>updated_at:<class 'datetime.datetime'>deleted_at:datetime.datetime | Noneposition_in_queue:int | None
class AnnotationQueueItemsQueryReq
アノテーションキュー内の項目をクエリするリクエスト。
内部 API 用に queue_id を追加して、AnnotationQueueItemsQueryBody を拡張したものです。
Pydantic のフィールド:
project_id:<class 'str'>filter:weave.trace_server.common_interface.AnnotationQueueItemsFilter | Nonesort_by:list[weave.trace_server.common_interface.SortBy] | Nonelimit:int | Noneoffset:int | Noneinclude_position:<class 'bool'>queue_id:<class 'str'>
class AnnotationQueueItemsQueryRes
アノテーションキュー項目をクエリした際のレスポンス。
Pydantic のフィールド:
items:list[AnnotationQueueItemSchema]
class AnnotationQueueReadReq
特定のアノテーションキューを読み取るリクエスト。
Pydantic のフィールド:
project_id:<class 'str'>queue_id:<class 'str'>
class AnnotationQueueReadRes
アノテーションキューの読み取りレスポンス。
Pydantic のフィールド:
queue:<class 'AnnotationQueueSchema'>
class AnnotationQueueSchema
アノテーションキュー レスポンスのスキーマ。
Pydantic のフィールド:
id:<class 'str'>project_id:<class 'str'>name:<class 'str'>description:<class 'str'>scorer_refs:list[str]created_at:<class 'datetime.datetime'>created_by:<class 'str'>updated_at:<class 'datetime.datetime'>deleted_at:datetime.datetime | None
class AnnotationQueueStatsSchema
単一のアノテーションキューの統計情報。
Pydantic のフィールド:
queue_id:<class 'str'>total_items:<class 'int'>completed_items:<class 'int'>
class AnnotationQueueUpdateReq
アノテーションキューを更新するリクエストです。
project_id と queue_id を除くすべてのフィールドはオプションです。指定したフィールドのみ更新されます。
Pydantic のフィールド:
project_id:<class 'str'>queue_id:<class 'str'>name:str | Nonedescription:str | Nonescorer_refs:list[str] | Nonewb_user_id:str | None
class AnnotationQueueUpdateRes
アノテーションキューの更新レスポンス。
Pydantic のフィールド:
queue:<class 'AnnotationQueueSchema'>
class AnnotationQueuesQueryReq
プロジェクトのアノテーションキューをクエリするためのリクエスト。
Pydantic のフィールド:
project_id:<class 'str'>name:str | Nonesort_by:list[weave.trace_server.common_interface.SortBy] | Nonelimit:int | Noneoffset:int | None
class AnnotationQueuesQueryRes
アノテーションキューをクエリした際のレスポンス。
Pydantic のフィールド:
queues:list[AnnotationQueueSchema]
class AnnotationQueuesStatsReq
複数のアノテーションキューの統計情報を取得するリクエスト。
Pydantic のフィールド:
project_id:<class 'str'>queue_ids:list[str]
class AnnotationQueuesStatsRes
複数のアノテーションキューの統計情報を含むレスポンス。
Pydantic のフィールド:
stats:list[AnnotationQueueStatsSchema]
class AnnotatorQueueItemsProgressUpdateReq
現在のアノテーターによる、キュー項目のアノテーション状態を更新するためのリクエスト。
有効な状態遷移:
- (absence) -> ‘in_progress’: 項目を進行中としてマークします (レコードが存在しない場合のみ)
- (absence) -> ‘completed’ or ‘skipped’: 項目を直接完了またはスキップします
- ‘in_progress’ or ‘unstarted’ -> ‘completed’ or ‘skipped’: 開始済みの項目を完了またはスキップします
- same_state -> same_state: 冪等な no-op (既存の項目を変更せずに返します)
project_id:<class 'str'>queue_id:<class 'str'>item_id:<class 'str'>annotation_state:<class 'str'>wb_user_id:str | None
class AnnotatorQueueItemsProgressUpdateRes
アノテーション状態を更新した際のレスポンス。
Pydantic のフィールド:
item:<class 'AnnotationQueueItemSchema'>
class CallBatchEndMode
Pydantic のフィールド:
mode:<class 'str'>req:<class 'CallEndReq'>
class CallBatchStartMode
Pydantic のフィールド:
mode:<class 'str'>req:<class 'CallStartReq'>
class CallCreateBatchReq
Pydantic のフィールド:
batch:list[CallBatchStartMode | CallBatchEndMode]
class CallCreateBatchRes
Pydantic のフィールド:
res:list[CallStartRes | CallEndRes]
class CallEndReq
Pydantic のフィールド:
end:<class 'EndedCallSchemaForInsert'>
class CallEndRes
class CallEndV2Req
v2 API 経由で単一の call を終了するためのリクエスト。
Pydantic のフィールド:
end:<class 'EndedCallSchemaForInsertWithStartedAt'>
class CallEndV2Res
v2 API を介して単一の Call を終了する際のレスポンス。
class CallMetricSpec
集約する Call レベルのメトリクスの仕様です (モデルごとにはグループ化しません) 。
Pydantic のフィールド:
metric:typing.Literal['latency_ms', 'call_count', 'error_count']aggregations:list[AggregationType]percentiles:list[float]
class CallReadReq
Pydantic のフィールド:
project_id:<class 'str'>id:<class 'str'>include_costs:bool | Noneinclude_storage_size:bool | Noneinclude_total_storage_size:bool | None
class CallReadRes
Pydantic のフィールド:
call:CallSchema | None
class CallSchema
Pydantic のフィールド:
id:<class 'str'>project_id:<class 'str'>op_name:<class 'str'>display_name:str | Nonetrace_id:<class 'str'>parent_id:str | Nonethread_id:str | Noneturn_id:str | Nonestarted_at:<class 'datetime.datetime'>attributes:dict[str, typing.Any]inputs:dict[str, typing.Any]ended_at:datetime.datetime | Noneexception:str | Noneoutput:typing.Any | Nonesummary:SummaryMap | Nonewb_user_id:str | Nonewb_run_id:str | Nonewb_run_step:int | Nonewb_run_step_end:int | Nonedeleted_at:datetime.datetime | Nonestorage_size_bytes:int | Nonetotal_storage_size_bytes:int | None
method serialize_typed_dicts
class CallStartReq
Pydantic のフィールド:
start:<class 'StartedCallSchemaForInsert'>
class CallStartRes
Pydantic のフィールド:
id:<class 'str'>trace_id:<class 'str'>
class CallStartV2Req
v2 API 経由で単一の Call を開始するためのリクエスト。
Pydantic のフィールド:
start:<class 'StartedCallSchemaForInsert'>
class CallStartV2Res
v2 API を介して単一の Call を開始する際のレスポンス。
Pydantic のフィールド:
id:<class 'str'>trace_id:<class 'str'>
class CallStatsReq
一定期間の集計済み Call 統計のリクエストです。
Pydantic のフィールド:
project_id:<class 'str'>start:<class 'datetime.datetime'>end:datetime.datetime | Nonegranularity:int | Noneusage_metrics:list[UsageMetricSpec] | Nonecall_metrics:list[CallMetricSpec] | Nonefilter:CallsFilter | Nonetimezone:<class 'str'>
method validate_date_range
class CallStatsRes
時系列の Call 統計を含むレスポンス。
Pydantic のフィールド:
start:<class 'datetime.datetime'>end:<class 'datetime.datetime'>granularity:<class 'int'>timezone:<class 'str'>usage_buckets:list[dict[str, typing.Any]]call_buckets:list[dict[str, typing.Any]]
class CallUpdateReq
Pydantic のフィールド:
project_id:<class 'str'>call_id:<class 'str'>display_name:str | Nonewb_user_id:str | None
class CallUpdateRes
class CallsDeleteReq
Pydantic のフィールド:
project_id:<class 'str'>call_ids:list[str]wb_user_id:str | None
class CallsDeleteRes
Pydantic のフィールド:
num_deleted:<class 'int'>
class CallsFilter
Pydantic のフィールド:
op_names:list[str] | Noneinput_refs:list[str] | Noneoutput_refs:list[str] | Noneparent_ids:list[str] | Nonetrace_ids:list[str] | Nonecall_ids:list[str] | Nonethread_ids:list[str] | Noneturn_ids:list[str] | Nonetrace_roots_only:bool | Nonewb_user_ids:list[str] | Nonewb_run_ids:list[str] | None
class CallsQueryReq
Pydantic のフィールド:
project_id:<class 'str'>filter:CallsFilter | Nonelimit:int | Noneoffset:int | Nonesort_by:list[weave.trace_server.common_interface.SortBy] | Nonequery:weave.trace_server.interface.query.Query | Noneinclude_costs:bool | Noneinclude_feedback:bool | Noneinclude_storage_size:bool | Noneinclude_total_storage_size:bool | Nonecolumns:list[str] | Noneexpand_columns:list[str] | Nonereturn_expanded_column_values:bool | None
class CallsQueryRes
Pydantic のフィールド:
calls:list[CallSchema]
class CallsQueryStatsReq
Pydantic のフィールド:
project_id:<class 'str'>filter:CallsFilter | Nonequery:weave.trace_server.interface.query.Query | Nonelimit:int | Noneinclude_total_storage_size:bool | Noneexpand_columns:list[str] | None
class CallsQueryStatsRes
Pydantic のフィールド:
count:<class 'int'>total_storage_size_bytes:int | None
class CallsScoreReq
Call のリストに対するスコアリングジョブをキューに追加するためのリクエスト。
スコアリングは call_scoring_worker によって非同期に実行されます。call_scoring_worker は Kafka からメッセージを消費し、各 call_id に各 scorer_ref を適用します。
Pydantic のフィールド:
project_id:<class 'str'>call_ids:list[str]scorer_refs:list[str]wb_user_id:str | None
class CallsScoreRes
calls_score に対する空のレスポンスです。
このインターフェース全体で使用されている規約に従い、また後から破壊的変更を伴わずにフィールドを追加できるようにするため、None を返すのではなくモデルとして定義されています。
class CallsUpsertCompleteReq
完了した Call のバッチをアップサートするための Request です。
Pydantic のフィールド:
batch:list[CompletedCallSchemaForInsert]
class CallsUpsertCompleteRes
完了済みの Call のバッチを アップサートする 際のレスポンス。
class CallsUsageReq
複数のルート Call の集約使用量を計算するためのリクエストです。
このエンドポイントは、リクエストされた各ルート Call の使用量メトリクスを返します。各ルートのメトリクスには、そのルート自身の使用量に加えて、すべての子孫 Call の使用量の合計が含まれます。
注: 集約のために、一致するすべての Call がメモリに読み込まれます。結果セットが非常に大きい場合 (>10k Call) は、ルート Call ID をバッチ処理するか、アプリケーション層でより限定的なフィルターを使用することを検討してください。
Pydantic のフィールド:
project_id:<class 'str'>call_ids:list[str]include_costs:<class 'bool'>limit:<class 'int'>
class CallsUsageRes
各ルート Call の集約使用量メトリクスを含むレスポンス。
Pydantic のフィールド:
call_usage:dict[str, dict[str, LLMAggregatedUsage]]unfinished_call_ids:list[str]
class CompletedCallSchemaForInsert
完了済みの Call を直接挿入するためのスキーマです。
これは、挿入時点ですでに完了している Call を表します。開始情報と終了情報の両方をまとめて指定します。calls_complete endpoint で使用されます。
Pydantic のフィールド:
project_id:<class 'str'>id:<class 'str'>trace_id:<class 'str'>op_name:<class 'str'>started_at:<class 'datetime.datetime'>ended_at:<class 'datetime.datetime'>display_name:str | Noneparent_id:str | Nonethread_id:str | Noneturn_id:str | Noneattributes:dict[str, typing.Any]inputs:dict[str, typing.Any]output:typing.Any | Nonesummary:<class 'SummaryInsertMap'>otel_dump:dict[str, typing.Any] | Noneexception:str | Nonewb_user_id:str | Nonewb_run_id:str | Nonewb_run_step:int | Nonewb_run_step_end:int | None
method serialize_typed_dicts
class CompletionsCreateReq
Pydantic のフィールド:
project_id:<class 'str'>inputs:<class 'CompletionsCreateRequestInputs'>wb_user_id:str | Nonetrack_llm_call:bool | Nonetrace_id:str | Noneparent_id:str | None
class CompletionsCreateRequestInputs
Pydantic のフィールド:
model:<class 'str'>messages:<class 'list'>timeout:float | str | Nonetemperature:float | Nonetop_p:float | Nonen:int | Nonestop:str | list | Nonemax_completion_tokens:int | Nonemax_tokens:int | Nonemodalities:list | Nonepresence_penalty:float | Nonefrequency_penalty:float | Nonestream:bool | Nonelogit_bias:dict | Noneuser:str | Noneresponse_format:dict | type[pydantic.main.BaseModel] | Noneseed:int | Nonetools:list | Nonetool_choice:str | dict | Nonelogprobs:bool | Nonetop_logprobs:int | Noneparallel_tool_calls:bool | Noneextra_headers:dict | Nonefunctions:list | Nonefunction_call:str | Noneapi_version:str | Noneprompt:str | Nonetemplate_vars:dict[str, typing.Any] | Nonevertex_credentials:str | None
class CompletionsCreateRes
Pydantic のフィールド:
response:dict[str, typing.Any]weave_call_id:str | None
class CostCreateInput
Pydantic のフィールド:
prompt_token_cost:<class 'float'>completion_token_cost:<class 'float'>prompt_token_cost_unit:str | Nonecompletion_token_cost_unit:str | Noneeffective_date:datetime.datetime | Noneprovider_id:str | None
class CostCreateReq
Pydantic のフィールド:
project_id:<class 'str'>costs:dict[str, CostCreateInput]wb_user_id:str | None
class CostCreateRes
Pydantic のフィールド:
ids:list[tuple[str, str]]
class CostPurgeReq
Pydantic のフィールド:
project_id:<class 'str'>query:<class 'weave.trace_server.interface.query.Query'>
class CostPurgeRes
class CostQueryOutput
Pydantic のフィールド:
id:str | Nonellm_id:str | Noneprompt_token_cost:float | Nonecompletion_token_cost:float | Noneprompt_token_cost_unit:str | Nonecompletion_token_cost_unit:str | Noneeffective_date:datetime.datetime | Noneprovider_id:str | None
class CostQueryReq
Pydantic のフィールド:
project_id:<class 'str'>fields:list[str] | Nonequery:weave.trace_server.interface.query.Query | Nonesort_by:list[weave.trace_server.common_interface.SortBy] | Nonelimit:int | Noneoffset:int | None
class CostQueryRes
Pydantic のフィールド:
results:list[CostQueryOutput]
class DatasetCreateBody
Pydantic のフィールド:
name:str | Nonedescription:str | Nonerows:list[dict[str, typing.Any]]
class DatasetCreateReq
Pydantic のフィールド:
name:str | Nonedescription:str | Nonerows:list[dict[str, typing.Any]]project_id:<class 'str'>wb_user_id:str | None
class DatasetCreateRes
Pydantic のフィールド:
digest:<class 'str'>object_id:<class 'str'>version_index:<class 'int'>
class DatasetDeleteReq
Pydantic のフィールド:
project_id:<class 'str'>object_id:<class 'str'>digests:list[str] | Nonewb_user_id:str | None
class DatasetDeleteRes
Pydantic のフィールド:
num_deleted:<class 'int'>
class DatasetListReq
Pydantic のフィールド:
project_id:<class 'str'>limit:int | Noneoffset:int | Nonewb_user_id:str | None
class DatasetReadReq
Pydantic のフィールド:
project_id:<class 'str'>object_id:<class 'str'>digest:<class 'str'>wb_user_id:str | None
class DatasetReadRes
Pydantic のフィールド:
object_id:<class 'str'>digest:<class 'str'>version_index:<class 'int'>created_at:<class 'datetime.datetime'>name:<class 'str'>description:str | Nonerows:<class 'str'>
class EndedCallSchemaForInsert
Pydantic のフィールド:
project_id:<class 'str'>id:<class 'str'>ended_at:<class 'datetime.datetime'>exception:str | Noneoutput:typing.Any | Nonesummary:<class 'SummaryInsertMap'>wb_run_step_end:int | None
method serialize_typed_dicts
class EndedCallSchemaForInsertWithStartedAt
v2 の終了更新向けに、started_at を省略可能にした終了済み Call のスキーマです。
started_at が指定されると、主キー (project_id, started_at, id) を使用できるため、ClickHouse クエリをより効率的に実行できます。指定されない場合、クエリは (project_id, id) のみを使用する方式にフォールバックします。
Pydantic のフィールド:
project_id:<class 'str'>id:<class 'str'>ended_at:<class 'datetime.datetime'>exception:str | Noneoutput:typing.Any | Nonesummary:<class 'SummaryInsertMap'>wb_run_step_end:int | Nonestarted_at:datetime.datetime | None
method serialize_typed_dicts
class EvalResultsEvaluationSummary
Pydantic のフィールド:
evaluation_call_id:<class 'str'>trial_count:<class 'int'>scorer_stats:list[EvalResultsScorerStats]evaluation_ref:str | Nonemodel_ref:str | Nonedisplay_name:str | Nonetrace_id:str | Nonestarted_at:str | None
class EvalResultsQueryBody
Pydantic のフィールド:
evaluation_call_ids:list[str] | Noneevaluation_run_ids:list[str] | Nonerequire_intersection:<class 'bool'>include_raw_data_rows:<class 'bool'>resolve_row_refs:<class 'bool'>include_rows:<class 'bool'>include_summary:<class 'bool'>summary_require_intersection:bool | Nonelimit:int | Noneoffset:<class 'int'>
method validate_identifiers
class EvalResultsQueryReq
Pydantic のフィールド:
evaluation_call_ids:list[str] | Noneevaluation_run_ids:list[str] | Nonerequire_intersection:<class 'bool'>include_raw_data_rows:<class 'bool'>resolve_row_refs:<class 'bool'>include_rows:<class 'bool'>include_summary:<class 'bool'>summary_require_intersection:bool | Nonelimit:int | Noneoffset:<class 'int'>project_id:<class 'str'>
method validate_identifiers
class EvalResultsQueryRes
Pydantic のフィールド:
rows:list[EvalResultsRow]total_rows:<class 'int'>summary:ForwardRef('EvalResultsSummaryRes | None')warnings:list[str]
class EvalResultsRow
Pydantic のフィールド:
row_digest:<class 'str'>raw_data_row:typing.Any | Noneevaluations:list[EvalResultsRowEvaluation]
class EvalResultsRowEvaluation
Pydantic のフィールド:
evaluation_call_id:<class 'str'>trials:list[EvalResultsTrial]
class EvalResultsScorerStats
単一のフラット化されたスコア次元 (scorer_key または scorer_key.path.to.leaf) に関する統計です。
Pydantic のフィールド:
scorer_key:<class 'str'>path:str | Nonevalue_type:typing.Optional[typing.Literal['binary', 'continuous']]trial_count:<class 'int'>numeric_count:<class 'int'>numeric_mean:float | Nonepass_true_count:<class 'int'>pass_known_count:<class 'int'>pass_rate:float | Nonepass_signal_coverage:float | None
class EvalResultsSummaryRes
Pydantic のフィールド:
row_count:<class 'int'>evaluations:list[EvalResultsEvaluationSummary]
class EvalResultsTrial
Pydantic のフィールド:
predict_and_score_call_id:<class 'str'>predict_call_id:str | Nonemodel_output:typing.Any | Nonescores:dict[str, typing.Any]model_latency_seconds:float | Nonetotal_tokens:int | Nonescorer_call_ids:dict[str, str]
class EvaluateModelReq
Pydantic のフィールド:
project_id:<class 'str'>evaluation_ref:<class 'str'>model_ref:<class 'str'>wb_user_id:str | None
class EvaluateModelRes
Pydantic のフィールド:
call_id:<class 'str'>
class EvaluationCreateBody
Pydantic のフィールド:
name:<class 'str'>description:str | Nonedataset:<class 'str'>scorers:list[str] | Nonetrials:<class 'int'>evaluation_name:str | Noneeval_attributes:dict[str, typing.Any] | None
class EvaluationCreateReq
Pydantic のフィールド:
name:<class 'str'>description:str | Nonedataset:<class 'str'>scorers:list[str] | Nonetrials:<class 'int'>evaluation_name:str | Noneeval_attributes:dict[str, typing.Any] | Noneproject_id:<class 'str'>wb_user_id:str | None
class EvaluationCreateRes
Pydantic のフィールド:
digest:<class 'str'>object_id:<class 'str'>version_index:<class 'int'>evaluation_ref:<class 'str'>
class EvaluationDeleteReq
Pydantic のフィールド:
project_id:<class 'str'>object_id:<class 'str'>digests:list[str] | Nonewb_user_id:str | None
class EvaluationDeleteRes
Pydantic のフィールド:
num_deleted:<class 'int'>
class EvaluationListReq
Pydantic のフィールド:
project_id:<class 'str'>limit:int | Noneoffset:int | Nonewb_user_id:str | None
class EvaluationReadReq
Pydantic のフィールド:
project_id:<class 'str'>object_id:<class 'str'>digest:<class 'str'>wb_user_id:str | None
class EvaluationReadRes
Pydantic のフィールド:
object_id:<class 'str'>digest:<class 'str'>version_index:<class 'int'>created_at:<class 'datetime.datetime'>name:<class 'str'>description:str | Nonedataset:<class 'str'>scorers:list[str]trials:<class 'int'>evaluation_name:str | Noneevaluate_op:str | Nonepredict_and_score_op:str | Nonesummarize_op:str | None
class EvaluationRunCreateBody
Pydantic のフィールド:
evaluation:<class 'str'>model:<class 'str'>
class EvaluationRunCreateReq
Pydantic のフィールド:
evaluation:<class 'str'>model:<class 'str'>project_id:<class 'str'>wb_user_id:str | None
class EvaluationRunCreateRes
Pydantic のフィールド:
evaluation_run_id:<class 'str'>
class EvaluationRunDeleteReq
Pydantic のフィールド:
project_id:<class 'str'>evaluation_run_ids:list[str]wb_user_id:str | None
class EvaluationRunDeleteRes
Pydantic のフィールド:
num_deleted:<class 'int'>
class EvaluationRunFilter
Pydantic のフィールド:
evaluations:list[str] | Nonemodels:list[str] | Noneevaluation_run_ids:list[str] | None
class EvaluationRunFinishBody
REST API 経由で評価 run を終了するためのリクエストボディ。
このモデルには project_id と evaluation_run_id は含まれません。これらは RESTful エンドポイントの URL パスで指定されるためです。
Pydantic のフィールド:
summary:dict[str, typing.Any] | None
class EvaluationRunFinishReq
Pydantic のフィールド:
summary:dict[str, typing.Any] | Noneproject_id:<class 'str'>evaluation_run_id:<class 'str'>wb_user_id:str | None
class EvaluationRunFinishRes
Pydantic のフィールド:
success:<class 'bool'>
class EvaluationRunListReq
Pydantic のフィールド:
project_id:<class 'str'>filter:EvaluationRunFilter | Nonelimit:int | Noneoffset:int | None
class EvaluationRunReadReq
Pydantic のフィールド:
project_id:<class 'str'>evaluation_run_id:<class 'str'>
class EvaluationRunReadRes
Pydantic のフィールド:
evaluation_run_id:<class 'str'>evaluation:<class 'str'>model:<class 'str'>status:str | Nonestarted_at:datetime.datetime | Nonefinished_at:datetime.datetime | Nonesummary:dict[str, typing.Any] | None
class EvaluationStatusComplete
Pydantic のフィールド:
code:typing.Literal['complete']output:dict[str, typing.Any]
class EvaluationStatusFailed
Pydantic のフィールド:
code:typing.Literal['failed']error:str | None
class EvaluationStatusNotFound
Pydantic のフィールド:
code:typing.Literal['not_found']
class EvaluationStatusReq
Pydantic のフィールド:
project_id:<class 'str'>call_id:<class 'str'>
class EvaluationStatusRes
Pydantic のフィールド:
status:EvaluationStatusNotFound | EvaluationStatusRunning | EvaluationStatusFailed | EvaluationStatusComplete
class EvaluationStatusRunning
Pydantic のフィールド:
code:typing.Literal['running']completed_rows:<class 'int'>total_rows:<class 'int'>
class ExportTracePartialSuccess
Pydantic のフィールド:
rejected_spans:<class 'int'>error_message:<class 'str'>
class ExtraKeysTypedDict
class Feedback
Pydantic のフィールド:
id:<class 'str'>project_id:<class 'str'>weave_ref:<class 'str'>creator:str | Nonefeedback_type:<class 'str'>payload:dict[str, typing.Any]annotation_ref:str | Nonerunnable_ref:str | Nonecall_ref:str | Nonetrigger_ref:str | Nonequeue_id:str | Nonewb_user_id:str | Nonecreated_at:<class 'datetime.datetime'>
class FeedbackCreateBatchReq
Pydantic のフィールド:
batch:list[FeedbackCreateReq]
class FeedbackCreateBatchRes
Pydantic のフィールド:
res:list[FeedbackCreateRes]
class FeedbackCreateReq
Pydantic のフィールド:
id:str | Noneproject_id:<class 'str'>weave_ref:<class 'str'>creator:str | Nonefeedback_type:<class 'str'>payload:dict[str, typing.Any]annotation_ref:str | Nonerunnable_ref:str | Nonecall_ref:str | Nonetrigger_ref:str | Nonequeue_id:str | Nonewb_user_id:str | None
class FeedbackCreateRes
Pydantic のフィールド:
id:<class 'str'>created_at:<class 'datetime.datetime'>wb_user_id:<class 'str'>payload:dict[str, typing.Any]
class FeedbackDict
class FeedbackMetricSpec
集約対象のフィードバックペイロード メトリクスの仕様です。
Pydantic のフィールド:
json_path:<class 'str'>value_type:typing.Literal['numeric', 'boolean', 'categorical']aggregations:list[AggregationType]percentiles:list[float]
class FeedbackPayloadPath
フィードバックペイロード内で検出されたパスと、その推定タイプです。
Pydantic のフィールド:
json_path:<class 'str'>value_type:typing.Literal['numeric', 'boolean', 'categorical']
class FeedbackPayloadSchemaReq
フィードバックペイロード スキーマの検出リクエストです。
Pydantic のフィールド:
project_id:<class 'str'>start:<class 'datetime.datetime'>end:datetime.datetime | Nonefeedback_type:str | Nonetrigger_ref:str | Nonesample_limit:<class 'int'>
method validate_date_range
class FeedbackPayloadSchemaRes
検出されたフィードバックペイロードのパスとタイプを返すレスポンス。
Pydantic のフィールド:
paths:list[FeedbackPayloadPath]
class FeedbackPurgeReq
Pydantic のフィールド:
project_id:<class 'str'>query:<class 'weave.trace_server.interface.query.Query'>
class FeedbackPurgeRes
class FeedbackQueryReq
Pydantic のフィールド:
project_id:<class 'str'>fields:list[str] | Nonequery:weave.trace_server.interface.query.Query | Nonesort_by:list[weave.trace_server.common_interface.SortBy] | Nonelimit:int | Noneoffset:int | None
class FeedbackQueryRes
Pydantic のフィールド:
result:list[dict[str, typing.Any]]
class FeedbackReplaceReq
Pydantic のフィールド:
id:str | Noneproject_id:<class 'str'>weave_ref:<class 'str'>creator:str | Nonefeedback_type:<class 'str'>payload:dict[str, typing.Any]annotation_ref:str | Nonerunnable_ref:str | Nonecall_ref:str | Nonetrigger_ref:str | Nonequeue_id:str | Nonewb_user_id:str | Nonefeedback_id:<class 'str'>
class FeedbackReplaceRes
Pydantic のフィールド:
id:<class 'str'>created_at:<class 'datetime.datetime'>wb_user_id:<class 'str'>payload:dict[str, typing.Any]
class FeedbackStatsReq
時間バケット単位で集計されたフィードバック統計のリクエストです。
Pydantic のフィールド:
project_id:<class 'str'>start:<class 'datetime.datetime'>end:datetime.datetime | Nonefeedback_type:str | Nonetrigger_ref:str | Nonegranularity:int | Nonetimezone:<class 'str'>metrics:list[FeedbackMetricSpec]
method validate_date_range
class FeedbackStatsRes
時系列のフィードバック統計を返すレスポンスです。
Pydantic のフィールド:
start:<class 'datetime.datetime'>end:<class 'datetime.datetime'>granularity:<class 'int'>timezone:<class 'str'>buckets:list[dict[str, typing.Any]]window_stats:dict[str, dict[str, float | None]] | None
class FileContentReadReq
Pydantic のフィールド:
project_id:<class 'str'>digest:<class 'str'>
class FileContentReadRes
Pydantic のフィールド:
content:<class 'bytes'>
class FileCreateReq
Pydantic のフィールド:
project_id:<class 'str'>name:<class 'str'>content:<class 'bytes'>expected_digest:str | None
class FileCreateRes
Pydantic のフィールド:
digest:<class 'str'>
class FilesStatsReq
Pydantic のフィールド:
project_id:<class 'str'>
class FilesStatsRes
Pydantic のフィールド:
total_size_bytes:<class 'int'>
class FullTraceServerInterface
V1 API と Object API の両方をサポートする、フル機能のトレースサーバーインターフェース。
このプロトコルは、API 一式 (レガシーな V1 エンドポイントと最新の Object エンドポイントの両方) をサポートするトレースサーバー実装を表します。両方の API バージョンに対応する必要がある実装では、このタイプを使用してください。
method actions_execute_batch
method aliases_list
method annotation_queue_add_calls
method annotation_queue_create
method annotation_queue_delete
method annotation_queue_items_query
method annotation_queue_read
method annotation_queue_update
method annotation_queues_query_stream
method annotation_queues_stats
method annotator_queue_items_progress_update
method call_end
method call_end_v2
method call_read
method call_start
method call_start_batch
method call_start_v2
method call_stats
method call_update
method calls_complete
method calls_delete
method calls_query
method calls_query_stats
method calls_query_stream
method calls_score
method calls_usage
method completions_create
method completions_create_stream
method cost_create
method cost_purge
method cost_query
method dataset_create
method dataset_delete
method dataset_list
method dataset_read
method eval_results_query
method evaluate_model
method evaluation_create
method evaluation_delete
method evaluation_list
method evaluation_read
method evaluation_run_create
method evaluation_run_delete
method evaluation_run_finish
method evaluation_run_list
method evaluation_run_read
method evaluation_status
method feedback_create
method feedback_create_batch
method feedback_payload_schema
method feedback_purge
method feedback_query
method feedback_replace
method feedback_stats
method file_content_read
method file_create
method files_stats
method image_create
method model_create
method model_delete
method model_list
method model_read
method obj_add_tags
method obj_create
method obj_delete
method obj_read
method obj_remove_aliases
method obj_remove_tags
method obj_set_aliases
method objs_query
method op_create
method op_delete
method op_list
method op_read
method otel_export
method prediction_create
method prediction_delete
method prediction_finish
method prediction_list
method prediction_read
method project_stats
method refs_read_batch
method score_create
method score_delete
method score_list
method score_read
method scorer_create
method scorer_delete
method scorer_list
method scorer_read
method table_create
method table_create_from_digests
method table_query
method table_query_stats
method table_query_stats_batch
method table_query_stream
method table_update
method tags_list
method threads_query_stream
method trace_usage
class ImageGenerationCreateReq
Pydantic のフィールド:
project_id:<class 'str'>inputs:<class 'ImageGenerationRequestInputs'>wb_user_id:str | Nonetrack_llm_call:bool | None
class ImageGenerationCreateRes
Pydantic のフィールド:
response:dict[str, typing.Any]weave_call_id:str | None
class ImageGenerationRequestInputs
Pydantic のフィールド:
model:<class 'str'>prompt:<class 'str'>n:int | None
class LLMAggregatedUsage
特定の LLM の集計使用量メトリクスです。
Pydantic のフィールド:
requests:<class 'int'>prompt_tokens:<class 'int'>completion_tokens:<class 'int'>total_tokens:<class 'int'>prompt_tokens_total_cost:float | Nonecompletion_tokens_total_cost:float | None
class LLMCostSchema
class LLMUsageSchema
class ModelCreateBody
Pydantic のフィールド:
name:<class 'str'>description:str | Nonesource_code:<class 'str'>attributes:dict[str, typing.Any] | None
class ModelCreateReq
Pydantic のフィールド:
name:<class 'str'>description:str | Nonesource_code:<class 'str'>attributes:dict[str, typing.Any] | Noneproject_id:<class 'str'>wb_user_id:str | None
class ModelCreateRes
Pydantic のフィールド:
digest:<class 'str'>object_id:<class 'str'>version_index:<class 'int'>model_ref:<class 'str'>
class ModelDeleteReq
Pydantic のフィールド:
project_id:<class 'str'>object_id:<class 'str'>digests:list[str] | Nonewb_user_id:str | None
class ModelDeleteRes
Pydantic のフィールド:
num_deleted:<class 'int'>
class ModelListReq
Pydantic のフィールド:
project_id:<class 'str'>limit:int | Noneoffset:int | None
class ModelReadReq
Pydantic のフィールド:
project_id:<class 'str'>object_id:<class 'str'>digest:<class 'str'>
class ModelReadRes
Pydantic のフィールド:
object_id:<class 'str'>digest:<class 'str'>version_index:<class 'int'>created_at:<class 'datetime.datetime'>name:<class 'str'>description:str | Nonesource_code:<class 'str'>attributes:dict[str, typing.Any] | None
class OTelExportReq
Pydantic のフィールド:
processed_spans:list[ProcessedResourceSpans]project_id:<class 'str'>wb_user_id:str | None
class OTelExportRes
Pydantic のフィールド:
partial_success:ExportTracePartialSuccess | None
class ObjAddTagsReq
Pydantic のフィールド:
project_id:<class 'str'>object_id:<class 'str'>digest:<class 'str'>tags:list[str]wb_user_id:str | None
method validate_tags
class ObjAddTagsRes
class ObjCreateReq
Pydantic のフィールド:
obj:<class 'ObjSchemaForInsert'>
class ObjCreateRes
Pydantic のフィールド:
digest:<class 'str'>object_id:str | None
class ObjDeleteReq
Pydantic のフィールド:
project_id:<class 'str'>object_id:<class 'str'>digests:list[str] | None
class ObjDeleteRes
Pydantic のフィールド:
num_deleted:<class 'int'>
class ObjQueryReq
Pydantic のフィールド:
project_id:<class 'str'>filter:ObjectVersionFilter | Nonelimit:int | Noneoffset:int | Nonesort_by:list[weave.trace_server.common_interface.SortBy] | Nonemetadata_only:bool | Noneinclude_storage_size:bool | Noneinclude_tags_and_aliases:bool | None
class ObjQueryRes
Pydantic のフィールド:
objs:list[ObjSchema]
class ObjReadReq
Pydantic のフィールド:
project_id:<class 'str'>object_id:<class 'str'>digest:<class 'str'>metadata_only:bool | Noneinclude_tags_and_aliases:bool | None
class ObjReadRes
Pydantic のフィールド:
obj:<class 'ObjSchema'>
class ObjRemoveAliasesReq
Pydantic のフィールド:
project_id:<class 'str'>object_id:<class 'str'>aliases:list[str]wb_user_id:str | None
method validate_aliases
class ObjRemoveAliasesRes
class ObjRemoveTagsReq
Pydantic のフィールド:
project_id:<class 'str'>object_id:<class 'str'>digest:<class 'str'>tags:list[str]wb_user_id:str | None
class ObjRemoveTagsRes
class ObjSchema
Pydantic のフィールド:
project_id:<class 'str'>object_id:<class 'str'>created_at:<class 'datetime.datetime'>deleted_at:datetime.datetime | Nonedigest:<class 'str'>version_index:<class 'int'>is_latest:<class 'int'>kind:<class 'str'>base_object_class:str | Noneleaf_object_class:str | Noneval:typing.Anywb_user_id:str | Nonesize_bytes:int | Nonetags:list[str] | Nonealiases:list[str] | None
class ObjSchemaForInsert
Pydantic のフィールド:
project_id:<class 'str'>object_id:<class 'str'>val:typing.Anybuiltin_object_class:str | Noneset_base_object_class:str | Noneexpected_digest:str | Nonewb_user_id:str | None
method model_post_init
class ObjSetAliasesReq
Pydantic のフィールド:
project_id:<class 'str'>object_id:<class 'str'>digest:<class 'str'>aliases:list[str]wb_user_id:str | None
method validate_aliases
class ObjSetAliasesRes
class ObjectInterface
Trace Server の Object API のエンドポイント。
このプロトコルには、より簡潔で RESTful なインターフェースを提供するオブジェクト管理 API が含まれています。後方互換性を維持するため、実装ではこのプロトコルと TraceServerInterface の両方をサポートする必要があります。
method call_end_v2
method call_start_v2
method calls_complete
method dataset_create
method dataset_delete
method dataset_list
method dataset_read
method eval_results_query
method evaluation_create
method evaluation_delete
method evaluation_list
method evaluation_read
method evaluation_run_create
method evaluation_run_delete
method evaluation_run_finish
method evaluation_run_list
method evaluation_run_read
method model_create
method model_delete
method model_list
method model_read
method op_create
method op_delete
method op_list
method op_read
method prediction_create
method prediction_delete
method prediction_finish
method prediction_list
method prediction_read
method score_create
method score_delete
method score_list
method score_read
method scorer_create
method scorer_delete
method scorer_list
method scorer_read
class ObjectVersionFilter
Pydantic のフィールド:
base_object_classes:list[str] | Noneexclude_base_object_classes:list[str] | Noneleaf_object_classes:list[str] | Noneobject_ids:list[str] | Noneis_op:bool | Nonelatest_only:bool | Nonetags:list[str] | Nonealiases:list[str] | None
class OpCreateBody
REST API 経由で Op オブジェクトを作成するためのリクエストボディ。
このモデルには project_id は含まれません。project_id は RESTful エンドポイントの URL パスから取得されるためです。
Pydantic のフィールド:
name:str | Nonesource_code:str | None
class OpCreateReq
Op オブジェクトを作成するためのリクエストモデル。
内部 API 用に project_id を追加して、OpCreateBody を拡張したものです。
Pydantic のフィールド:
name:str | Nonesource_code:str | Noneproject_id:<class 'str'>wb_user_id:str | None
class OpCreateRes
Op オブジェクト作成用のレスポンスモデル。
Pydantic のフィールド:
digest:<class 'str'>object_id:<class 'str'>version_index:<class 'int'>
class OpDeleteReq
Pydantic のフィールド:
project_id:<class 'str'>object_id:<class 'str'>digests:list[str] | Nonewb_user_id:str | None
class OpDeleteRes
Pydantic のフィールド:
num_deleted:<class 'int'>
class OpListReq
Pydantic のフィールド:
project_id:<class 'str'>limit:int | Noneoffset:int | Nonewb_user_id:str | None
class OpReadReq
Pydantic のフィールド:
project_id:<class 'str'>object_id:<class 'str'>digest:<class 'str'>wb_user_id:str | None
class OpReadRes
Op オブジェクトの読み取り用レスポンスモデル。
code フィールドには、op の実際のソースコードが格納されます。
Pydantic のフィールド:
object_id:<class 'str'>digest:<class 'str'>version_index:<class 'int'>created_at:<class 'datetime.datetime'>code:<class 'str'>
class PredictionCreateBody
REST API 経由で予測を作成するためのリクエストボディ。
このモデルには project_id は含まれません。project_id は RESTful エンドポイントの URL パスから取得されるためです。
Pydantic のフィールド:
model:<class 'str'>inputs:dict[str, typing.Any]output:typing.Anyevaluation_run_id:str | None
class PredictionCreateReq
予測 を作成するためのリクエストモデル。
内部 API 用に project_id を追加して、PredictionCreateBody を拡張したものです。
Pydantic のフィールド:
model:<class 'str'>inputs:dict[str, typing.Any]output:typing.Anyevaluation_run_id:str | Noneproject_id:<class 'str'>wb_user_id:str | None
class PredictionCreateRes
Pydantic のフィールド:
prediction_id:<class 'str'>
class PredictionDeleteReq
Pydantic のフィールド:
project_id:<class 'str'>prediction_ids:list[str]wb_user_id:str | None
class PredictionDeleteRes
Pydantic のフィールド:
num_deleted:<class 'int'>
class PredictionFinishReq
Pydantic のフィールド:
project_id:<class 'str'>prediction_id:<class 'str'>wb_user_id:str | None
class PredictionFinishRes
Pydantic のフィールド:
success:<class 'bool'>
class PredictionListReq
Pydantic のフィールド:
project_id:<class 'str'>evaluation_run_id:str | Nonelimit:int | Noneoffset:int | Nonewb_user_id:str | None
class PredictionListRes
Pydantic のフィールド:
predictions:list[PredictionReadRes]
class PredictionReadReq
Pydantic のフィールド:
project_id:<class 'str'>prediction_id:<class 'str'>wb_user_id:str | None
class PredictionReadRes
Pydantic のフィールド:
prediction_id:<class 'str'>model:<class 'str'>inputs:dict[str, typing.Any]output:typing.Anyevaluation_run_id:str | Nonewb_user_id:str | None
class ProcessedResourceSpans
Pydantic のフィールド:
entity:<class 'str'>project:<class 'str'>run_id:str | Noneresource_spans:typing.Any
class ProjectStatsReq
Pydantic のフィールド:
project_id:<class 'str'>include_trace_storage_size:bool | Noneinclude_object_storage_size:bool | Noneinclude_table_storage_size:bool | Noneinclude_file_storage_size:bool | None
class ProjectStatsRes
Pydantic のフィールド:
trace_storage_size_bytes:<class 'int'>objects_storage_size_bytes:<class 'int'>tables_storage_size_bytes:<class 'int'>files_storage_size_bytes:<class 'int'>
class RefsReadBatchReq
Pydantic のフィールド:
refs:list[str]
class RefsReadBatchRes
Pydantic のフィールド:
vals:list[typing.Any]
class ScoreCreateBody
REST API 経由で Score を作成するためのリクエストボディ。
このモデルには project_id は含まれません。project_id は RESTful エンドポイントの URL パスから取得されるためです。
Pydantic のフィールド:
prediction_id:<class 'str'>scorer:<class 'str'>value:<class 'float'>evaluation_run_id:str | None
class ScoreCreateReq
Score を作成するためのリクエストモデル。
内部 API 用の project_id を追加して ScoreCreateBody を拡張したものです。
Pydantic のフィールド:
prediction_id:<class 'str'>scorer:<class 'str'>value:<class 'float'>evaluation_run_id:str | Noneproject_id:<class 'str'>wb_user_id:str | None
class ScoreCreateRes
Pydantic のフィールド:
score_id:<class 'str'>
class ScoreDeleteReq
Pydantic のフィールド:
project_id:<class 'str'>score_ids:list[str]wb_user_id:str | None
class ScoreDeleteRes
Pydantic のフィールド:
num_deleted:<class 'int'>
class ScoreListReq
Pydantic のフィールド:
project_id:<class 'str'>evaluation_run_id:str | Nonelimit:int | Noneoffset:int | Nonewb_user_id:str | None
class ScoreReadReq
Pydantic のフィールド:
project_id:<class 'str'>score_id:<class 'str'>wb_user_id:str | None
class ScoreReadRes
Pydantic のフィールド:
score_id:<class 'str'>scorer:<class 'str'>value:<class 'float'>evaluation_run_id:str | Nonewb_user_id:str | None
class ScorerCreateBody
Pydantic のフィールド:
name:<class 'str'>description:str | Noneop_source_code:<class 'str'>
class ScorerCreateReq
Pydantic のフィールド:
name:<class 'str'>description:str | Noneop_source_code:<class 'str'>project_id:<class 'str'>wb_user_id:str | None
class ScorerCreateRes
Pydantic のフィールド:
digest:<class 'str'>object_id:<class 'str'>version_index:<class 'int'>scorer:<class 'str'>
class ScorerDeleteReq
Pydantic のフィールド:
project_id:<class 'str'>object_id:<class 'str'>digests:list[str] | Nonewb_user_id:str | None
class ScorerDeleteRes
Pydantic のフィールド:
num_deleted:<class 'int'>
class ScorerListReq
Pydantic のフィールド:
project_id:<class 'str'>limit:int | Noneoffset:int | Nonewb_user_id:str | None
class ScorerReadReq
Pydantic のフィールド:
project_id:<class 'str'>object_id:<class 'str'>digest:<class 'str'>wb_user_id:str | None
class ScorerReadRes
Pydantic のフィールド:
object_id:<class 'str'>digest:<class 'str'>version_index:<class 'int'>created_at:<class 'datetime.datetime'>name:<class 'str'>description:str | Nonescore_op:<class 'str'>
class StartedCallSchemaForInsert
Pydantic のフィールド:
project_id:<class 'str'>id:str | Noneop_name:<class 'str'>display_name:str | Nonetrace_id:str | Noneparent_id:str | Nonethread_id:str | Noneturn_id:str | Nonestarted_at:<class 'datetime.datetime'>attributes:dict[str, typing.Any]inputs:dict[str, typing.Any]otel_dump:dict[str, typing.Any] | Nonewb_user_id:str | Nonewb_run_id:str | Nonewb_run_step:int | None
class SummaryInsertMap
class SummaryMap
class TableAppendSpec
Pydantic のフィールド:
append:<class 'TableAppendSpecPayload'>
class TableAppendSpecPayload
Pydantic のフィールド:
row:dict[str, typing.Any]
class TableCreateFromDigestsReq
Pydantic のフィールド:
project_id:<class 'str'>row_digests:list[str]expected_digest:str | None
class TableCreateFromDigestsRes
Pydantic のフィールド:
digest:<class 'str'>
class TableCreateReq
Pydantic のフィールド:
table:<class 'TableSchemaForInsert'>
class TableCreateRes
Pydantic のフィールド:
digest:<class 'str'>row_digests:list[str]
class TableInsertSpec
Pydantic のフィールド:
insert:<class 'TableInsertSpecPayload'>
class TableInsertSpecPayload
Pydantic のフィールド:
index:<class 'int'>row:dict[str, typing.Any]
class TablePopSpec
Pydantic のフィールド:
pop:<class 'TablePopSpecPayload'>
class TablePopSpecPayload
Pydantic のフィールド:
index:<class 'int'>
class TableQueryReq
Pydantic のフィールド:
project_id:<class 'str'>digest:<class 'str'>filter:TableRowFilter | Nonelimit:int | Noneoffset:int | Nonesort_by:list[weave.trace_server.common_interface.SortBy] | None
class TableQueryRes
Pydantic のフィールド:
rows:list[TableRowSchema]
class TableQueryStatsBatchReq
Pydantic のフィールド:
project_id:<class 'str'>digests:list[str] | Noneinclude_storage_size:bool | None
class TableQueryStatsBatchRes
Pydantic のフィールド:
tables:list[TableStatsRow]
class TableQueryStatsReq
Pydantic のフィールド:
project_id:<class 'str'>digest:<class 'str'>
class TableQueryStatsRes
Pydantic のフィールド:
count:<class 'int'>
class TableRowFilter
Pydantic のフィールド:
row_digests:list[str] | None
class TableRowSchema
Pydantic のフィールド:
digest:<class 'str'>val:typing.Anyoriginal_index:int | None
class TableSchemaForInsert
Pydantic のフィールド:
project_id:<class 'str'>rows:list[dict[str, typing.Any]]expected_digest:str | None
class TableStatsRow
Pydantic のフィールド:
count:<class 'int'>digest:<class 'str'>storage_size_bytes:int | None
class TableUpdateReq
Pydantic のフィールド:
project_id:<class 'str'>base_digest:<class 'str'>updates:list[TableAppendSpec | TablePopSpec | TableInsertSpec]
class TableUpdateRes
Pydantic のフィールド:
digest:<class 'str'>updated_row_digests:list[str]
class TagsListReq
Pydantic のフィールド:
project_id:<class 'str'>wb_user_id:str | None
class TagsListRes
Pydantic のフィールド:
tags:list[str]
class ThreadSchema
Pydantic のフィールド:
thread_id:<class 'str'>turn_count:<class 'int'>start_time:<class 'datetime.datetime'>last_updated:<class 'datetime.datetime'>first_turn_id:str | Nonelast_turn_id:str | Nonep50_turn_duration_ms:float | Nonep99_turn_duration_ms:float | None
class ThreadsQueryFilter
Pydantic のフィールド:
after_datetime:datetime.datetime | Nonebefore_datetime:datetime.datetime | Nonethread_ids:list[str] | None
class ThreadsQueryReq
ターン call のみを基に集計した統計情報とともに、スレッドをクエリします。
ターン call は、スレッドコンテキストの直接の子要素です (call.id == turn_id の場合) 。これにより、ネストされた実装の詳細をすべて含めるのではなく、会話レベルで意味のある統計情報を取得できます。
Pydantic のフィールド:
project_id:<class 'str'>filter:ThreadsQueryFilter | Nonelimit:int | Noneoffset:int | Nonesort_by:list[weave.trace_server.common_interface.SortBy] | None
class TraceServerInterface
method actions_execute_batch
method aliases_list
method annotation_queue_add_calls
method annotation_queue_create
method annotation_queue_delete
method annotation_queue_items_query
method annotation_queue_read
method annotation_queue_update
method annotation_queues_query_stream
method annotation_queues_stats
method annotator_queue_items_progress_update
method call_end
method call_read
method call_start
method call_start_batch
method call_stats
method call_update
method calls_delete
method calls_query
method calls_query_stats
method calls_query_stream
method calls_score
method calls_usage
method completions_create
method completions_create_stream
method cost_create
method cost_purge
method cost_query
method evaluate_model
method evaluation_status
method feedback_create
method feedback_create_batch
method feedback_payload_schema
method feedback_purge
method feedback_query
method feedback_replace
method feedback_stats
method file_content_read
method file_create
method files_stats
method image_create
method obj_add_tags
method obj_create
method obj_delete
method obj_read
method obj_remove_aliases
method obj_remove_tags
method obj_set_aliases
method objs_query
method otel_export
method project_stats
method refs_read_batch
method table_create
method table_create_from_digests
method table_query
method table_query_stats
method table_query_stats_batch
method table_query_stream
method table_update
method tags_list
method threads_query_stream
method trace_usage
class TraceStatus
class TraceUsageReq
子孫 Call をロールアップして、トレース内の Call ごとの使用量を計算するためのリクエストです。
このエンドポイントは、トレース内の各 Call の使用量メトリクスを返します。各 Call のメトリクスには、その Call 自身の使用量に加えて、すべての子孫 Call の使用量の合計が含まれます。Call ごとにロールアップされたメトリクスを確認したい Trace view で使用してください。
注: 一致したすべての Call は、集約のためにメモリに読み込まれます。結果セットが非常に大きい場合 (>10k calls) は、より具体的なフィルターを使用するか、アプリケーション層でページネーションを行うことを検討してください。
Pydantic のフィールド:
project_id:<class 'str'>filter:CallsFilter | Nonequery:weave.trace_server.interface.query.Query | Noneinclude_costs:<class 'bool'>limit:<class 'int'>
class TraceUsageRes
各 Call ごとの使用量メトリクス (各メトリクスには子孫 Call の寄与も含まれます) を含むレスポンス。
Pydantic のフィールド:
call_usage:dict[str, dict[str, LLMAggregatedUsage]]unfinished_call_ids:list[str]
class UsageMetricSpec
集約対象の使用量メトリクス (モデルごとにグループ化) の仕様です。
Pydantic のフィールド:
metric:typing.Literal['input_tokens', 'output_tokens', 'total_tokens', 'input_cost', 'output_cost', 'total_cost']aggregations:list[AggregationType]percentiles:list[float]