AxChainOfThought
Class: AxChainOfThought<IN, OUT>
Extends
AxGen
<IN
,OUT
&object
>
Extended by
Type Parameters
• IN extends AxGenIn
= AxGenIn
• OUT extends AxGenOut
= AxGenOut
Constructors
new AxChainOfThought()
new AxChainOfThought<
IN
,OUT
>(signature
,options
?):AxChainOfThought
<IN
,OUT
>
Parameters
• signature: Readonly
<string
| AxSignature
>
• options?: Readonly
<AxGenOptions
>
Returns
AxChainOfThought
<IN
, OUT
>
Overrides
Defined in
Properties
demos?
protected
optional
demos:Record
<string
,AxFieldValue
>[]
Inherited from
Defined in
examples?
protected
optional
examples:Record
<string
,AxFieldValue
>[]
Inherited from
Defined in
sigHash
protected
sigHash:string
Inherited from
Defined in
signature
protected
signature:AxSignature
Inherited from
Defined in
trace?
protected
optional
trace:Record
<string
,AxFieldValue
>
Inherited from
Defined in
usage
protected
usage:AxTokenUsage
&object
[] =[]
Inherited from
Defined in
Methods
addAssert()
addAssert(
fn
,message
?,optional
?):void
Parameters
• fn
• message?: string
• optional?: boolean
Returns
void
Inherited from
Defined in
addStreamingAssert()
addStreamingAssert(
fieldName
,fn
,message
?,optional
?):void
Parameters
• fieldName: string
• fn
• message?: string
• optional?: boolean
Returns
void
Inherited from
Defined in
forward()
forward(
ai
,values
,options
?):Promise
<OUT
&object
>
Parameters
• ai: Readonly
<AxAIService
>
• values: IN
• options?: Readonly
<AxProgramForwardOptions
>
Returns
Promise
<OUT
& object
>
Inherited from
Defined in
getSignature()
getSignature():
AxSignature
Returns
Inherited from
Defined in
getTraces()
getTraces():
AxProgramTrace
[]
Returns
Inherited from
Defined in
getUsage()
getUsage():
AxTokenUsage
&object
[]
Returns
AxTokenUsage
& object
[]
Inherited from
Defined in
register()
register(
prog
):void
Parameters
• prog: Readonly
<AxTunable
& AxUsable
>
Returns
void
Inherited from
Defined in
resetUsage()
resetUsage():
void
Returns
void
Inherited from
Defined in
setDemos()
setDemos(
demos
):void
Parameters
• demos: readonly AxProgramDemos
[]
Returns
void
Inherited from
Defined in
setExamples()
setExamples(
examples
):void
Parameters
• examples: Readonly
<AxProgramExamples
>
Returns
void
Inherited from
Defined in
setId()
setId(
id
):void
Parameters
• id: string
Returns
void
Inherited from
Defined in
setParentId()
setParentId(
parentId
):void
Parameters
• parentId: string
Returns
void