Skip to content
Source
Sign inSign up
TanStack/ai
Open History to see the last commit

blog-agents.ts

22 lines1.0 KB

1// Shared by the server and the browser, so it holds no server code. The
2// server adds `run` in `agents.ts`. The browser passes the list to the chat
3// UI factory for types.
4export const researcher = {
5 name: 'researcher',
6 description:
7 'Does this turn need facts or sources? Answer yes when the user asks to look something up, even if they also ask for a draft or for SEO. Answer no when they do not ask to look anything up.',
8} as const
9​
10export const writer = {
11 name: 'writer',
12 description:
13 'Does this turn need a written article, post, or rewrite? Answer yes only when the user asks for an article, post, draft, or rewrite. Answer no when they ask for research or SEO and do not ask for an article.',
14} as const
15​
16export const seo = {
17 name: 'seo',
18 description:
19 'Does this turn need SEO work? Answer yes when the user asks for SEO, search titles, a meta description, or tags. Answer no when they do not mention SEO, titles, a meta description, or tags.',
20} as const
21​
22export const blogAgents = [researcher, writer, seo] as const