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
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -325,9 +325,9 @@ client.ping()
325
325
326
326
Acontext can manage agent sessions and artifacts.
327
327
328
-
### Save Messages [📖](https://docs.acontext.io/api-reference/session/send-message-to-session)
328
+
### Save Messages [📖](https://docs.acontext.io/api-reference/session/store-message-to-session)
329
329
330
-
Acontext offers persistent storage for message data. When you call `session.send_message`, Acontext will persist the message and start to monitor this session:
330
+
Acontext offers persistent storage for message data. When you call `session.store_message`, Acontext will persist the message and start to monitor this session:
The Agno integration works by sending conversation messages to Acontext in OpenAI message format. Agno's message format is compatible with Acontext, so no conversion is needed.
95
+
The Agno integration works by storing conversation messages to Acontext in OpenAI message format. Agno's message format is compatible with Acontext, so no conversion is needed.
96
96
97
97
### Message Flow
98
98
99
99
1.**Create session**: Initialize a new Acontext session for your agent
100
-
2.**Send messages**: Append each message (user and assistant) to Acontext as the conversation progresses
100
+
2.**Store messages**: Append each message (user and assistant) to Acontext as the conversation progresses
101
101
3.**Extract tasks**: After the conversation, flush the session and retrieve extracted tasks
102
102
4.**Resume sessions**: Load previous conversation history to continue where you left off
@@ -290,7 +290,7 @@ Agno's `RunOutput.messages` can be converted to dictionaries using `[m.to_dict()
290
290
## Best Practices
291
291
292
292
<Tip>
293
-
**Batch message sending**: For better performance, you can batch multiple messages before sending them to Acontext, but ensure you send them in chronological order.
293
+
**Batch message storing**: For better performance, you can batch multiple messages before storing them to Acontext, but ensure you store them in chronological order.
Copy file name to clipboardExpand all lines: docs/integrations/ai-sdk.mdx
+15-15Lines changed: 15 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -103,14 +103,14 @@ const acontextClient = new AcontextClient({
103
103
104
104
## How It Works
105
105
106
-
The Vercel AI SDK integration works by sending conversation messages to Acontext in OpenAI message format. The SDK uses `generateText` for text generation and requires manual tool execution.
106
+
The Vercel AI SDK integration works by storing conversation messages to Acontext in OpenAI message format. The SDK uses `generateText` for text generation and requires manual tool execution.
107
107
108
108
### Message Flow
109
109
110
110
1.**Create session**: Initialize a new Acontext session for your agent
111
111
2.**Generate text**: Use `generateText` with tools to get model responses
112
112
3.**Handle tool calls**: Manually execute tools when the model requests them
113
-
4.**Send messages**: Append each message (user, assistant, and tool) to Acontext
113
+
4.**Store messages**: Append each message (user, assistant, and tool) to Acontext
114
114
5.**Extract tasks**: After the conversation, flush the session and retrieve extracted tasks
115
115
6.**Resume sessions**: Load previous conversation history to continue where you left off
0 commit comments