runAndGetResult

open suspend override fun runAndGetResult(agentInput: String): String?(source)

Executes the AI agent with the given prompt and retrieves the resulting output.

Return

the response generated by the AI agent, or null if no result is available

Parameters

agentInput

the input text used to guide the behavior or response of the AI agent