forked from VoltAgent/voltagent
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.ts
More file actions
28 lines (24 loc) · 857 Bytes
/
Copy pathindex.ts
File metadata and controls
28 lines (24 loc) · 857 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import { Agent, VoltAgent } from "@voltagent/core";
import { createPinoLogger } from "@voltagent/logger";
import { honoServer } from "@voltagent/server-hono";
import { xquikTools } from "./tools";
const logger = createPinoLogger({
name: "xquik-tools-agent",
level: "info",
});
const xquikResearchAgent = new Agent({
name: "xquik-research-agent",
instructions: `You help developers research public X/Twitter activity with Xquik tools.
Use the tools for post search, post lookup, user lookup, user posts, and trends.
Prefer concise answers with source IDs, usernames, timestamps, and relevant metrics.
If a tool reports a missing API key or HTTP error, explain the setup or retry path clearly.`,
model: "openai/gpt-4o-mini",
tools: xquikTools,
});
new VoltAgent({
agents: {
xquikResearchAgent,
},
logger,
server: honoServer(),
});