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 출력)를 추가합니다.
명령형 평가에서 scorer 결과를 predict call에 연결할 때 사용됩니다.
| 이름 | 유형 | 설명 |
|---|
predictCallId | string | 피드백을 연결할 predict call의 ID |
scorerCallId | string | 피드백을 생성한 scorer call의 ID |
runnableRefUri | string | scorer의 URI(Op 또는 Object ref) |
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(): 객체
객체
| 이름 | 유형 |
|---|
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의 자동 직렬화 파이프라인을 사용하지 않는 경우
(예: saveCallEnd를 통해) call 출력을 수동으로 구축할 때 사용하세요.
파라미터
| 이름 | 유형 | 기본값 | 설명 |
|---|
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