runAndGetResult
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