Skip to content

Commit 07cd970

Browse files
docs: add more examples
1 parent 40a5771 commit 07cd970

1 file changed

Lines changed: 0 additions & 30 deletions

File tree

README.md

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -104,36 +104,6 @@ async def main() -> None:
104104
asyncio.run(main())
105105
```
106106

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-
async for response in stream:
134-
print(response)
135-
```
136-
137107
## Using types
138108

139109
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

Comments
 (0)