Interface AgentReplyInvokeOnlyMethodRef1<A1,R>

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

@DoNotInherit public interface AgentReplyInvokeOnlyMethodRef1<A1,R>
One 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(A1 arg)
      Execute the call and block until the response is available.
      Parameters:
      arg - The method argument
      Returns:
      The agent reply including the result value
    • invokeAsync

      CompletionStage<Agent.AgentReply<R>> invokeAsync(A1 arg)
      Execute the call asynchronously.
      Parameters:
      arg - The method argument
      Returns:
      A CompletionStage that completes with the agent reply including the result value