Preparing search index...
The search index is not available
@iqai/adk API Documentation
@iqai/adk API Documentation
Flows
BaseLlmFlow
Class BaseLlmFlow
Abstract
Hierarchy (
view full
)
BaseLlmFlow
SingleFlow
Index
Constructors
constructor
Properties
request
Processors
response
Processors
logger
Methods
run
Async
run
Live
_run
One
Step
Async
_preprocess
Async
_postprocess
Async
_postprocess
Live
_postprocess
Run
Processors
Async
_postprocess
Handle
Function
Calls
Async
_get
Agent
To
Run
_call
Llm
Async
_handle
Before
Model
Callback
_handle
After
Model
Callback
_finalize
Model
Response
Event
__get
Llm
Constructors
constructor
new
Base
Llm
Flow
(
)
:
BaseLlmFlow
Returns
BaseLlmFlow
Properties
request
Processors
request
Processors
:
any
[]
= []
response
Processors
response
Processors
:
any
[]
= []
Protected
logger
logger
:
Logger
= ...
Methods
run
Async
run
Async
(
invocationContext
)
:
AsyncGenerator
<
Event
,
any
,
any
>
Parameters
invocationContext
:
InvocationContext
Returns
AsyncGenerator
<
Event
,
any
,
any
>
run
Live
run
Live
(
invocationContext
)
:
AsyncGenerator
<
Event
,
any
,
any
>
Parameters
invocationContext
:
InvocationContext
Returns
AsyncGenerator
<
Event
,
any
,
any
>
_run
One
Step
Async
_run
One
Step
Async
(
invocationContext
)
:
AsyncGenerator
<
Event
,
any
,
any
>
Parameters
invocationContext
:
InvocationContext
Returns
AsyncGenerator
<
Event
,
any
,
any
>
_preprocess
Async
_preprocess
Async
(
invocationContext
,
llmRequest
)
:
AsyncGenerator
<
Event
,
any
,
any
>
Parameters
invocationContext
:
InvocationContext
llmRequest
:
LlmRequest
Returns
AsyncGenerator
<
Event
,
any
,
any
>
_postprocess
Async
_postprocess
Async
(
invocationContext
,
llmRequest
,
llmResponse
,
modelResponseEvent
)
:
AsyncGenerator
<
Event
,
any
,
any
>
Parameters
invocationContext
:
InvocationContext
llmRequest
:
LlmRequest
llmResponse
:
LlmResponse
modelResponseEvent
:
Event
Returns
AsyncGenerator
<
Event
,
any
,
any
>
_postprocess
Live
_postprocess
Live
(
invocationContext
,
llmRequest
,
llmResponse
,
modelResponseEvent
)
:
AsyncGenerator
<
Event
,
any
,
any
>
Parameters
invocationContext
:
InvocationContext
llmRequest
:
LlmRequest
llmResponse
:
LlmResponse
modelResponseEvent
:
Event
Returns
AsyncGenerator
<
Event
,
any
,
any
>
_postprocess
Run
Processors
Async
_postprocess
Run
Processors
Async
(
invocationContext
,
llmResponse
)
:
AsyncGenerator
<
Event
,
any
,
any
>
Parameters
invocationContext
:
InvocationContext
llmResponse
:
LlmResponse
Returns
AsyncGenerator
<
Event
,
any
,
any
>
_postprocess
Handle
Function
Calls
Async
_postprocess
Handle
Function
Calls
Async
(
invocationContext
,
functionCallEvent
,
llmRequest
)
:
AsyncGenerator
<
Event
,
any
,
any
>
Parameters
invocationContext
:
InvocationContext
functionCallEvent
:
Event
llmRequest
:
LlmRequest
Returns
AsyncGenerator
<
Event
,
any
,
any
>
_get
Agent
To
Run
_get
Agent
To
Run
(
invocationContext
,
agentName
)
:
BaseAgent
Parameters
invocationContext
:
InvocationContext
agentName
:
string
Returns
BaseAgent
_call
Llm
Async
_call
Llm
Async
(
invocationContext
,
llmRequest
,
modelResponseEvent
)
:
AsyncGenerator
<
LlmResponse
,
any
,
any
>
Parameters
invocationContext
:
InvocationContext
llmRequest
:
LlmRequest
modelResponseEvent
:
Event
Returns
AsyncGenerator
<
LlmResponse
,
any
,
any
>
_handle
Before
Model
Callback
_handle
Before
Model
Callback
(
invocationContext
,
llmRequest
,
modelResponseEvent
)
:
Promise
<
LlmResponse
>
Parameters
invocationContext
:
InvocationContext
llmRequest
:
LlmRequest
modelResponseEvent
:
Event
Returns
Promise
<
LlmResponse
>
_handle
After
Model
Callback
_handle
After
Model
Callback
(
invocationContext
,
llmResponse
,
modelResponseEvent
)
:
Promise
<
LlmResponse
>
Parameters
invocationContext
:
InvocationContext
llmResponse
:
LlmResponse
modelResponseEvent
:
Event
Returns
Promise
<
LlmResponse
>
_finalize
Model
Response
Event
_finalize
Model
Response
Event
(
llmRequest
,
llmResponse
,
modelResponseEvent
)
:
Event
Parameters
llmRequest
:
LlmRequest
llmResponse
:
LlmResponse
modelResponseEvent
:
Event
Returns
Event
__get
Llm
__get
Llm
(
invocationContext
)
:
BaseLlm
Parameters
invocationContext
:
InvocationContext
Returns
BaseLlm
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
request
Processors
response
Processors
logger
Methods
run
Async
run
Live
_run
One
Step
Async
_preprocess
Async
_postprocess
Async
_postprocess
Live
_postprocess
Run
Processors
Async
_postprocess
Handle
Function
Calls
Async
_get
Agent
To
Run
_call
Llm
Async
_handle
Before
Model
Callback
_handle
After
Model
Callback
_finalize
Model
Response
Event
__get
Llm
@iqai/adk API Documentation
Loading...