forked from activeagents/activeagent
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.mts
More file actions
143 lines (139 loc) · 5.05 KB
/
config.mts
File metadata and controls
143 lines (139 loc) · 5.05 KB
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
import { defineConfig } from 'vitepress'
import { tabsMarkdownPlugin } from 'vitepress-plugin-tabs'
import {
groupIconMdPlugin,
groupIconVitePlugin,
localIconLoader,
} from "vitepress-plugin-group-icons"
// https://vitepress.dev/reference/site-config
export default defineConfig({
markdown: {
config(md) {
md.use(groupIconMdPlugin),
md.use(tabsMarkdownPlugin)
}
},
vite: {
plugins: [
groupIconVitePlugin({
customIcon: {
ruby: "vscode-icons:file-type-ruby",
".rb": "vscode-icons:file-type-ruby",
".erb": "vscode-icons:file-type-erb",
".html.erb": "https://raw.githubusercontent.com/marcoroth/herb/refs/heads/main/docs/.vitepress/assets/herb.svg",
openai: 'logos:openai-icon',
anthropic: 'logos:anthropic-icon',
google: 'logos:google-icon',
ollama: 'simple-icons:ollama',
openrouter: localIconLoader(import.meta.url, './assets/icons/openrouter.svg'),
}
}),
],
},
title: "Active Agent",
description: "The AI framework for Rails with less code & more fun.",
head: [
['link', { rel: 'icon', href: '/activeagent.png' }],
['link', { rel: 'icon', href: '/favicon-16x16.png', sizes: '16x16' }],
['link', { rel: 'icon', href: '/favicon-32x32.png', sizes: '32x32' }],
['link', { rel: 'apple-touch-icon', href: '/apple-touch-icon.png' }],
['meta', { property: 'og:image', content: '/social.png' }],
['meta', { property: 'og:title', content: 'Active Agent' }],
['meta', { property: 'og:description', content: 'The AI framework for Rails with less code & more fun.' }],
['meta', { property: 'og:url', content: 'https://activeagents.ai' }],
['meta', { property: 'og:type', content: 'website' }],
['script', { async: '', defer: '', src: 'https://buttons.github.io/buttons.js' }]
],
cleanUrls: true,
themeConfig: {
search: {
provider: 'local',
},
editLink: {
pattern: 'https://github.com/activeagents/activeagent/edit/main/docs/:path',
text: 'Suggest changes to this page on GitHub'
},
// https://vitepress.dev/reference/default-theme-config
nav: [
{ text: 'Home', link: '/' },
{ text: 'Docs', link: '/framework' },
{ text: 'GitHub', link: 'https://github.com/activeagents/activeagent' }
],
sidebar: [
{
text: 'Overview',
link: '/framework',
},
{
text: 'Getting Started',
link: '/getting_started',
},
{
text: 'Framework',
items: [
{ text: 'Agents', link: '/agents' },
{ text: 'Providers', link: '/providers' },
{ text: 'Configuration', link: '/framework/configuration' },
{ text: 'Instrumentation', link: '/framework/instrumentation' },
{ text: 'Retries', link: '/framework/retries' },
{ text: 'Rails Integration', link: '/framework/rails' },
{ text: 'Testing', link: '/framework/testing' },
]
},
{ text: 'Agents',
items: [
{ text: 'Actions', link: '/actions' },
{ text: 'Generation', link: '/agents/generation' },
{ text: 'Instructions', link: '/agents/instructions' },
{ text: 'Streaming', link: '/agents/streaming' },
{ text: 'Callbacks', link: '/agents/callbacks' },
{ text: 'Error Handling', link: '/agents/error_handling' },
]
},
{
text: 'Actions',
items: [
{ text: 'Messages', link: '/actions/messages' },
{ text: 'Embeddings', link: '/actions/embeddings' },
{ text: 'Tools', link: '/actions/tools' },
{ text: 'Structured Output', link: '/actions/structured_output' },
{ text: 'Usage', link: '/actions/usage' },
]
},
{
text: 'Providers',
items: [
{ text: 'Anthropic', link: '/providers/anthropic' },
{ text: 'Ollama', link: '/providers/ollama' },
{ text: 'OpenAI', link: '/providers/open_ai' },
{ text: 'OpenRouter', link: '/providers/open_router' },
{ text: 'Mock', link: '/providers/mock' },
]
},
{ text: 'Examples',
items: [
// { text: 'Browser Use', link: '/examples/browser-use-agent' },
{ text: 'Data Extraction', link: '/examples/data_extraction_agent' },
// { text: 'Translation', link: '/examples/translation-agent' },
]
},
{ text: 'Contributing',
items: [
{ text: 'Documentation', link: '/contributing/documentation' },
]
},
],
outline: {
level: 'deep'
},
socialLinks: [
{ icon: 'bluesky', link: 'https://bsky.app/profile/activeagents.ai' },
{ icon: 'twitter', link: 'https://twitter.com/tonsoffun111' },
{ icon: 'discord', link: 'https://discord.gg/JRUxkkHKmh' },
{ icon: 'linkedin', link: 'https://www.linkedin.com/in/tonsoffun111/' },
{ icon: 'twitch', link: 'https://www.twitch.tv/tonsoffun111' },
{ icon: 'github', link: 'https://github.com/activeagents/activeagent' }
],
},
lastUpdated: true
})