目次
コンストラクタ
プロパティ
メソッド
- addScore
- createCall
- finishCall
- finishCallWithException
- get
- getCall
- getCallStack
- getCalls
- getCallsIterator
- getCurrentAttributes
- publish
- pushNewCall
- runWithAttributes
- runWithCallStack
- saveOp
- updateCall
- waitForBatchProcessing
コンストラクタ
コンストラクタ
traceServerApi, wandbServerApi, projectId, settings?): WeaveClient
パラメータ
| 名前 | 型 |
|---|---|
traceServerApi | Api<any> |
wandbServerApi | WandbServerApi |
projectId | string |
settings | Settings |
戻り値
WeaveClient
定義場所
プロパティ
projectId
string
定義元
weaveClient.ts:96settings
Settings
定義場所
traceServerApi
Api<any>
定義箇所
weaveClient.ts:94メソッド
addScore
predictCallId, scorerCallId, runnableRefUri, scorerOutput): Promise<string>
scorer の結果(例: scorer の出力)を call に追加します。
命令型評価で、predict call に scorer の結果を関連付けるために使用します。
パラメーター
| Name | Type | Description |
|---|---|---|
predictCallId | string | フィードバックを付与する predict 呼び出しの ID |
scorerCallId | string | フィードバックを生成した scorer 呼び出しの ID |
runnableRefUri | string | scorer(Op または Object 参照)の URI |
scorerOutput | any | scorer の出力 |
戻り値
Promise<string>
定義元
weaveClient.ts:865createCall
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>
定義場所
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:772finishCallWithException
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:812get
ref): Promise<any>
パラメータ
| 名前 | 型 |
|---|---|
ref | ObjectRef |
戻り値
Promise<any>
定義元
weaveClient.ts:282getCall
callId, includeCosts?): Promise<Call>
パラメータ
| 名前 | 型 | デフォルト値 |
|---|---|---|
callId | string | undefined |
includeCosts | boolean | false |
戻り値
Promise<Call>
定義場所
getCallStack
CallStack
戻り値
CallStack
定義元
weaveClient.ts:636getCalls
filter?, includeCosts?, limit?): Promise<Call[]>
パラメータ
| 名前 | 型 | デフォルト値 |
|---|---|---|
filter | CallsFilter | {} |
includeCosts | boolean | false |
limit | number | 1000 |
戻り値
Promise<Call[]>
定義場所
getCallsIterator
filter?, includeCosts?, limit?): AsyncIterableIterator<CallSchema>
パラメーター
| 名前 | 型 | デフォルト値 |
|---|---|---|
filter | CallsFilter | {} |
includeCosts | boolean | false |
limit | number | 1000 |
戻り値
AsyncIterableIterator<CallSchema>
定義場所
getCurrentAttributes
Record<string, any>
戻り値
Record<string, any>
定義場所
publish
obj, objId?): Promise<ObjectRef>
パラメータ
| 名前 | 型 |
|---|---|
obj | any |
objId? | string |
戻り値
Promise<ObjectRef>
定義場所
pushNewCall
Object
戻り値
Object
| 名前 | 型 |
|---|---|
currentCall | CallStackEntry |
newStack | CallStack |
parentCall? | CallStackEntry |
定義元
weaveClient.ts:644runWithAttributes
T>(attributes, fn): T
型パラメータ
| 名前 |
|---|
T |
パラメーター
| 名前 | 型 |
|---|---|
attributes | Record<string, any> |
fn | () => T |
戻り値
T
定義場所
runWithCallStack
T>(callStack, fn): T
型パラメータ
| 名前 |
|---|
T |
パラメータ
| 名称 | 型 |
|---|---|
callStack | CallStack |
fn | () => T |
戻り値
T
定義元
weaveClient.ts:648saveOp
op, objId?): Promise<any>
パラメータ
| 名前 | 型 |
|---|---|
op | Op<(…args: any[]) => any> |
objId? | string |
戻り値
Promise<any>
定義場所
updateCall
callId, displayName): Promise<void>
パラメーター
| 名前 | 型 |
|---|---|
callId | string |
displayName | string |
戻り値
Promise<void>
定義元
weaveClient.ts:848waitForBatchProcessing
Promise<void>
戻り値
Promise<void>