Package akka.javasdk.client
Interface AgentReplyInvokeOnlyMethodRef1<A1,R>
- Type Parameters:
A1- The argument type of the callR- 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 Summary
Modifier and TypeMethodDescriptionExecute the call and block until the response is available.invokeAsync(A1 arg) Execute the call asynchronously.
-
Method Details
-
invoke
Execute the call and block until the response is available.- Parameters:
arg- The method argument- Returns:
- The agent reply including the result value
-
invokeAsync
Execute the call asynchronously.- Parameters:
arg- The method argument- Returns:
- A CompletionStage that completes with the agent reply including the result value
-