AxAgent
Class: AxAgent<IN, OUT>
Type Parameters
• IN extends AxGenIn
• OUT extends AxGenOut
Implements
Constructors
new AxAgent()
new AxAgent<
IN
,OUT
>(ai
,__namedParameters
,options
?):AxAgent
<IN
,OUT
>
Parameters
• ai: AxAIService
• __namedParameters: Readonly
<object
>
• options?: Readonly
<AxAgentOptions
>
Returns
AxAgent
<IN
, OUT
>
Defined in
Methods
forward()
forward(
values
,options
?):Promise
<OUT
>
Parameters
• values: IN
• options?: Readonly
<AxProgramForwardOptions
>
Returns
Promise
<OUT
>
Defined in
getFunction()
getFunction():
AxFunction
Returns
Implementation of
Defined in
getTraces()
getTraces():
AxProgramTrace
[]
Returns
Implementation of
Defined in
getUsage()
getUsage():
AxTokenUsage
&object
[]
Returns
AxTokenUsage
& object
[]
Implementation of
Defined in
resetUsage()
resetUsage():
void
Returns
void
Implementation of
Defined in
setDemos()
setDemos(
demos
):void
Parameters
• demos: readonly AxProgramDemos
[]
Returns
void
Implementation of
Defined in
setExamples()
setExamples(
examples
):void
Parameters
• examples: Readonly
<AxProgramExamples
>
Returns
void
Implementation of
Defined in
setId()
setId(
id
):void
Parameters
• id: string
Returns
void
Implementation of
Defined in
setParentId()
setParentId(
parentId
):void
Parameters
• parentId: string
Returns
void