fromAgent
inline fun <Input, Output> fromAgent(agent: GraphAIAgent<Input, Output>): AIAgentService<Input, Output>(source)
Converts a given GraphAIAgent
instance into an AIAgentService
instance.
Return
An AIAgentService
instance constructed from the provided GraphAIAgent
.
Parameters
Input
The input type that the agent processes.
Output
The output type that the agent produces.
agent
The GraphAIAgent
to be converted into a service instance.
fun <Input, Output> fromAgent(agent: FunctionalAIAgent<Input, Output>): AIAgentService<Input, Output>(source)
Creates a new instance of AIAgentService
by transforming a given FunctionalAIAgent
.
Return
A new AIAgentService
instance configured with the parameters of the provided agent.
Parameters
Input
The type of input data expected by the agent.
Output
The type of output data produced by the agent.
agent
The FunctionalAIAgent
to be transformed into an AIAgentService
.