yera 0.1.0__py3-none-any.whl → 0.2.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- infra_mvp/base_client.py +29 -0
- infra_mvp/base_server.py +68 -0
- infra_mvp/monitoring/__init__.py +15 -0
- infra_mvp/monitoring/metrics.py +185 -0
- infra_mvp/stream/README.md +56 -0
- infra_mvp/stream/__init__.py +14 -0
- infra_mvp/stream/__main__.py +101 -0
- infra_mvp/stream/agents/demos/financial/chart_additions_plan.md +170 -0
- infra_mvp/stream/agents/demos/financial/portfolio_assistant_stream.json +1571 -0
- infra_mvp/stream/agents/reference/blocks/action.json +170 -0
- infra_mvp/stream/agents/reference/blocks/button.json +66 -0
- infra_mvp/stream/agents/reference/blocks/date.json +65 -0
- infra_mvp/stream/agents/reference/blocks/input_prompt.json +94 -0
- infra_mvp/stream/agents/reference/blocks/layout.json +288 -0
- infra_mvp/stream/agents/reference/blocks/markdown.json +344 -0
- infra_mvp/stream/agents/reference/blocks/slider.json +67 -0
- infra_mvp/stream/agents/reference/blocks/spinner.json +110 -0
- infra_mvp/stream/agents/reference/blocks/table.json +56 -0
- infra_mvp/stream/agents/reference/chat_dynamics/branching_test_stream.json +145 -0
- infra_mvp/stream/app.py +49 -0
- infra_mvp/stream/container.py +112 -0
- infra_mvp/stream/schemas/__init__.py +16 -0
- infra_mvp/stream/schemas/agent.py +24 -0
- infra_mvp/stream/schemas/interaction.py +28 -0
- infra_mvp/stream/schemas/session.py +30 -0
- infra_mvp/stream/server.py +321 -0
- infra_mvp/stream/services/__init__.py +12 -0
- infra_mvp/stream/services/agent_service.py +40 -0
- infra_mvp/stream/services/event_converter.py +83 -0
- infra_mvp/stream/services/session_service.py +247 -0
- yera/__init__.py +50 -1
- yera/agents/__init__.py +2 -0
- yera/agents/context.py +41 -0
- yera/agents/dataclasses.py +69 -0
- yera/agents/decorator.py +207 -0
- yera/agents/discovery.py +124 -0
- yera/agents/typing/__init__.py +0 -0
- yera/agents/typing/coerce.py +408 -0
- yera/agents/typing/utils.py +19 -0
- yera/agents/typing/validate.py +206 -0
- yera/cli.py +377 -0
- yera/config/__init__.py +1 -0
- yera/config/config_utils.py +164 -0
- yera/config/function_config.py +55 -0
- yera/config/logging.py +18 -0
- yera/config/tool_config.py +8 -0
- yera/config2/__init__.py +8 -0
- yera/config2/dataclasses.py +534 -0
- yera/config2/keyring.py +270 -0
- yera/config2/paths.py +28 -0
- yera/config2/read.py +113 -0
- yera/config2/setup.py +109 -0
- yera/config2/setup_handlers/__init__.py +1 -0
- yera/config2/setup_handlers/anthropic.py +126 -0
- yera/config2/setup_handlers/azure.py +236 -0
- yera/config2/setup_handlers/base.py +125 -0
- yera/config2/setup_handlers/llama_cpp.py +205 -0
- yera/config2/setup_handlers/ollama.py +157 -0
- yera/config2/setup_handlers/openai.py +137 -0
- yera/config2/write.py +87 -0
- yera/dsl/__init__.py +0 -0
- yera/dsl/functions.py +94 -0
- yera/dsl/struct.py +20 -0
- yera/dsl/workspace.py +79 -0
- yera/events/__init__.py +57 -0
- yera/events/blocks/__init__.py +68 -0
- yera/events/blocks/action.py +57 -0
- yera/events/blocks/bar_chart.py +92 -0
- yera/events/blocks/base/__init__.py +20 -0
- yera/events/blocks/base/base.py +166 -0
- yera/events/blocks/base/chart.py +288 -0
- yera/events/blocks/base/layout.py +111 -0
- yera/events/blocks/buttons.py +37 -0
- yera/events/blocks/columns.py +26 -0
- yera/events/blocks/container.py +24 -0
- yera/events/blocks/date_picker.py +50 -0
- yera/events/blocks/exit.py +39 -0
- yera/events/blocks/form.py +24 -0
- yera/events/blocks/input_echo.py +22 -0
- yera/events/blocks/input_request.py +31 -0
- yera/events/blocks/line_chart.py +97 -0
- yera/events/blocks/markdown.py +67 -0
- yera/events/blocks/slider.py +54 -0
- yera/events/blocks/spinner.py +55 -0
- yera/events/blocks/system_prompt.py +22 -0
- yera/events/blocks/table.py +291 -0
- yera/events/models/__init__.py +39 -0
- yera/events/models/block_data.py +112 -0
- yera/events/models/in_event.py +7 -0
- yera/events/models/out_event.py +75 -0
- yera/events/runtime.py +187 -0
- yera/events/stream.py +91 -0
- yera/models/__init__.py +0 -0
- yera/models/data_classes.py +20 -0
- yera/models/llm_atlas_proxy.py +44 -0
- yera/models/llm_context.py +99 -0
- yera/models/llm_interfaces/__init__.py +0 -0
- yera/models/llm_interfaces/anthropic.py +153 -0
- yera/models/llm_interfaces/aws_bedrock.py +14 -0
- yera/models/llm_interfaces/azure_openai.py +143 -0
- yera/models/llm_interfaces/base.py +26 -0
- yera/models/llm_interfaces/interface_registry.py +74 -0
- yera/models/llm_interfaces/llama_cpp.py +136 -0
- yera/models/llm_interfaces/mock.py +29 -0
- yera/models/llm_interfaces/ollama_interface.py +118 -0
- yera/models/llm_interfaces/open_ai.py +150 -0
- yera/models/llm_workspace.py +19 -0
- yera/models/model_atlas.py +139 -0
- yera/models/model_definition.py +38 -0
- yera/models/model_factory.py +33 -0
- yera/opaque/__init__.py +9 -0
- yera/opaque/base.py +20 -0
- yera/opaque/decorator.py +8 -0
- yera/opaque/markdown.py +57 -0
- yera/opaque/opaque_function.py +25 -0
- yera/tools/__init__.py +29 -0
- yera/tools/atlas_tool.py +20 -0
- yera/tools/base.py +24 -0
- yera/tools/decorated_tool.py +18 -0
- yera/tools/decorator.py +35 -0
- yera/tools/tool_atlas.py +51 -0
- yera/tools/tool_utils.py +361 -0
- yera/ui/dist/404.html +1 -0
- yera/ui/dist/__next.__PAGE__.txt +10 -0
- yera/ui/dist/__next._full.txt +23 -0
- yera/ui/dist/__next._head.txt +6 -0
- yera/ui/dist/__next._index.txt +5 -0
- yera/ui/dist/__next._tree.txt +7 -0
- yera/ui/dist/_next/static/chunks/4c4688e1ff21ad98.js +1 -0
- yera/ui/dist/_next/static/chunks/652cd53c27924d50.js +4 -0
- yera/ui/dist/_next/static/chunks/786d2107b51e8499.css +1 -0
- yera/ui/dist/_next/static/chunks/7de9141b1af425c3.js +1 -0
- yera/ui/dist/_next/static/chunks/87ef65064d3524c1.js +2 -0
- yera/ui/dist/_next/static/chunks/a6dad97d9634a72d.js +1 -0
- yera/ui/dist/_next/static/chunks/a6dad97d9634a72d.js.map +1 -0
- yera/ui/dist/_next/static/chunks/c4c79d5d0b280aeb.js +1 -0
- yera/ui/dist/_next/static/chunks/dc2d2a247505d66f.css +5 -0
- yera/ui/dist/_next/static/chunks/f773f714b55ec620.js +37 -0
- yera/ui/dist/_next/static/chunks/turbopack-98b3031e1b1dbc33.js +4 -0
- yera/ui/dist/_next/static/lnhYLzJ1-a5EfNbW1uFF6/_buildManifest.js +11 -0
- yera/ui/dist/_next/static/lnhYLzJ1-a5EfNbW1uFF6/_clientMiddlewareManifest.json +1 -0
- yera/ui/dist/_next/static/lnhYLzJ1-a5EfNbW1uFF6/_ssgManifest.js +1 -0
- yera/ui/dist/_next/static/media/14e23f9b59180572-s.9c448f3c.woff2 +0 -0
- yera/ui/dist/_next/static/media/2a65768255d6b625-s.p.d19752fb.woff2 +0 -0
- yera/ui/dist/_next/static/media/2b2eb4836d2dad95-s.f36de3af.woff2 +0 -0
- yera/ui/dist/_next/static/media/31183d9fd602dc89-s.c4ff9b73.woff2 +0 -0
- yera/ui/dist/_next/static/media/3fcb63a1ac6a562e-s.2f77a576.woff2 +0 -0
- yera/ui/dist/_next/static/media/45ec8de98929b0f6-s.81056204.woff2 +0 -0
- yera/ui/dist/_next/static/media/4fa387ec64143e14-s.c1fdd6c2.woff2 +0 -0
- yera/ui/dist/_next/static/media/65c558afe41e89d6-s.e2c8389a.woff2 +0 -0
- yera/ui/dist/_next/static/media/67add6cc0f54b8cf-s.8ce53448.woff2 +0 -0
- yera/ui/dist/_next/static/media/7178b3e590c64307-s.b97b3418.woff2 +0 -0
- yera/ui/dist/_next/static/media/797e433ab948586e-s.p.dbea232f.woff2 +0 -0
- yera/ui/dist/_next/static/media/8a480f0b521d4e75-s.8e0177b5.woff2 +0 -0
- yera/ui/dist/_next/static/media/a8ff2d5d0ccb0d12-s.fc5b72a7.woff2 +0 -0
- yera/ui/dist/_next/static/media/aae5f0be330e13db-s.p.853e26d6.woff2 +0 -0
- yera/ui/dist/_next/static/media/b11a6ccf4a3edec7-s.2113d282.woff2 +0 -0
- yera/ui/dist/_next/static/media/b49b0d9b851e4899-s.4f3fa681.woff2 +0 -0
- yera/ui/dist/_next/static/media/bbc41e54d2fcbd21-s.799d8ef8.woff2 +0 -0
- yera/ui/dist/_next/static/media/caa3a2e1cccd8315-s.p.853070df.woff2 +0 -0
- yera/ui/dist/_next/static/media/favicon.0b3bf435.ico +0 -0
- yera/ui/dist/_not-found/__next._full.txt +14 -0
- yera/ui/dist/_not-found/__next._head.txt +6 -0
- yera/ui/dist/_not-found/__next._index.txt +5 -0
- yera/ui/dist/_not-found/__next._not-found.__PAGE__.txt +5 -0
- yera/ui/dist/_not-found/__next._not-found.txt +4 -0
- yera/ui/dist/_not-found/__next._tree.txt +2 -0
- yera/ui/dist/_not-found.html +1 -0
- yera/ui/dist/_not-found.txt +14 -0
- yera/ui/dist/agent-icon.svg +3 -0
- yera/ui/dist/favicon.ico +0 -0
- yera/ui/dist/file.svg +1 -0
- yera/ui/dist/globe.svg +1 -0
- yera/ui/dist/index.html +1 -0
- yera/ui/dist/index.txt +23 -0
- yera/ui/dist/logo/full_logo.png +0 -0
- yera/ui/dist/logo/rune_logo.png +0 -0
- yera/ui/dist/logo/rune_logo_borderless.png +0 -0
- yera/ui/dist/logo/text_logo.png +0 -0
- yera/ui/dist/next.svg +1 -0
- yera/ui/dist/send.png +0 -0
- yera/ui/dist/send_single.png +0 -0
- yera/ui/dist/vercel.svg +1 -0
- yera/ui/dist/window.svg +1 -0
- yera/utils/__init__.py +1 -0
- yera/utils/path_utils.py +38 -0
- yera-0.2.0.dist-info/METADATA +65 -0
- yera-0.2.0.dist-info/RECORD +190 -0
- {yera-0.1.0.dist-info → yera-0.2.0.dist-info}/WHEEL +1 -1
- yera-0.2.0.dist-info/entry_points.txt +2 -0
- yera-0.1.0.dist-info/METADATA +0 -11
- yera-0.1.0.dist-info/RECORD +0 -4
|
@@ -0,0 +1,344 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "Markdown Block",
|
|
3
|
+
"description": "Markdown Blocks allow formatted text content to be streamed to the UI as a series of chunks.",
|
|
4
|
+
"branches": {
|
|
5
|
+
"start": [
|
|
6
|
+
{
|
|
7
|
+
"message_type": "informational",
|
|
8
|
+
"block_type": "markdown",
|
|
9
|
+
"block_id": "intro",
|
|
10
|
+
"data": {
|
|
11
|
+
"content": "Markdown Blocks allow formatted text content to be streamed to the UI as a series of chunks."
|
|
12
|
+
},
|
|
13
|
+
"timestamp": "2025-01-15T10:00:00Z",
|
|
14
|
+
"chunk_id": 1,
|
|
15
|
+
"agent": {
|
|
16
|
+
"name": "Markdown Agent",
|
|
17
|
+
"instance_id": 1
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"message_type": "informational",
|
|
22
|
+
"block_type": "markdown",
|
|
23
|
+
"block_id": "div_1",
|
|
24
|
+
"data": {
|
|
25
|
+
"content": "---"
|
|
26
|
+
},
|
|
27
|
+
"timestamp": "2025-01-15T10:00:00Z",
|
|
28
|
+
"chunk_id": 1,
|
|
29
|
+
"agent": {
|
|
30
|
+
"name": "Markdown Agent",
|
|
31
|
+
"instance_id": 1
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"message_type": "informational",
|
|
36
|
+
"block_type": "markdown",
|
|
37
|
+
"block_id": "markdown-multi-chunk",
|
|
38
|
+
"data": {
|
|
39
|
+
"content": "## Multi-Chunk Streaming Example\n\n"
|
|
40
|
+
},
|
|
41
|
+
"timestamp": "2025-01-15T10:00:10Z",
|
|
42
|
+
"chunk_id": 1,
|
|
43
|
+
"agent": {
|
|
44
|
+
"name": "Markdown Agent",
|
|
45
|
+
"instance_id": 1
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"message_type": "informational",
|
|
50
|
+
"block_type": "markdown",
|
|
51
|
+
"block_id": "markdown-multi-chunk",
|
|
52
|
+
"data": {
|
|
53
|
+
"content": "This message demonstrates "
|
|
54
|
+
},
|
|
55
|
+
"timestamp": "2025-01-15T10:00:10Z",
|
|
56
|
+
"chunk_id": 2,
|
|
57
|
+
"agent": {
|
|
58
|
+
"name": "Markdown Agent",
|
|
59
|
+
"instance_id": 1
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"message_type": "informational",
|
|
64
|
+
"block_type": "markdown",
|
|
65
|
+
"block_id": "markdown-multi-chunk",
|
|
66
|
+
"data": {
|
|
67
|
+
"content": "how markdown content "
|
|
68
|
+
},
|
|
69
|
+
"timestamp": "2025-01-15T10:00:10Z",
|
|
70
|
+
"chunk_id": 3,
|
|
71
|
+
"agent": {
|
|
72
|
+
"name": "Markdown Agent",
|
|
73
|
+
"instance_id": 1
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"message_type": "informational",
|
|
78
|
+
"block_type": "markdown",
|
|
79
|
+
"block_id": "markdown-multi-chunk",
|
|
80
|
+
"data": {
|
|
81
|
+
"content": "can be **streamed incrementally** "
|
|
82
|
+
},
|
|
83
|
+
"timestamp": "2025-01-15T10:00:10Z",
|
|
84
|
+
"chunk_id": 4,
|
|
85
|
+
"agent": {
|
|
86
|
+
"name": "Markdown Agent",
|
|
87
|
+
"instance_id": 1
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"message_type": "informational",
|
|
92
|
+
"block_type": "markdown",
|
|
93
|
+
"block_id": "markdown-multi-chunk",
|
|
94
|
+
"data": {
|
|
95
|
+
"content": "as a series of chunks. "
|
|
96
|
+
},
|
|
97
|
+
"timestamp": "2025-01-15T10:00:10Z",
|
|
98
|
+
"chunk_id": 5,
|
|
99
|
+
"agent": {
|
|
100
|
+
"name": "Markdown Agent",
|
|
101
|
+
"instance_id": 1
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"message_type": "informational",
|
|
106
|
+
"block_type": "markdown",
|
|
107
|
+
"block_id": "markdown-multi-chunk",
|
|
108
|
+
"data": {
|
|
109
|
+
"content": "Each chunk "
|
|
110
|
+
},
|
|
111
|
+
"timestamp": "2025-01-15T10:00:10Z",
|
|
112
|
+
"chunk_id": 6,
|
|
113
|
+
"agent": {
|
|
114
|
+
"name": "Markdown Agent",
|
|
115
|
+
"instance_id": 1
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"message_type": "informational",
|
|
120
|
+
"block_type": "markdown",
|
|
121
|
+
"block_id": "markdown-multi-chunk",
|
|
122
|
+
"data": {
|
|
123
|
+
"content": "appends to the previous content, "
|
|
124
|
+
},
|
|
125
|
+
"timestamp": "2025-01-15T10:00:10Z",
|
|
126
|
+
"chunk_id": 7,
|
|
127
|
+
"agent": {
|
|
128
|
+
"name": "Markdown Agent",
|
|
129
|
+
"instance_id": 1
|
|
130
|
+
}
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
"message_type": "informational",
|
|
134
|
+
"block_type": "markdown",
|
|
135
|
+
"block_id": "markdown-multi-chunk",
|
|
136
|
+
"data": {
|
|
137
|
+
"content": "creating a **smooth streaming experience**.\n\n"
|
|
138
|
+
},
|
|
139
|
+
"timestamp": "2025-01-15T10:00:10Z",
|
|
140
|
+
"chunk_id": 8,
|
|
141
|
+
"agent": {
|
|
142
|
+
"name": "Markdown Agent",
|
|
143
|
+
"instance_id": 1
|
|
144
|
+
}
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
"message_type": "informational",
|
|
148
|
+
"block_type": "markdown",
|
|
149
|
+
"block_id": "markdown-multi-chunk",
|
|
150
|
+
"data": {
|
|
151
|
+
"content": "### Streaming Benefits\n\n"
|
|
152
|
+
},
|
|
153
|
+
"timestamp": "2025-01-15T10:00:10Z",
|
|
154
|
+
"chunk_id": 9,
|
|
155
|
+
"agent": {
|
|
156
|
+
"name": "Markdown Agent",
|
|
157
|
+
"instance_id": 1
|
|
158
|
+
}
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
"message_type": "informational",
|
|
162
|
+
"block_type": "markdown",
|
|
163
|
+
"block_id": "markdown-multi-chunk",
|
|
164
|
+
"data": {
|
|
165
|
+
"content": "- **Progressive rendering** - "
|
|
166
|
+
},
|
|
167
|
+
"timestamp": "2025-01-15T10:00:10Z",
|
|
168
|
+
"chunk_id": 10,
|
|
169
|
+
"agent": {
|
|
170
|
+
"name": "Markdown Agent",
|
|
171
|
+
"instance_id": 1
|
|
172
|
+
}
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
"message_type": "informational",
|
|
176
|
+
"block_type": "markdown",
|
|
177
|
+
"block_id": "markdown-multi-chunk",
|
|
178
|
+
"data": {
|
|
179
|
+
"content": "Content appears as it's generated\n"
|
|
180
|
+
},
|
|
181
|
+
"timestamp": "2025-01-15T10:00:10Z",
|
|
182
|
+
"chunk_id": 11,
|
|
183
|
+
"agent": {
|
|
184
|
+
"name": "Markdown Agent",
|
|
185
|
+
"instance_id": 1
|
|
186
|
+
}
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
"message_type": "informational",
|
|
190
|
+
"block_type": "markdown",
|
|
191
|
+
"block_id": "markdown-multi-chunk",
|
|
192
|
+
"data": {
|
|
193
|
+
"content": "- **Better UX** - "
|
|
194
|
+
},
|
|
195
|
+
"timestamp": "2025-01-15T10:00:10Z",
|
|
196
|
+
"chunk_id": 12,
|
|
197
|
+
"agent": {
|
|
198
|
+
"name": "Markdown Agent",
|
|
199
|
+
"instance_id": 1
|
|
200
|
+
}
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
"message_type": "informational",
|
|
204
|
+
"block_type": "markdown",
|
|
205
|
+
"block_id": "markdown-multi-chunk",
|
|
206
|
+
"data": {
|
|
207
|
+
"content": "Users see updates in real-time\n"
|
|
208
|
+
},
|
|
209
|
+
"timestamp": "2025-01-15T10:00:10Z",
|
|
210
|
+
"chunk_id": 13,
|
|
211
|
+
"agent": {
|
|
212
|
+
"name": "Markdown Agent",
|
|
213
|
+
"instance_id": 1
|
|
214
|
+
}
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
"message_type": "informational",
|
|
218
|
+
"block_type": "markdown",
|
|
219
|
+
"block_id": "markdown-multi-chunk",
|
|
220
|
+
"data": {
|
|
221
|
+
"content": "- **Flexible formatting** - "
|
|
222
|
+
},
|
|
223
|
+
"timestamp": "2025-01-15T10:00:10Z",
|
|
224
|
+
"chunk_id": 14,
|
|
225
|
+
"agent": {
|
|
226
|
+
"name": "Markdown Agent",
|
|
227
|
+
"instance_id": 1
|
|
228
|
+
}
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
"message_type": "informational",
|
|
232
|
+
"block_type": "markdown",
|
|
233
|
+
"block_id": "markdown-multi-chunk",
|
|
234
|
+
"data": {
|
|
235
|
+
"content": "Markdown works across chunks\n\n"
|
|
236
|
+
},
|
|
237
|
+
"timestamp": "2025-01-15T10:00:10Z",
|
|
238
|
+
"chunk_id": 15,
|
|
239
|
+
"agent": {
|
|
240
|
+
"name": "Markdown Agent",
|
|
241
|
+
"instance_id": 1
|
|
242
|
+
}
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
"message_type": "informational",
|
|
246
|
+
"block_type": "markdown",
|
|
247
|
+
"block_id": "markdown-multi-chunk",
|
|
248
|
+
"data": {
|
|
249
|
+
"content": "### Advanced Formatting\n\n"
|
|
250
|
+
},
|
|
251
|
+
"timestamp": "2025-01-15T10:00:10Z",
|
|
252
|
+
"chunk_id": 16,
|
|
253
|
+
"agent": {
|
|
254
|
+
"name": "Markdown Agent",
|
|
255
|
+
"instance_id": 1
|
|
256
|
+
}
|
|
257
|
+
},
|
|
258
|
+
{
|
|
259
|
+
"message_type": "informational",
|
|
260
|
+
"block_type": "markdown",
|
|
261
|
+
"block_id": "markdown-multi-chunk",
|
|
262
|
+
"data": {
|
|
263
|
+
"content": "Even complex markdown like:\n\n"
|
|
264
|
+
},
|
|
265
|
+
"timestamp": "2025-01-15T10:00:10Z",
|
|
266
|
+
"chunk_id": 17,
|
|
267
|
+
"agent": {
|
|
268
|
+
"name": "Markdown Agent",
|
|
269
|
+
"instance_id": 1
|
|
270
|
+
}
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
"message_type": "informational",
|
|
274
|
+
"block_type": "markdown",
|
|
275
|
+
"block_id": "markdown-multi-chunk",
|
|
276
|
+
"data": {
|
|
277
|
+
"content": "- Nested **lists** with *formatting*\n"
|
|
278
|
+
},
|
|
279
|
+
"timestamp": "2025-01-15T10:00:10Z",
|
|
280
|
+
"chunk_id": 18,
|
|
281
|
+
"agent": {
|
|
282
|
+
"name": "Markdown Agent",
|
|
283
|
+
"instance_id": 1
|
|
284
|
+
}
|
|
285
|
+
},
|
|
286
|
+
{
|
|
287
|
+
"message_type": "informational",
|
|
288
|
+
"block_type": "markdown",
|
|
289
|
+
"block_id": "markdown-multi-chunk",
|
|
290
|
+
"data": {
|
|
291
|
+
"content": "- `Code snippets` in lists\n"
|
|
292
|
+
},
|
|
293
|
+
"timestamp": "2025-01-15T10:00:10Z",
|
|
294
|
+
"chunk_id": 19,
|
|
295
|
+
"agent": {
|
|
296
|
+
"name": "Markdown Agent",
|
|
297
|
+
"instance_id": 1
|
|
298
|
+
}
|
|
299
|
+
},
|
|
300
|
+
{
|
|
301
|
+
"message_type": "informational",
|
|
302
|
+
"block_type": "markdown",
|
|
303
|
+
"block_id": "markdown-multi-chunk",
|
|
304
|
+
"data": {
|
|
305
|
+
"content": "- **Bold** and *italic* combinations\n\nWorks seamlessly when streamed across multiple chunks."
|
|
306
|
+
},
|
|
307
|
+
"timestamp": "2025-01-15T10:00:10Z",
|
|
308
|
+
"chunk_id": 20,
|
|
309
|
+
"agent": {
|
|
310
|
+
"name": "Markdown Agent",
|
|
311
|
+
"instance_id": 1
|
|
312
|
+
}
|
|
313
|
+
},
|
|
314
|
+
{
|
|
315
|
+
"message_type": "informational",
|
|
316
|
+
"block_type": "markdown",
|
|
317
|
+
"block_id": "div_2",
|
|
318
|
+
"data": {
|
|
319
|
+
"content": "---"
|
|
320
|
+
},
|
|
321
|
+
"timestamp": "2025-01-15T10:00:00Z",
|
|
322
|
+
"chunk_id": 1,
|
|
323
|
+
"agent": {
|
|
324
|
+
"name": "Markdown Agent",
|
|
325
|
+
"instance_id": 1
|
|
326
|
+
}
|
|
327
|
+
},
|
|
328
|
+
{
|
|
329
|
+
"message_type": "informational",
|
|
330
|
+
"block_type": "markdown",
|
|
331
|
+
"block_id": "markdown-single-chunk",
|
|
332
|
+
"data": {
|
|
333
|
+
"content": "## Single Chunk Example\n\nThis markdown block demonstrates **rich formatting** in a single chunk:\n\n- **Bold text** and *italic text*\n- `Inline code` and code blocks\n- Lists and nested structures\n- Links and emphasis\n\n### Features Demonstrated\n\n1. **Headers** - Multiple levels (H2, H3)\n2. **Text formatting** - Bold, italic, code\n3. **Lists** - Ordered and unordered\n4. **Structure** - Paragraphs and sections\n\n```\nCode blocks preserve formatting\nand show technical content clearly\n```\n\nThis entire block was sent as **one complete chunk**."
|
|
334
|
+
},
|
|
335
|
+
"timestamp": "2025-01-15T10:00:05Z",
|
|
336
|
+
"chunk_id": 1,
|
|
337
|
+
"agent": {
|
|
338
|
+
"name": "Markdown Agent",
|
|
339
|
+
"instance_id": 1
|
|
340
|
+
}
|
|
341
|
+
}
|
|
342
|
+
]
|
|
343
|
+
}
|
|
344
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "Slider Block",
|
|
3
|
+
"description": "Slider Blocks allow the user to select a continuous value within a specified range.",
|
|
4
|
+
"branches": {
|
|
5
|
+
"start": [
|
|
6
|
+
{
|
|
7
|
+
"message_type": "informational",
|
|
8
|
+
"block_type": "markdown",
|
|
9
|
+
"block_id": "intro",
|
|
10
|
+
"data": {
|
|
11
|
+
"content": "Slider Blocks allow the user to select a continuous value within a specified range."
|
|
12
|
+
},
|
|
13
|
+
"timestamp": "2025-01-15T10:00:00Z",
|
|
14
|
+
"chunk_id": 1,
|
|
15
|
+
"agent": {
|
|
16
|
+
"name": "Slider Agent",
|
|
17
|
+
"instance_id": 1
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"message_type": "informational",
|
|
22
|
+
"block_type": "markdown",
|
|
23
|
+
"block_id": "div",
|
|
24
|
+
"data": {
|
|
25
|
+
"content": "---"
|
|
26
|
+
},
|
|
27
|
+
"timestamp": "2025-01-15T10:00:00Z",
|
|
28
|
+
"chunk_id": 1,
|
|
29
|
+
"agent": {
|
|
30
|
+
"name": "Slider Agent",
|
|
31
|
+
"instance_id": 1
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"message_type": "await_user",
|
|
36
|
+
"block_type": "slider",
|
|
37
|
+
"block_id": "slider",
|
|
38
|
+
"data": {
|
|
39
|
+
"min_value": 0,
|
|
40
|
+
"max_value": 100,
|
|
41
|
+
"initial_value": 50,
|
|
42
|
+
"label": "Adjust the slider and submit"
|
|
43
|
+
},
|
|
44
|
+
"timestamp": "2025-01-15T10:00:10Z",
|
|
45
|
+
"chunk_id": 1,
|
|
46
|
+
"agent": {
|
|
47
|
+
"name": "Slider Agent",
|
|
48
|
+
"instance_id": 1
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"message_type": "informational",
|
|
53
|
+
"block_type": "markdown",
|
|
54
|
+
"block_id": "slider-response",
|
|
55
|
+
"data": {
|
|
56
|
+
"content": "You selected: {{slider}}."
|
|
57
|
+
},
|
|
58
|
+
"timestamp": "2025-01-15T10:00:15Z",
|
|
59
|
+
"chunk_id": 1,
|
|
60
|
+
"agent": {
|
|
61
|
+
"name": "Slider Agent",
|
|
62
|
+
"instance_id": 1
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
]
|
|
66
|
+
}
|
|
67
|
+
}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "Spinner Block",
|
|
3
|
+
"description": "Spinner Blocks allow agent and subagent loading states to be streamed as a series of updates.",
|
|
4
|
+
"branches": {
|
|
5
|
+
"start": [
|
|
6
|
+
{
|
|
7
|
+
"message_type": "informational",
|
|
8
|
+
"block_type": "markdown",
|
|
9
|
+
"block_id": "intro",
|
|
10
|
+
"data": {
|
|
11
|
+
"content": "Spinner Blocks allow agent and subagent loading states to be streamed as a series of updates."
|
|
12
|
+
},
|
|
13
|
+
"timestamp": "2025-01-15T10:00:00Z",
|
|
14
|
+
"chunk_id": 1,
|
|
15
|
+
"agent": {
|
|
16
|
+
"name": "Spinner Agent",
|
|
17
|
+
"instance_id": 1
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"message_type": "informational",
|
|
22
|
+
"block_type": "markdown",
|
|
23
|
+
"block_id": "div",
|
|
24
|
+
"data": {
|
|
25
|
+
"content": "---"
|
|
26
|
+
},
|
|
27
|
+
"timestamp": "2025-01-15T10:00:00Z",
|
|
28
|
+
"chunk_id": 1,
|
|
29
|
+
"agent": {
|
|
30
|
+
"name": "Spinner Agent",
|
|
31
|
+
"instance_id": 1
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"message_type": "informational",
|
|
36
|
+
"block_type": "spinner",
|
|
37
|
+
"block_id": "spinner-1",
|
|
38
|
+
"data": {
|
|
39
|
+
"status": "active",
|
|
40
|
+
"message": "Loading initial data..."
|
|
41
|
+
},
|
|
42
|
+
"timestamp": "2025-01-15T10:00:05Z",
|
|
43
|
+
"chunk_id": 1,
|
|
44
|
+
"agent": {
|
|
45
|
+
"name": "Spinner Subagent",
|
|
46
|
+
"instance_id": 1
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"message_type": "informational",
|
|
51
|
+
"block_type": "spinner",
|
|
52
|
+
"block_id": "spinner-1",
|
|
53
|
+
"data": {
|
|
54
|
+
"status": "active",
|
|
55
|
+
"message": "Processing data..."
|
|
56
|
+
},
|
|
57
|
+
"timestamp": "2025-01-15T10:00:10Z",
|
|
58
|
+
"chunk_id": 2,
|
|
59
|
+
"agent": {
|
|
60
|
+
"name": "Spinner Subagent",
|
|
61
|
+
"instance_id": 1
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"message_type": "informational",
|
|
66
|
+
"block_type": "spinner",
|
|
67
|
+
"block_id": "spinner-1",
|
|
68
|
+
"data": {
|
|
69
|
+
"status": "active",
|
|
70
|
+
"message": "Validating results..."
|
|
71
|
+
},
|
|
72
|
+
"timestamp": "2025-01-15T10:00:15Z",
|
|
73
|
+
"chunk_id": 3,
|
|
74
|
+
"agent": {
|
|
75
|
+
"name": "Spinner Subagent",
|
|
76
|
+
"instance_id": 1
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"message_type": "informational",
|
|
81
|
+
"block_type": "spinner",
|
|
82
|
+
"block_id": "spinner-1",
|
|
83
|
+
"data": {
|
|
84
|
+
"status": "complete"
|
|
85
|
+
},
|
|
86
|
+
"timestamp": "2025-01-15T10:00:20Z",
|
|
87
|
+
"chunk_id": 4,
|
|
88
|
+
"agent": {
|
|
89
|
+
"name": "Spinner Subagent",
|
|
90
|
+
"instance_id": 1
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"message_type": "informational",
|
|
95
|
+
"block_type": "markdown",
|
|
96
|
+
"block_id": "completion",
|
|
97
|
+
"data": {
|
|
98
|
+
"content": "Process completed successfully!"
|
|
99
|
+
},
|
|
100
|
+
"timestamp": "2025-01-15T10:00:30Z",
|
|
101
|
+
"chunk_id": 1,
|
|
102
|
+
"agent": {
|
|
103
|
+
"name": "Spinner Agent",
|
|
104
|
+
"instance_id": 1
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
]
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "Table Block",
|
|
3
|
+
"description": "Table Blocks allow structured tabular data to be displayed in the UI.",
|
|
4
|
+
"branches": {
|
|
5
|
+
"start": [
|
|
6
|
+
{
|
|
7
|
+
"message_type": "informational",
|
|
8
|
+
"block_type": "markdown",
|
|
9
|
+
"block_id": "intro",
|
|
10
|
+
"data": {
|
|
11
|
+
"content": "Table Blocks allow structured tabular data to be displayed in the UI."
|
|
12
|
+
},
|
|
13
|
+
"timestamp": "2025-01-15T10:00:00Z",
|
|
14
|
+
"chunk_id": 1,
|
|
15
|
+
"agent": {
|
|
16
|
+
"name": "Table Agent",
|
|
17
|
+
"instance_id": 1
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"message_type": "informational",
|
|
22
|
+
"block_type": "markdown",
|
|
23
|
+
"block_id": "div",
|
|
24
|
+
"data": {
|
|
25
|
+
"content": "---"
|
|
26
|
+
},
|
|
27
|
+
"timestamp": "2025-01-15T10:00:00Z",
|
|
28
|
+
"chunk_id": 1,
|
|
29
|
+
"agent": {
|
|
30
|
+
"name": "Table Agent",
|
|
31
|
+
"instance_id": 1
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"message_type": "informational",
|
|
36
|
+
"block_type": "table",
|
|
37
|
+
"block_id": "example-table",
|
|
38
|
+
"data": {
|
|
39
|
+
"columns": ["Name", "Value", "Status"],
|
|
40
|
+
"rows": [
|
|
41
|
+
["Item 1", "100", "Active"],
|
|
42
|
+
["Item 2", "200", "Inactive"],
|
|
43
|
+
["Item 3", "300", "Active"]
|
|
44
|
+
]
|
|
45
|
+
},
|
|
46
|
+
"timestamp": "2025-01-15T10:00:05Z",
|
|
47
|
+
"chunk_id": 1,
|
|
48
|
+
"agent": {
|
|
49
|
+
"name": "Table Agent",
|
|
50
|
+
"instance_id": 1
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
]
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|