File tree Expand file tree Collapse file tree
src/main/java/io/github/easy4j/codex/appserver Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ /*
2+ * Copyright (c) 2018-present, easy-4-java (https://github.com/easy-4-java).
3+ *
4+ * Licensed under the Apache License, Version 2.0 (the "License");
5+ * you may not use this file except in compliance with the License.
6+ */
7+ package io .github .easy4j .codex .appserver ;
8+
9+ /**
10+ * Listener for high-value Codex app-server turn events.
11+ *
12+ * <p>All methods are optional. Implementations should return quickly because
13+ * callbacks are invoked on the WebSocket event path.</p>
14+ */
15+ public interface CodexAppServerListener {
16+
17+ default void onTurnStarted (String turnId ) {
18+ }
19+
20+ default void onTextDelta (String delta ) {
21+ }
22+
23+ default void onItemCompleted (String itemType , String content ) {
24+ }
25+
26+ default void onTokenUsage (String rawJson ) {
27+ }
28+
29+ default void onWarning (String rawJson ) {
30+ }
31+ }
You can’t perform that action at this time.
0 commit comments