You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 738efd8
Browse filesBrowse the repository at this point in the historyBrowse files
Mark Pollack
committed
Javadoc: annotation runtime and its extension SPI (pass 1, batch B06)
Copy file name to clipboardExpand all lines: acp-agent-support/src/main/java/com/agentclientprotocol/sdk/agent/support/handler/ReturnValueHandlerComposite.java
+27-11Lines changed: 27 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -12,10 +12,15 @@
12
12
importorg.jspecify.annotations.Nullable;
13
13
14
14
/**
15
-
* Composite that chains multiple return value handlers.
15
+
* A {@link ReturnValueHandler} that asks a list of handlers in order and uses the first that
16
+
* supports a return type. The annotation runtime builds one each time an agent is built, with the
17
+
* custom handlers first and the built-in ones after, and turns every handler method's result into
18
+
* its response through it. Applications register handlers on {@code AcpAgentSupport.Builder} and do
19
+
* not need this class.
16
20
*
17
-
* <p>NOTE: Unlike argument resolvers, NO caching is used here.
18
-
* Return types vary more and caching provides less benefit.
Copy file name to clipboardExpand all lines: acp-agent-support/src/main/java/com/agentclientprotocol/sdk/agent/support/handler/ReturnValueHandlingException.java
0 commit comments