Interface AgentReplyInvokeOnlyMethodRef<R>

Type Parameters:
R - The type of value returned by executing the call

@DoNotInherit public interface AgentReplyInvokeOnlyMethodRef<R>
Zero argument agent component call representation, returning a detailed reply including token usage, not executed until invoked.

Not for user extension or instantiation, returned by the SDK component client

  • Method Details

    • invoke

      Agent.AgentReply<R> invoke()
      Execute the call and block until the response is available.
      Returns:
      The agent reply including the result value
    • invokeAsync

      Execute the call asynchronously.
      Returns:
      A CompletionStage that completes with the agent reply including the result value