WeaveClient
weave • Docs
weave / WeaveClient
Class: WeaveClient
Constructors
new WeaveClient()
new WeaveClient(
traceServerApi
,wandbServerApi
,projectId
,settings
):WeaveClient
Parameters
• traceServerApi: Api
<any
>
• wandbServerApi: WandbServerApi
• projectId: string
• settings: Settings
= ...
Returns
Defined in
Properties
projectId
projectId:
string
Defined in
settings
settings:
Settings
Defined in
traceServerApi
traceServerApi:
Api
<any
>
Defined in
Methods
createCall()
createCall(
opRef
,params
,parameterNames
,thisArg
,currentCall
,parentCall
,startTime
,displayName
?):Promise
<void
>
Parameters
• opRef: any
• params: any
[]
• parameterNames: ParameterNamesOption
• thisArg: any
• currentCall: CallStackEntry
• parentCall: undefined
| CallStackEntry
• startTime: Date
• displayName?: string
Returns
Promise
<void
>
Defined in
finishCall()
finishCall(
result
,currentCall
,parentCall
,summarize
,endTime
,startCallPromise
):Promise
<void
>
Parameters
• result: any
• currentCall: CallStackEntry
• parentCall: undefined
| CallStackEntry
• summarize: undefined
| (result
) => Record
<string
, any
>
• endTime: Date
• startCallPromise: Promise
<void
>
Returns
Promise
<void
>
Defined in
finishCallWithException()
finishCallWithException(
error
,currentCall
,parentCall
,endTime
,startCallPromise
):Promise
<void
>
Parameters
• error: any
• currentCall: CallStackEntry
• parentCall: undefined
| CallStackEntry
• endTime: Date
• startCallPromise: Promise
<void
>
Returns
Promise
<void
>
Defined in
get()
get(
ref
):Promise
<any
>
Parameters
• ref: ObjectRef
Returns
Promise
<any
>
Defined in
getCalls()
getCalls(
filter
,includeCosts
,limit
):Promise
<CallSchema
[]>
Parameters
• filter: CallsFilter
= {}
• includeCosts: boolean
= false
• limit: number
= 1000
Returns
Promise
<CallSchema
[]>
Defined in
getCallsIterator()
getCallsIterator(
filter
,includeCosts
,limit
):AsyncIterableIterator
<CallSchema
>
Parameters
• filter: CallsFilter
= {}
• includeCosts: boolean
= false
• limit: number
= 1000
Returns
AsyncIterableIterator
<CallSchema
>
Defined in
getCallStack()
getCallStack():
CallStack
Returns
CallStack
Defined in
publish()
publish(
obj
,objId
?):Promise
<ObjectRef
>
Parameters
• obj: any
• objId?: string
Returns
Promise
<ObjectRef
>
Defined in
pushNewCall()
pushNewCall():
object
Returns
object
currentCall
currentCall:
CallStackEntry
newStack
newStack:
CallStack
parentCall?
optional
parentCall:CallStackEntry
Defined in
runWithCallStack()
runWithCallStack<
T
>(callStack
,fn
):T
Type Parameters
• T
Parameters
• callStack: CallStack
• fn
Returns
T
Defined in
saveOp()
saveOp(
op
,objId
?):Promise
<any
>
Parameters
• op: Op
<(...args
) => any
>
• objId?: string
Returns
Promise
<any
>
Defined in
waitForBatchProcessing()
waitForBatchProcessing():
Promise
<void
>
Returns
Promise
<void
>