Documentation Index
Fetch the complete documentation index at: https://wb-21fd5541-john-wbdocs-2044-rename-serverless-products.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
weave / WeaveClient
コンストラクタ
• new WeaveClient(traceServerApi, wandbServerApi, projectId, settings?): WeaveClient
| 名 | タイプ |
|---|
traceServerApi | Api<any> |
wandbServerApi | WandbServerApi |
projectId | string |
settings | Settings |
WeaveClient
weaveClient.ts:100
プロパティ
• projectId: string
weaveClient.ts:103
• settings: Settings
weaveClient.ts:104
• traceServerApi: Api<any>
weaveClient.ts:101
メソッド
▸ addScore(predictCallId, scorerCallId, runnableRefUri, scorerOutput): Promise<string>
call に scorer の結果 (例: scorer output) を追加します。
命令型評価で、predict call に scorer の結果を関連付けるために使用します。
| 名 | タイプ | 説明 |
|---|
predictCallId | string | フィードバックの関連付け先となる predict call のID |
scorerCallId | string | フィードバックを生成した scorer call のID |
runnableRefUri | string | scorer (Op または Object ref) のURI |
scorerOutput | any | scorerの出力 |
Promise<string>
weaveClient.ts:908
▸ createCall(internalCall, opRef, params, parameterNames, thisArg, currentCall, parentCall, startTime, displayName?, attributes?): Promise<void>
| 名 | タイプ | |
|---|
internalCall | InternalCall | |
opRef | any | |
params | any[] | |
parameterNames | ParameterNamesOption | |
thisArg | any | |
currentCall | CallStackEntry | |
parentCall | undefined | CallStackEntry |
startTime | Date | |
displayName? | string | |
attributes? | Record<string, any> | |
Promise<void>
weaveClient.ts:763
▸ finishCall(call, result, currentCall, parentCall, summarize, endTime, startCallPromise): Promise<void>
| 名 | タイプ | |
|---|
call | InternalCall | |
result | any | |
currentCall | CallStackEntry | |
parentCall | undefined | CallStackEntry |
summarize | undefined | (result: any) => Record<string, any> |
endTime | Date | |
startCallPromise | Promise<void> | |
Promise<void>
weaveClient.ts:815
▸ finishCallWithException(call, error, currentCall, parentCall, endTime, startCallPromise): Promise<void>
| 名 | タイプ | |
|---|
call | InternalCall | |
error | any | |
currentCall | CallStackEntry | |
parentCall | undefined | CallStackEntry |
endTime | Date | |
startCallPromise | Promise<void> | |
Promise<void>
weaveClient.ts:855
▸ get(ref): Promise<any>
Promise<any>
weaveClient.ts:289
▸ getCall(callId, includeCosts?): Promise<Call>
| 名 | タイプ | デフォルト値 |
|---|
callId | string | undefined |
includeCosts | boolean | false |
Promise<Call>
weaveClient.ts:220
▸ getCallStack(): CallStack
CallStack
weaveClient.ts:674
▸ getCalls(filter?, includeCosts?, limit?): Promise<Call[]>
| 名 | タイプ | デフォルト値 |
|---|
filter | CallsFilter | {} |
includeCosts | boolean | false |
limit | number | 1000 |
Promise<Call[]>
weaveClient.ts:230
▸ getCallsIterator(filter?, includeCosts?, limit?): AsyncIterableIterator<CallSchema>
| 名 | タイプ | デフォルト値 |
|---|
filter | CallsFilter | {} |
includeCosts | boolean | false |
limit | number | 1000 |
AsyncIterableIterator<CallSchema>
weaveClient.ts:244
▸ getCurrentAttributes(): Record<string, any>
Record<string, any>
weaveClient.ts:678
▸ publish(obj, objId?): Promise<ObjectRef>
Promise<ObjectRef>
weaveClient.ts:208
▸ pushNewCall(): Object
Object
| 名 | タイプ |
|---|
currentCall | CallStackEntry |
newStack | CallStack |
parentCall? | CallStackEntry |
weaveClient.ts:682
▸ runWithAttributes<T>(attributes, fn): T
| 名 | タイプ |
|---|
attributes | Record<string, any> |
fn | () => T |
T
weaveClient.ts:690
▸ runWithCallStack<T>(callStack, fn): T
| 名 | タイプ |
|---|
callStack | CallStack |
fn | () => T |
T
weaveClient.ts:686
▸ saveCallEnd(callEnd): void
| 名 | タイプ |
|---|
callEnd | EndedCallSchemaForInsert |
void
weaveClient.ts:669
▸ saveCallStart(callStart): void
| 名 | タイプ |
|---|
callStart | StartedCallSchemaForInsert |
void
weaveClient.ts:664
▸ saveOp(op, objId?): Promise<any>
| 名 | タイプ |
|---|
op | Op<(…args: any[]) => any> |
objId? | string |
Promise<any>
weaveClient.ts:729
▸ serializeAudio(data, audioType?): Promise<any>
生のオーディオバイトを Weave のコンテンツストアにアップロードし、
Call の出力に埋め込める CustomWeaveType プレースホルダーを返します。
これは、finishCall の自動シリアライズパイプラインを使用せずに、
Call の出力を手動で構築する場合 (たとえば saveCallEnd 経由) に使用します。
| 名 | タイプ | 既定値 | 説明 |
|---|
data | Buffer | undefined | 生のオーディオバイト (ブラウザーとの互換性を最大限にするには WAV) |
audioType | "wav" | DEFAULT_AUDIO_TYPE | ファイル形式 — 現在サポートされているのは ‘wav’ のみです |
Promise<any>
weaveClient.ts:616
▸ updateCall(callId, displayName): Promise<void>
| 名 | タイプ |
|---|
callId | string |
displayName | string |
Promise<void>
weaveClient.ts:891
▸ waitForBatchProcessing(): Promise<void>
Promise<void>
weaveClient.ts:121