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

目次

コンストラクタ

プロパティ

メソッド

コンストラクタ

コンストラクタ

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

パラメータ

名前
traceServerApiApi<any>
wandbServerApiWandbServerApi
projectIdstring
settingsSettings

戻り値

WeaveClient

定義場所

weaveClient.ts:93

プロパティ

projectId

projectId: string

定義元

weaveClient.ts:96

settings

settings: Settings

定義場所

weaveClient.ts:97

traceServerApi

traceServerApi: Api<any>

定義箇所

weaveClient.ts:94

メソッド

addScore

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

パラメーター

NameTypeDescription
predictCallIdstringフィードバックを付与する predict 呼び出しの ID
scorerCallIdstringフィードバックを生成した scorer 呼び出しの ID
runnableRefUristringscorer(Op または Object 参照)の URI
scorerOutputanyscorer の出力

戻り値

Promise<string>

定義元

weaveClient.ts:865

createCall

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

パラメーター

名前
internalCallInternalCall
opRefany
paramsany[]
parameterNamesParameterNamesOption
thisArgany
currentCallCallStackEntry
parentCallundefined | CallStackEntry
startTimeDate
displayName?string
attributes?Record<string, any>

戻り値

Promise<void>

定義場所

weaveClient.ts:720

finishCall

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

パラメータ

名前
callInternalCall
resultany
currentCallCallStackEntry
parentCallundefined | CallStackEntry
summarizeundefined | (result: any) => Record<string, any>
endTimeDate
startCallPromisePromise<void>

戻り値

Promise<void>

定義元

weaveClient.ts:772

finishCallWithException

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

パラメータ

名前
callInternalCall
errorany
currentCallCallStackEntry
parentCallundefined | CallStackEntry
endTimeDate
startCallPromisePromise<void>

戻り値

Promise<void>

定義元

weaveClient.ts:812

get

get(ref): Promise<any>

パラメータ

名前
refObjectRef

戻り値

Promise<any>

定義元

weaveClient.ts:282

getCall

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

パラメータ

名前デフォルト値
callIdstringundefined
includeCostsbooleanfalse

戻り値

Promise<Call>

定義場所

weaveClient.ts:213

getCallStack

getCallStack(): CallStack

戻り値

CallStack

定義元

weaveClient.ts:636

getCalls

getCalls(filter?, includeCosts?, limit?): Promise<Call[]>

パラメータ

名前デフォルト値
filterCallsFilter{}
includeCostsbooleanfalse
limitnumber1000

戻り値

Promise<Call[]>

定義場所

weaveClient.ts:223

getCallsIterator

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

パラメーター

名前デフォルト値
filterCallsFilter{}
includeCostsbooleanfalse
limitnumber1000

戻り値

AsyncIterableIterator<CallSchema>

定義場所

weaveClient.ts:237

getCurrentAttributes

getCurrentAttributes(): Record<string, any>

戻り値

Record<string, any>

定義場所

weaveClient.ts:640

publish

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

パラメータ

名前
objany
objId?string

戻り値

Promise<ObjectRef>

定義場所

weaveClient.ts:201

pushNewCall

pushNewCall(): Object

戻り値

Object
名前
currentCallCallStackEntry
newStackCallStack
parentCall?CallStackEntry

定義元

weaveClient.ts:644

runWithAttributes

runWithAttributes<T>(attributes, fn): T

型パラメータ

名前
T

パラメーター

名前
attributesRecord<string, any>
fn() => T

戻り値

T

定義場所

weaveClient.ts:652

runWithCallStack

runWithCallStack<T>(callStack, fn): T

型パラメータ

名前
T

パラメータ

名称
callStackCallStack
fn() => T

戻り値

T

定義元

weaveClient.ts:648

saveOp

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

パラメータ

名前
opOp<(…args: any[]) => any>
objId?string

戻り値

Promise<any>

定義場所

weaveClient.ts:686

updateCall

updateCall(callId, displayName): Promise<void>

パラメーター

名前
callIdstring
displayNamestring

戻り値

Promise<void>

定義元

weaveClient.ts:848

waitForBatchProcessing

waitForBatchProcessing(): Promise<void>

戻り値

Promise<void>

定義元

weaveClient.ts:114