Skip to content

Commit 1cd4fec

Browse files
committed
add imports to readme
1 parent 5c2465d commit 1cd4fec

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,11 @@ export default app;
109109
### Configuring the agent
110110

111111
```ts
112+
import { v } from "convex/values";
112113
import { components } from "./_generated/api";
113-
import { Agent } from "@convex-dev/agent";
114+
import { Agent, createTool } from "@convex-dev/agent";
115+
import { openai } from "@ai-sdk/openai";
116+
import { tool } from "ai";
114117

115118
// Define an agent similarly to the AI SDK
116119
const supportAgent = new Agent(components.agent, {

0 commit comments

Comments
 (0)