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
Copy file name to clipboardExpand all lines: README.md
-30Lines changed: 0 additions & 30 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -104,36 +104,6 @@ async def main() -> None:
104
104
asyncio.run(main())
105
105
```
106
106
107
-
## Streaming responses
108
-
109
-
We provide support for streaming responses using Server Side Events (SSE).
110
-
111
-
```python
112
-
from agentbase import Agentbase
113
-
114
-
client = Agentbase()
115
-
116
-
stream = client.run_agent(
117
-
message="REPLACE_ME",
118
-
)
119
-
for response in stream:
120
-
print(response)
121
-
```
122
-
123
-
The async client uses the exact same interface.
124
-
125
-
```python
126
-
from agentbase import AsyncAgentbase
127
-
128
-
client = AsyncAgentbase()
129
-
130
-
stream =await client.run_agent(
131
-
message="REPLACE_ME",
132
-
)
133
-
asyncfor response in stream:
134
-
print(response)
135
-
```
136
-
137
107
## Using types
138
108
139
109
Nested request parameters are [TypedDicts](https://docs.python.org/3/library/typing.html#typing.TypedDict). Responses are [Pydantic models](https://docs.pydantic.dev) which also provide helper methods for things like:
0 commit comments