メインコンテンツへスキップ
weave / WeaveClient

目次

コンストラクタ

プロパティ

メソッド

コンストラクタ

コンストラクター

new WeaveClient(traceServerApi, wandbServerApi, projectId, settings?): WeaveClient

パラメーター

戻り値

WeaveClient

定義箇所

weaveClient.ts:190

プロパティ

projectId

projectId: string

定義箇所

weaveClient.ts:193

settings

settings: Settings

定義箇所

weaveClient.ts:194

traceServerApi

traceServerApi: Api<any>

定義箇所

weaveClient.ts:191

メソッド

addScore

addScore(predictCallId, scorerCallId, runnableRefUri, scorerOutput): Promise<string> call に scorer の結果 (例: scorer output) を追加します。 命令型評価で、predict call に scorer の結果を関連付けるために使用します。

パラメーター

戻り値

Promise<string>

定義箇所

weaveClient.ts:1132

createCall

createCall(internalCall, opRef, params, parameterNames, thisArg, currentCall, parentCall, startTime, displayName?, attributes?): Promise<void>

パラメーター

戻り値

Promise<void>

定義箇所

weaveClient.ts:979

finishCall

finishCall(call, result, currentCall, parentCall, summarize, endTime, startCallPromise): Promise<void>

パラメーター

戻り値

Promise<void>

定義箇所

weaveClient.ts:1039

finishCallWithException

finishCallWithException(call, error, currentCall, parentCall, endTime, startCallPromise): Promise<void>

パラメーター

戻り値

Promise<void>

定義箇所

weaveClient.ts:1079

get

get(ref): Promise<any>

パラメーター

戻り値

Promise<any>

定義箇所

weaveClient.ts:435

getCall

getCall(callId, includeCosts?): Promise<Call>

パラメーター

戻り値

Promise<Call>

定義箇所

weaveClient.ts:312

getCallStack

getCallStack(): CallStack

戻り値

CallStack

定義箇所

weaveClient.ts:890

getCalls

getCalls(options?): Promise<Call[]>

パラメーター

戻り値

Promise<Call[]>

定義箇所

weaveClient.ts:345 getCalls(options?, includeCosts?, limit?): Promise<Call[]>

パラメーター

戻り値

Promise<Call[]>

定義箇所

weaveClient.ts:346

getCallsIterator

getCallsIterator(options?, includeCosts?, limit?): AsyncIterableIterator<CallSchema>

パラメーター

戻り値

AsyncIterableIterator<CallSchema>

定義箇所

weaveClient.ts:367 getCallsIterator(options?): AsyncIterableIterator<CallSchema>

パラメーター

戻り値

AsyncIterableIterator<CallSchema>

定義箇所

weaveClient.ts:372

getCurrentAttributes

getCurrentAttributes(): Record<string, any>

戻り値

Record<string, any>

定義箇所

weaveClient.ts:894

linkPromptToRegistry

linkPromptToRegistry(prompt, options): Promise<LinkAssetToRegistryRes> 公開済みのプロンプト バージョンを Registry ポートフォリオにリンクします。

パラメーター

戻り値

Promise<LinkAssetToRegistryRes>

定義箇所

weaveClient.ts:591

publish

publish(obj, objId?): Promise<ObjectRef>

パラメーター

戻り値

Promise<ObjectRef>

定義箇所

weaveClient.ts:300

pushNewCall

pushNewCall(): Object

戻り値

Object

定義箇所

weaveClient.ts:898

runWithAttributes

runWithAttributes<T>(attributes, fn): T

型パラメーター

パラメーター

戻り値

T

定義箇所

weaveClient.ts:906

runWithCallStack

runWithCallStack<T>(callStack, fn): T

型パラメーター

パラメーター

戻り値

T

定義箇所

weaveClient.ts:902

saveCallEnd

saveCallEnd(callEnd): void

パラメーター

戻り値

void

定義箇所

weaveClient.ts:885

saveCallStart

saveCallStart(callStart): void

パラメーター

戻り値

void

定義箇所

weaveClient.ts:880

saveOp

saveOp(op, objId?): Promise<OpRef>

パラメーター

戻り値

Promise<OpRef>

定義箇所

weaveClient.ts:945

serializeAudio

serializeAudio(data, audioType?): Promise<SerializedFileBlob> 生のオーディオバイトを Weave のコンテンツストアにアップロードし、 Call の出力に埋め込める CustomWeaveType プレースホルダーを返します。 これは、finishCall の自動シリアライズパイプラインを使用せずに、 Call の出力を手動で構築する場合 (たとえば saveCallEnd 経由) に使用します。

パラメーター

戻り値

Promise<SerializedFileBlob>

定義箇所

weaveClient.ts:832

updateCall

updateCall(callId, displayName): Promise<void>

パラメーター

戻り値

Promise<void>

定義箇所

weaveClient.ts:1115

waitForBatchProcessing

waitForBatchProcessing(): Promise<void>

戻り値

Promise<void>

定義箇所

weaveClient.ts:211