Skip to content

Commit 7eff028

Browse files
committed
client reference docs
1 parent 567b2d6 commit 7eff028

File tree

9 files changed

+342
-266
lines changed

9 files changed

+342
-266
lines changed

docs/docs.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@
7171
"pages": [
7272
"sdk/js/client/overview",
7373
"sdk/js/client/abstract-agent",
74-
"sdk/js/client/subscriber",
75-
"sdk/js/client/http-agent"
74+
"sdk/js/client/http-agent",
75+
"sdk/js/client/subscriber"
7676
]
7777
},
7878
"sdk/js/encoder",

docs/sdk/js/client/overview.mdx

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -38,31 +38,6 @@ own service or agent implementation to AG-UI.
3838
Base class for creating custom agent connections
3939
</Card>
4040

41-
## RunAgentSubscriber
42-
43-
Event-driven subscriber system for handling agent lifecycle events and state
44-
mutations during agent execution:
45-
46-
- [Event Handlers](/sdk/js/client/subscriber#event-handlers) - Lifecycle,
47-
message, tool call, and state events
48-
- [State Management](/sdk/js/client/subscriber#state-management) - Mutation
49-
control and propagation handling
50-
- [Usage Examples](/sdk/js/client/subscriber#usage-examples) - Logging,
51-
persistence, and error handling patterns
52-
- [Integration](/sdk/js/client/subscriber#integration-with-agents) - Registering
53-
and using subscribers with agents
54-
55-
<Card
56-
title="RunAgentSubscriber Reference"
57-
icon="bolt"
58-
href="/sdk/js/client/subscriber"
59-
color="#3B82F6"
60-
iconType="solid"
61-
>
62-
Comprehensive event system for reactive agent interaction and middleware-style
63-
functionality
64-
</Card>
65-
6641
## HttpAgent
6742

6843
Concrete implementation for HTTP-based agent connectivity:
@@ -85,3 +60,28 @@ Concrete implementation for HTTP-based agent connectivity:
8560
Ready-to-use HTTP implementation for agent connectivity, using a highly
8661
efficient event encoding format
8762
</Card>
63+
64+
## AgentSubscriber
65+
66+
Event-driven subscriber system for handling agent lifecycle events and state
67+
mutations during agent execution:
68+
69+
- [Event Handlers](/sdk/js/client/subscriber#event-handlers) - Lifecycle,
70+
message, tool call, and state events
71+
- [State Management](/sdk/js/client/subscriber#state-management) - Mutation
72+
control and propagation handling
73+
- [Usage Examples](/sdk/js/client/subscriber#usage-examples) - Logging,
74+
persistence, and error handling patterns
75+
- [Integration](/sdk/js/client/subscriber#integration-with-agents) - Registering
76+
and using subscribers with agents
77+
78+
<Card
79+
title="AgentSubscriber Reference"
80+
icon="bolt"
81+
href="/sdk/js/client/subscriber"
82+
color="#3B82F6"
83+
iconType="solid"
84+
>
85+
Comprehensive event system for reactive agent interaction and middleware-style
86+
functionality
87+
</Card>

0 commit comments

Comments
 (0)