@agent-native/core 0.84.35 → 0.84.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +15 -51
- package/corpus/core/CHANGELOG.md +18 -0
- package/corpus/core/docs/content/actions.mdx +17 -24
- package/corpus/core/docs/content/agent-surfaces.mdx +59 -56
- package/corpus/core/docs/content/cloneable-saas.mdx +3 -3
- package/corpus/core/docs/content/faq.mdx +4 -4
- package/corpus/core/docs/content/getting-started.mdx +246 -204
- package/corpus/core/docs/content/key-concepts.mdx +9 -9
- package/corpus/core/docs/content/locales/ar-SA/cloneable-saas.mdx +3 -3
- package/corpus/core/docs/content/locales/ar-SA/faq.mdx +4 -4
- package/corpus/core/docs/content/locales/ar-SA/getting-started.mdx +148 -214
- package/corpus/core/docs/content/locales/ar-SA/pure-agent-apps.mdx +4 -9
- package/corpus/core/docs/content/locales/ar-SA/template-chat.mdx +2 -2
- package/corpus/core/docs/content/locales/ar-SA/using-your-agent.mdx +2 -2
- package/corpus/core/docs/content/locales/de-DE/cloneable-saas.mdx +3 -3
- package/corpus/core/docs/content/locales/de-DE/faq.mdx +4 -4
- package/corpus/core/docs/content/locales/de-DE/getting-started.mdx +145 -211
- package/corpus/core/docs/content/locales/de-DE/pure-agent-apps.mdx +4 -9
- package/corpus/core/docs/content/locales/de-DE/template-chat.mdx +2 -2
- package/corpus/core/docs/content/locales/de-DE/using-your-agent.mdx +2 -2
- package/corpus/core/docs/content/locales/es-ES/cloneable-saas.mdx +3 -3
- package/corpus/core/docs/content/locales/es-ES/faq.mdx +4 -4
- package/corpus/core/docs/content/locales/es-ES/getting-started.mdx +148 -214
- package/corpus/core/docs/content/locales/es-ES/pure-agent-apps.mdx +4 -9
- package/corpus/core/docs/content/locales/es-ES/template-chat.mdx +2 -2
- package/corpus/core/docs/content/locales/es-ES/using-your-agent.mdx +2 -2
- package/corpus/core/docs/content/locales/fr-FR/cloneable-saas.mdx +2 -2
- package/corpus/core/docs/content/locales/fr-FR/faq.mdx +4 -4
- package/corpus/core/docs/content/locales/fr-FR/getting-started.mdx +146 -212
- package/corpus/core/docs/content/locales/fr-FR/pure-agent-apps.mdx +4 -9
- package/corpus/core/docs/content/locales/fr-FR/template-chat.mdx +2 -2
- package/corpus/core/docs/content/locales/fr-FR/using-your-agent.mdx +2 -2
- package/corpus/core/docs/content/locales/hi-IN/cloneable-saas.mdx +3 -3
- package/corpus/core/docs/content/locales/hi-IN/faq.mdx +4 -4
- package/corpus/core/docs/content/locales/hi-IN/getting-started.mdx +149 -215
- package/corpus/core/docs/content/locales/hi-IN/pure-agent-apps.mdx +8 -13
- package/corpus/core/docs/content/locales/hi-IN/template-chat.mdx +2 -2
- package/corpus/core/docs/content/locales/hi-IN/using-your-agent.mdx +2 -2
- package/corpus/core/docs/content/locales/ja-JP/cloneable-saas.mdx +2 -2
- package/corpus/core/docs/content/locales/ja-JP/faq.mdx +4 -4
- package/corpus/core/docs/content/locales/ja-JP/getting-started.mdx +144 -210
- package/corpus/core/docs/content/locales/ja-JP/pure-agent-apps.mdx +8 -13
- package/corpus/core/docs/content/locales/ja-JP/template-chat.mdx +2 -2
- package/corpus/core/docs/content/locales/ja-JP/using-your-agent.mdx +2 -2
- package/corpus/core/docs/content/locales/ko-KR/cloneable-saas.mdx +3 -3
- package/corpus/core/docs/content/locales/ko-KR/faq.mdx +4 -4
- package/corpus/core/docs/content/locales/ko-KR/getting-started.mdx +146 -212
- package/corpus/core/docs/content/locales/ko-KR/pure-agent-apps.mdx +8 -13
- package/corpus/core/docs/content/locales/ko-KR/template-chat.mdx +2 -2
- package/corpus/core/docs/content/locales/ko-KR/using-your-agent.mdx +2 -2
- package/corpus/core/docs/content/locales/pt-BR/cloneable-saas.mdx +3 -3
- package/corpus/core/docs/content/locales/pt-BR/faq.mdx +4 -4
- package/corpus/core/docs/content/locales/pt-BR/getting-started.mdx +145 -211
- package/corpus/core/docs/content/locales/pt-BR/pure-agent-apps.mdx +4 -9
- package/corpus/core/docs/content/locales/pt-BR/template-chat.mdx +2 -2
- package/corpus/core/docs/content/locales/pt-BR/using-your-agent.mdx +2 -2
- package/corpus/core/docs/content/locales/zh-CN/cloneable-saas.mdx +3 -3
- package/corpus/core/docs/content/locales/zh-CN/faq.mdx +4 -4
- package/corpus/core/docs/content/locales/zh-CN/getting-started.mdx +158 -209
- package/corpus/core/docs/content/locales/zh-CN/pure-agent-apps.mdx +4 -9
- package/corpus/core/docs/content/locales/zh-CN/template-chat.mdx +2 -2
- package/corpus/core/docs/content/locales/zh-CN/using-your-agent.mdx +2 -2
- package/corpus/core/docs/content/locales/zh-TW/cloneable-saas.mdx +3 -3
- package/corpus/core/docs/content/locales/zh-TW/faq.mdx +4 -4
- package/corpus/core/docs/content/locales/zh-TW/getting-started.mdx +158 -212
- package/corpus/core/docs/content/locales/zh-TW/pure-agent-apps.mdx +4 -9
- package/corpus/core/docs/content/locales/zh-TW/template-chat.mdx +2 -2
- package/corpus/core/docs/content/locales/zh-TW/using-your-agent.mdx +2 -2
- package/corpus/core/docs/content/native-chat-ui.mdx +17 -32
- package/corpus/core/docs/content/pure-agent-apps.mdx +46 -26
- package/corpus/core/docs/content/template-chat.mdx +8 -8
- package/corpus/core/docs/content/using-your-agent.mdx +2 -2
- package/corpus/core/docs/content/what-is-agent-native.mdx +6 -6
- package/corpus/core/package.json +1 -1
- package/corpus/core/src/cli/skills.ts +7 -9
- package/corpus/core/src/client/AssistantChat.tsx +27 -13
- package/corpus/core/src/client/MultiTabAssistantChat.tsx +2 -0
- package/corpus/core/src/client/RunStuckBanner.tsx +195 -21
- package/corpus/core/src/client/blocks/library/wireframe-kit.tsx +57 -9
- package/corpus/core/src/client/blocks/library/wireframe.tsx +3 -18
- package/corpus/core/src/client/chat/widgets/builtin-tool-renderers.tsx +28 -32
- package/corpus/core/src/client/use-run-stuck-detection.ts +14 -1
- package/corpus/core/src/db/schema.ts +5 -0
- package/corpus/core/src/server/agent-chat-plugin.ts +5 -2
- package/corpus/core/src/styles/blocks.css +27 -6
- package/corpus/templates/analytics/app/components/layout/Sidebar.tsx +1 -4
- package/corpus/templates/content/actions/list-trashed-content-databases.ts +1 -1
- package/corpus/templates/plan/.agents/skills/visual-plan/references/wireframe.md +7 -9
- package/corpus/templates/plan/.agents/skills/visual-recap/references/wireframe.md +7 -9
- package/dist/cli/skills.d.ts +1 -1
- package/dist/cli/skills.d.ts.map +1 -1
- package/dist/cli/skills.js +7 -9
- package/dist/cli/skills.js.map +1 -1
- package/dist/client/AssistantChat.d.ts +6 -0
- package/dist/client/AssistantChat.d.ts.map +1 -1
- package/dist/client/AssistantChat.js +19 -13
- package/dist/client/AssistantChat.js.map +1 -1
- package/dist/client/MultiTabAssistantChat.d.ts.map +1 -1
- package/dist/client/MultiTabAssistantChat.js +1 -1
- package/dist/client/MultiTabAssistantChat.js.map +1 -1
- package/dist/client/RunStuckBanner.d.ts +13 -1
- package/dist/client/RunStuckBanner.d.ts.map +1 -1
- package/dist/client/RunStuckBanner.js +138 -16
- package/dist/client/RunStuckBanner.js.map +1 -1
- package/dist/client/blocks/library/wireframe-kit.d.ts +6 -6
- package/dist/client/blocks/library/wireframe-kit.d.ts.map +1 -1
- package/dist/client/blocks/library/wireframe-kit.js +52 -5
- package/dist/client/blocks/library/wireframe-kit.js.map +1 -1
- package/dist/client/blocks/library/wireframe.d.ts.map +1 -1
- package/dist/client/blocks/library/wireframe.js +1 -11
- package/dist/client/blocks/library/wireframe.js.map +1 -1
- package/dist/client/chat/widgets/builtin-tool-renderers.d.ts.map +1 -1
- package/dist/client/chat/widgets/builtin-tool-renderers.js +27 -31
- package/dist/client/chat/widgets/builtin-tool-renderers.js.map +1 -1
- package/dist/client/use-run-stuck-detection.d.ts +4 -0
- package/dist/client/use-run-stuck-detection.d.ts.map +1 -1
- package/dist/client/use-run-stuck-detection.js +7 -1
- package/dist/client/use-run-stuck-detection.js.map +1 -1
- package/dist/collab/awareness.d.ts +2 -2
- package/dist/collab/awareness.d.ts.map +1 -1
- package/dist/collab/routes.d.ts +1 -1
- package/dist/db/schema.d.ts +2 -1
- package/dist/db/schema.d.ts.map +1 -1
- package/dist/db/schema.js +3 -2
- package/dist/db/schema.js.map +1 -1
- package/dist/notifications/routes.d.ts +3 -3
- package/dist/progress/routes.d.ts +1 -1
- package/dist/resources/handlers.d.ts +3 -3
- package/dist/server/agent-chat-plugin.d.ts.map +1 -1
- package/dist/server/agent-chat-plugin.js +3 -2
- package/dist/server/agent-chat-plugin.js.map +1 -1
- package/dist/server/transcribe-voice.d.ts +1 -1
- package/dist/styles/blocks.css +27 -6
- package/docs/content/actions.mdx +17 -24
- package/docs/content/agent-surfaces.mdx +59 -56
- package/docs/content/cloneable-saas.mdx +3 -3
- package/docs/content/faq.mdx +4 -4
- package/docs/content/getting-started.mdx +246 -204
- package/docs/content/key-concepts.mdx +9 -9
- package/docs/content/locales/ar-SA/cloneable-saas.mdx +3 -3
- package/docs/content/locales/ar-SA/faq.mdx +4 -4
- package/docs/content/locales/ar-SA/getting-started.mdx +148 -214
- package/docs/content/locales/ar-SA/pure-agent-apps.mdx +4 -9
- package/docs/content/locales/ar-SA/template-chat.mdx +2 -2
- package/docs/content/locales/ar-SA/using-your-agent.mdx +2 -2
- package/docs/content/locales/de-DE/cloneable-saas.mdx +3 -3
- package/docs/content/locales/de-DE/faq.mdx +4 -4
- package/docs/content/locales/de-DE/getting-started.mdx +145 -211
- package/docs/content/locales/de-DE/pure-agent-apps.mdx +4 -9
- package/docs/content/locales/de-DE/template-chat.mdx +2 -2
- package/docs/content/locales/de-DE/using-your-agent.mdx +2 -2
- package/docs/content/locales/es-ES/cloneable-saas.mdx +3 -3
- package/docs/content/locales/es-ES/faq.mdx +4 -4
- package/docs/content/locales/es-ES/getting-started.mdx +148 -214
- package/docs/content/locales/es-ES/pure-agent-apps.mdx +4 -9
- package/docs/content/locales/es-ES/template-chat.mdx +2 -2
- package/docs/content/locales/es-ES/using-your-agent.mdx +2 -2
- package/docs/content/locales/fr-FR/cloneable-saas.mdx +2 -2
- package/docs/content/locales/fr-FR/faq.mdx +4 -4
- package/docs/content/locales/fr-FR/getting-started.mdx +146 -212
- package/docs/content/locales/fr-FR/pure-agent-apps.mdx +4 -9
- package/docs/content/locales/fr-FR/template-chat.mdx +2 -2
- package/docs/content/locales/fr-FR/using-your-agent.mdx +2 -2
- package/docs/content/locales/hi-IN/cloneable-saas.mdx +3 -3
- package/docs/content/locales/hi-IN/faq.mdx +4 -4
- package/docs/content/locales/hi-IN/getting-started.mdx +149 -215
- package/docs/content/locales/hi-IN/pure-agent-apps.mdx +8 -13
- package/docs/content/locales/hi-IN/template-chat.mdx +2 -2
- package/docs/content/locales/hi-IN/using-your-agent.mdx +2 -2
- package/docs/content/locales/ja-JP/cloneable-saas.mdx +2 -2
- package/docs/content/locales/ja-JP/faq.mdx +4 -4
- package/docs/content/locales/ja-JP/getting-started.mdx +144 -210
- package/docs/content/locales/ja-JP/pure-agent-apps.mdx +8 -13
- package/docs/content/locales/ja-JP/template-chat.mdx +2 -2
- package/docs/content/locales/ja-JP/using-your-agent.mdx +2 -2
- package/docs/content/locales/ko-KR/cloneable-saas.mdx +3 -3
- package/docs/content/locales/ko-KR/faq.mdx +4 -4
- package/docs/content/locales/ko-KR/getting-started.mdx +146 -212
- package/docs/content/locales/ko-KR/pure-agent-apps.mdx +8 -13
- package/docs/content/locales/ko-KR/template-chat.mdx +2 -2
- package/docs/content/locales/ko-KR/using-your-agent.mdx +2 -2
- package/docs/content/locales/pt-BR/cloneable-saas.mdx +3 -3
- package/docs/content/locales/pt-BR/faq.mdx +4 -4
- package/docs/content/locales/pt-BR/getting-started.mdx +145 -211
- package/docs/content/locales/pt-BR/pure-agent-apps.mdx +4 -9
- package/docs/content/locales/pt-BR/template-chat.mdx +2 -2
- package/docs/content/locales/pt-BR/using-your-agent.mdx +2 -2
- package/docs/content/locales/zh-CN/cloneable-saas.mdx +3 -3
- package/docs/content/locales/zh-CN/faq.mdx +4 -4
- package/docs/content/locales/zh-CN/getting-started.mdx +158 -209
- package/docs/content/locales/zh-CN/pure-agent-apps.mdx +4 -9
- package/docs/content/locales/zh-CN/template-chat.mdx +2 -2
- package/docs/content/locales/zh-CN/using-your-agent.mdx +2 -2
- package/docs/content/locales/zh-TW/cloneable-saas.mdx +3 -3
- package/docs/content/locales/zh-TW/faq.mdx +4 -4
- package/docs/content/locales/zh-TW/getting-started.mdx +158 -212
- package/docs/content/locales/zh-TW/pure-agent-apps.mdx +4 -9
- package/docs/content/locales/zh-TW/template-chat.mdx +2 -2
- package/docs/content/locales/zh-TW/using-your-agent.mdx +2 -2
- package/docs/content/native-chat-ui.mdx +17 -32
- package/docs/content/pure-agent-apps.mdx +46 -26
- package/docs/content/template-chat.mdx +8 -8
- package/docs/content/using-your-agent.mdx +2 -2
- package/docs/content/what-is-agent-native.mdx +6 -6
- package/package.json +1 -1
|
@@ -1,259 +1,193 @@
|
|
|
1
1
|
---
|
|
2
|
-
title: "
|
|
3
|
-
description: "
|
|
2
|
+
title: "शुरुआत"
|
|
3
|
+
description: "Chat से शुरू होने वाली agentic app बनाएं, action जोड़ें, structured results inline render करें, और फिर agent के खोलने योग्य persistent page तक बढ़ाएं."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
#
|
|
7
|
-
|
|
8
|
-
Agent-Native ऐप्स एक AI एजेंट और आपके UI को समान actions, डेटा और देते हैं
|
|
9
|
-
स्थिति. एक बुनियादी एजेंट उन निर्देशों से बनता है जो उसे निर्देशित करते हैं, skills जो सिखाते हैं
|
|
10
|
-
दोहराने योग्य व्यवहार, और actions जो इसे वास्तविक कार्य करने देता है।
|
|
11
|
-
|
|
12
|
-
**शुरू करने के लिए एक संपूर्ण ऐप चाहते हैं?** हमारे समृद्ध टेम्पलेट्स में से एक को क्लोन करें -
|
|
13
|
-
[Chat](/docs/template-chat), [Mail](/docs/template-mail),
|
|
14
|
-
[Calendar](/docs/template-calendar), [Content](/docs/template-content),
|
|
15
|
-
[Analytics](/docs/template-analytics), और [many more](/docs/cloneable-saas) —
|
|
16
|
-
प्रत्येक पूर्ण-विशेषताओं वाला ऐप जिसे आप अनुकूलित करते हैं।
|
|
17
|
-
|
|
18
|
-
शुरुआत से निर्माण? सामने एकमात्र विकल्प यह है कि क्या आप UI —
|
|
19
|
-
इसके बाद सब कुछ (निर्देश लिखना, skills जोड़ना, actions को परिभाषित करना, चलाना
|
|
20
|
-
एजेंट) किसी भी तरह से एक ही है।
|
|
21
|
-
|
|
22
|
-
<FileTree
|
|
23
|
-
id="doc-block-s0hkyy"
|
|
24
|
-
title={"एक बुनियादी Agent-Native agent"}
|
|
25
|
-
entries={[
|
|
26
|
-
{
|
|
27
|
-
path: "AGENTS.md",
|
|
28
|
-
note: "always-on instructions: purpose, rules, tone, और agent क्या कर सकता है उसका map",
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
path: ".agents/skills/customer-research/SKILL.md",
|
|
32
|
-
note: "task match होने पर agent जो reusable playbook load करता है",
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
path: "actions/summarize-week.ts",
|
|
36
|
-
note: "typed code जिसे agent, UI, CLI, HTTP, MCP, A2A, jobs, और webhooks चला सकते हैं",
|
|
37
|
-
},
|
|
38
|
-
]}
|
|
39
|
-
/>
|
|
40
|
-
|
|
41
|
-
यह सच है चाहे आप चैट UI से शुरू करें, एक हेडलेस एजेंट से, या एक पूर्ण ऐप से।
|
|
42
|
-
UI सतह को बदलता है; निर्देश, skills, और actions एजेंट को इसका
|
|
43
|
-
मार्गदर्शन और व्यवहार.
|
|
44
|
-
|
|
45
|
-
## 1. अपना ऐप बनाएं
|
|
46
|
-
|
|
47
|
-
आपको [Node.js 22+](https://nodejs.org) और [pnpm](https://pnpm.io) की आवश्यकता होगी।
|
|
48
|
-
|
|
49
|
-
बिना किसी झंडे के `create` चलाएं और यह पूछता है कि आप कैसे शुरू करना चाहते हैं (एक पूर्ण टेम्पलेट,
|
|
50
|
-
चैट, या हेडलेस) किसी भी अन्य चीज़ से पहले:
|
|
6
|
+
# शुरुआत
|
|
51
7
|
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
8
|
+
Agent-Native agentic applications बनाने के लिए है: AI agent और UI वही [actions](/docs/actions), SQL data और application state साझा करते हैं. मुख्य रास्ता headless agent से नहीं, बल्कि Chat app से शुरू होता है ताकि उपयोगकर्ता agent से तुरंत बात कर सकें.
|
|
9
|
+
|
|
10
|
+
काम का क्रम:
|
|
11
|
+
|
|
12
|
+
1. Chat app बनाएं.
|
|
13
|
+
2. एक action जोड़ें.
|
|
14
|
+
3. action result को chat में native inline UI के रूप में render करें.
|
|
15
|
+
4. data को SQL में persist करें.
|
|
16
|
+
5. ऐसा page जोड़ें जिसे visual inspection ज़रूरी होने पर agent खोल सके.
|
|
55
17
|
|
|
56
|
-
|
|
18
|
+
## 1. Chat app बनाएं {#create-your-app}
|
|
57
19
|
|
|
58
|
-
|
|
59
|
-
अनुकूलन योग्य चैट UI, और आपके द्वारा जोड़ी गई प्रत्येक क्रिया स्वचालित रूप से इसमें दिखाई देती है:
|
|
20
|
+
[Node.js 22+](https://nodejs.org) और [pnpm](https://pnpm.io) चाहिए.
|
|
60
21
|
|
|
61
22
|
```bash
|
|
62
23
|
npx @agent-native/core@latest create my-app --template chat
|
|
24
|
+
cd my-app
|
|
25
|
+
pnpm install
|
|
26
|
+
pnpm dev
|
|
63
27
|
```
|
|
64
28
|
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
29
|
+
इस template में durable chat threads, auth, live sync, `actions/` directory, standard `view-screen` और `navigate` actions, और extend करने योग्य React app शामिल है.
|
|
30
|
+
|
|
31
|
+
## 2. action जोड़ें {#add-an-action}
|
|
32
|
+
|
|
33
|
+
Action वह typed operation है जिसे agent और UI दोनों call करते हैं. इस flow के लिए `actions/analyze-responses.ts` बनाएं: यह form responses analyze करता है और custom chat chart के लिए validated shape लौटाता है.
|
|
34
|
+
|
|
35
|
+
<!-- prettier-ignore -->
|
|
36
|
+
```ts
|
|
37
|
+
// actions/analyze-responses.ts
|
|
38
|
+
import { defineAction } from "@agent-native/core/action";
|
|
39
|
+
import { z } from "zod";
|
|
40
|
+
|
|
41
|
+
const responseChartResultSchema = z.object({
|
|
42
|
+
title: z.string(),
|
|
43
|
+
points: z.array(z.object({ day: z.string(), responses: z.number() })),
|
|
44
|
+
});
|
|
45
|
+
|
|
46
|
+
export default defineAction({
|
|
47
|
+
description: "Analyze recent form responses and render a custom chart.",
|
|
48
|
+
schema: z.object({
|
|
49
|
+
formId: z.string().default("demo")
|
|
50
|
+
}),
|
|
51
|
+
outputSchema: responseChartResultSchema,
|
|
52
|
+
chatUI: {
|
|
53
|
+
renderer: "responses.response-chart",
|
|
54
|
+
title: "प्रतिक्रिया चार्ट"
|
|
55
|
+
},
|
|
56
|
+
readOnly: true,
|
|
57
|
+
run: async ({ formId }) => ({
|
|
58
|
+
title: `Responses for ${formId}`,
|
|
59
|
+
points: [{ day: "Mon", responses: 12 }, { day: "Tue", responses: 18 }, { day: "Wed", responses: 24 }, { day: "Thu", responses: 21 }],
|
|
60
|
+
}),
|
|
61
|
+
});
|
|
70
62
|
```
|
|
71
63
|
|
|
72
|
-
|
|
64
|
+
इसे सीधे चलाएं:
|
|
73
65
|
|
|
74
66
|
```bash
|
|
75
|
-
|
|
76
|
-
pnpm install
|
|
67
|
+
pnpm action analyze-responses --formId demo
|
|
77
68
|
```
|
|
78
69
|
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
## 2. एक क्रिया जोड़ें
|
|
82
|
-
|
|
83
|
-
एक कार्रवाई एक ऐसा ऑपरेशन है जिसे आपका एजेंट - और आपका UI - कॉल कर सकता है। दोनों मचान
|
|
84
|
-
इस उदाहरण के साथ शिप करें:
|
|
85
|
-
|
|
86
|
-
<AnnotatedCode
|
|
87
|
-
id="doc-block-it13k1"
|
|
88
|
-
title={"आपका पहला action"}
|
|
89
|
-
filename="actions/hello.ts"
|
|
90
|
-
language="ts"
|
|
91
|
-
code={
|
|
92
|
-
'import { defineAction } from "@agent-native/core/action";\nimport { z } from "zod";\n\nexport default defineAction({\n description: "Local agent से hello कहें।",\n schema: z.object({\n name: z.string().default("world"),\n }),\n http: { method: "GET" },\n readOnly: true,\n run: async ({ name }) => {\n return { message: `Hello, ${name}!` };\n },\n});'
|
|
93
|
-
}
|
|
94
|
-
annotations={[
|
|
95
|
-
{
|
|
96
|
-
lines: "5",
|
|
97
|
-
label: "टूल विवरण",
|
|
98
|
-
note: "Agent `description` पढ़कर तय करता है कि इसे tool के रूप में कब call करना है।",
|
|
99
|
-
},
|
|
100
|
-
{
|
|
101
|
-
lines: "6-8",
|
|
102
|
-
label: "टाइप किया हुआ अनुबंध",
|
|
103
|
-
note: "एक zod `schema` हर surface से input validate करता है: agent, UI, HTTP, MCP और A2A।",
|
|
104
|
-
},
|
|
105
|
-
{
|
|
106
|
-
lines: "9",
|
|
107
|
-
label: "HTTP क्रिया",
|
|
108
|
-
note: "इस action को अपने-आप mount होने वाले HTTP endpoint में शामिल करें।",
|
|
109
|
-
},
|
|
110
|
-
{
|
|
111
|
-
lines: "10",
|
|
112
|
-
label: "केवल पढ़ने योग्य",
|
|
113
|
-
note: "`readOnly` action को बिना approval सुरक्षित रूप से call करने योग्य और queries के लिए cacheable बताता है।",
|
|
114
|
-
},
|
|
115
|
-
{
|
|
116
|
-
lines: "11-13",
|
|
117
|
-
label: "एक implementation",
|
|
118
|
-
note: "`run` body वही single source of truth है जिसे हर surface चलाता है।",
|
|
119
|
-
},
|
|
120
|
-
]}
|
|
121
|
-
/>
|
|
122
|
-
|
|
123
|
-
`hello` को अपने डोमेन में पहले वास्तविक ऑपरेशन से बदलें। आप इसे एक बार परिभाषित करें;
|
|
124
|
-
हर सतह इसे उठाती है।
|
|
125
|
-
|
|
126
|
-
निर्देशन के लिए `AGENTS.md` का उपयोग करें जो हर मोड़ पर लागू होना चाहिए। एक कौशल का प्रयोग करें जब
|
|
127
|
-
एजेंट को पुन: प्रयोज्य वर्कफ़्लो या डोमेन प्रक्रिया की आवश्यकता होती है। किसी क्रिया का उपयोग करें जब
|
|
128
|
-
एजेंट को डेटा पढ़ने, डेटा लिखने, API पर कॉल करने, या
|
|
129
|
-
अनुमोदन करें।
|
|
130
|
-
|
|
131
|
-
## 3. इसे चलाएं
|
|
132
|
-
|
|
133
|
-
कार्रवाई को सीधे कॉल करें:
|
|
70
|
+
या browser में agent से पूछें:
|
|
134
71
|
|
|
135
|
-
|
|
136
|
-
pnpm action hello --name Steve
|
|
137
|
-
```
|
|
72
|
+
> डेमो फ़ॉर्म की हाल की प्रतिक्रियाओं का विश्लेषण करें.
|
|
138
73
|
|
|
139
|
-
|
|
74
|
+
## 3. result को chat में render करें {#render-inline}
|
|
140
75
|
|
|
141
|
-
|
|
142
|
-
pnpm agent "Call the hello action for Steve and explain what happened."
|
|
143
|
-
```
|
|
76
|
+
क्योंकि action `outputSchema` और product-specific `chatUI.renderer` declare करता है, transcript structured data को plain text में नहीं बदलता. फिर app startup से उसी exact renderer id के लिए React component register करें, जैसे `app/root.tsx` से `app/chat-renderers.tsx` को एक बार import करके:
|
|
144
77
|
|
|
145
|
-
|
|
146
|
-
|
|
78
|
+
<!-- prettier-ignore -->
|
|
79
|
+
```tsx
|
|
80
|
+
import { registerActionChatRenderer, type ToolRendererProps,} from "@agent-native/core/client/chat";
|
|
81
|
+
|
|
82
|
+
type ResponseChartResult = {
|
|
83
|
+
title: string;
|
|
84
|
+
points: Array<{ day: string; responses: number }>;
|
|
85
|
+
};
|
|
86
|
+
|
|
87
|
+
function ResponseChart({ context }: ToolRendererProps) {
|
|
88
|
+
const result = context.resultJson as ResponseChartResult;
|
|
89
|
+
const max = Math.max(...result.points.map((point) => point.responses), 1);
|
|
90
|
+
return (
|
|
91
|
+
<section className="rounded-lg border bg-card p-4">
|
|
92
|
+
<h3 className="text-sm font-medium">{result.title}</h3>
|
|
93
|
+
<div className="mt-4 flex h-32 items-end gap-2">
|
|
94
|
+
{result.points.map((point) => (
|
|
95
|
+
<div key={point.day} className="flex flex-1 flex-col items-center gap-2">
|
|
96
|
+
<div className="w-full rounded-t bg-primary" style={{ height: `${(point.responses / max) * 100}%` }} />
|
|
97
|
+
<span className="text-xs text-muted-foreground">{point.day}</span>
|
|
98
|
+
</div>
|
|
99
|
+
))}
|
|
100
|
+
</div>
|
|
101
|
+
</section>
|
|
102
|
+
);
|
|
103
|
+
}
|
|
147
104
|
|
|
148
|
-
|
|
149
|
-
|
|
105
|
+
registerActionChatRenderer({
|
|
106
|
+
id: "responses.response-chart",
|
|
107
|
+
renderer: "responses.response-chart",
|
|
108
|
+
Component: ResponseChart,
|
|
109
|
+
});
|
|
150
110
|
```
|
|
151
111
|
|
|
152
|
-
|
|
153
|
-
अनुसूचित नौकरियां, और webhooks। एक बार परिभाषित करें, कहीं से भी कॉल करें।
|
|
154
|
-
|
|
155
|
-
<Diagram id="doc-block-1odbgvm" title={"एक क्रिया, हर सतह"} summary={"एक defineAction फ़ाइल प्रत्येक उपभोक्ता को बिना किसी अतिरिक्त वायरिंग के प्रदान करती है।"}>
|
|
156
|
-
|
|
157
|
-
```html
|
|
158
|
-
<div class="diagram-fan">
|
|
159
|
-
<div class="diagram-box" data-rough>defineAction</div>
|
|
160
|
-
<div class="diagram-arrow diagram-muted" aria-hidden="true">→</div>
|
|
161
|
-
<div class="diagram-surfaces">
|
|
162
|
-
<span class="diagram-pill">चैट UI</span><span class="diagram-pill">CLI</span
|
|
163
|
-
><span class="diagram-pill">HTTP</span><span class="diagram-pill">MCP</span
|
|
164
|
-
><span class="diagram-pill">A2A</span
|
|
165
|
-
><span class="diagram-pill">शेड्यूल किए गए जॉब</span
|
|
166
|
-
><span class="diagram-pill">Webhooks</span>
|
|
167
|
-
</div>
|
|
168
|
-
</div>
|
|
169
|
-
```
|
|
112
|
+
Reusable generic outputs के लिए framework built-in `data-chart` और `data-table` renderers भी देता है, साथ ही combined summary/chart/table cards के लिए `data-insights`. देखें [Native Chat UI](/docs/native-chat-ui).
|
|
170
113
|
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
display: flex;
|
|
180
|
-
flex-wrap: wrap;
|
|
181
|
-
gap: 8px;
|
|
182
|
-
max-width: 420px;
|
|
183
|
-
}
|
|
184
|
-
.diagram-fan .diagram-arrow {
|
|
185
|
-
font-size: 22px;
|
|
186
|
-
line-height: 1;
|
|
187
|
-
}
|
|
188
|
-
```
|
|
114
|
+
<WireframeBlock id="doc-block-inline-result-wireframe-hi">
|
|
115
|
+
<Screen
|
|
116
|
+
surface="desktop"
|
|
117
|
+
html={
|
|
118
|
+
"<div style='min-height:340px;box-sizing:border-box;padding:24px;display:flex;justify-content:center;align-items:center;background:var(--wf-bg)'><div style='width:min(530px,100%);display:flex;flex-direction:column;gap:14px'><div class='wf-card' data-rough style='align-self:flex-end;max-width:70%;padding:12px 14px'><strong>User</strong><p style='margin:6px 0 0'>डेमो प्रतिक्रियाओं का विश्लेषण करें.</p></div><div class='wf-card' data-rough style='align-self:flex-start;width:min(370px,100%);padding:14px'><strong>Agent</strong><p class='wf-muted' style='margin:6px 0 12px'>responses.response-chart से रेंडर किया गया.</p><section class='wf-card' data-rough style='padding:14px'><h3 style='margin:0 0 12px;font-size:14px'>प्रतिक्रिया चार्ट</h3><div data-rough='line:bottom' style='height:104px;display:flex;align-items:end;gap:8px;border-bottom:1.4px solid var(--wf-line);padding-bottom:4px'><div style='flex:1;display:flex;flex-direction:column;align-items:center;gap:6px'><div data-rough style='height:38px;width:100%;background:color-mix(in srgb, var(--wf-accent) 24%, transparent);border:1.4px solid var(--wf-accent);border-radius:8px 8px 3px 3px'></div><span class='wf-muted'>सोम</span></div><div style='flex:1;display:flex;flex-direction:column;align-items:center;gap:6px'><div data-rough style='height:62px;width:100%;background:color-mix(in srgb, var(--wf-accent) 30%, transparent);border:1.4px solid var(--wf-accent);border-radius:8px 8px 3px 3px'></div><span class='wf-muted'>मंगल</span></div><div style='flex:1;display:flex;flex-direction:column;align-items:center;gap:6px'><div data-rough style='height:86px;width:100%;background:color-mix(in srgb, var(--wf-accent) 36%, transparent);border:1.4px solid var(--wf-accent);border-radius:8px 8px 3px 3px'></div><span class='wf-muted'>बुध</span></div><div style='flex:1;display:flex;flex-direction:column;align-items:center;gap:6px'><div data-rough style='height:54px;width:100%;background:color-mix(in srgb, var(--wf-accent) 42%, transparent);border:1.4px solid var(--wf-accent);border-radius:8px 8px 3px 3px'></div><span class='wf-muted'>गुरु</span></div></div></section></div></div></div>"
|
|
119
|
+
}
|
|
120
|
+
/>
|
|
121
|
+
</WireframeBlock>
|
|
189
122
|
|
|
190
|
-
|
|
123
|
+
## 4. SQL में data persist करें {#persist-data}
|
|
191
124
|
|
|
192
|
-
|
|
125
|
+
जब result को दोबारा देखना, compare करना या update करना हो, उसे SQL में रखें और reads/writes को actions के पीछे रखें:
|
|
193
126
|
|
|
194
|
-
|
|
195
|
-
रन इतिहास, और क्रेडेंशियल सभी SQL में रहते हैं। स्थानीय रूप से यह SQLite है
|
|
196
|
-
`data/app.db`; उत्पादन में आपने `DATABASE_URL` सेट किया है। देखें
|
|
197
|
-
[Deployment](/docs/deployment).
|
|
127
|
+
Table को framework के portable helpers से define करें, `drizzle-orm/sqlite-core` या `drizzle-orm/pg-core` imports से नहीं:
|
|
198
128
|
|
|
199
|
-
|
|
129
|
+
```ts
|
|
130
|
+
// server/db/schema.ts
|
|
131
|
+
import { integer, now, table, text } from "@agent-native/core/db/schema";
|
|
200
132
|
|
|
201
|
-
|
|
133
|
+
export const responseInsights = table("response_insights", {
|
|
134
|
+
id: text("id").primaryKey(),
|
|
135
|
+
formId: text("form_id").notNull(),
|
|
136
|
+
title: text("title").notNull(),
|
|
137
|
+
summary: text("summary").notNull(),
|
|
138
|
+
responseCount: integer("response_count").notNull(),
|
|
139
|
+
createdAt: text("created_at").notNull().default(now()),
|
|
140
|
+
updatedAt: text("updated_at").notNull().default(now()),
|
|
141
|
+
});
|
|
142
|
+
```
|
|
202
143
|
|
|
203
|
-
|
|
144
|
+
ये helpers configured SQL backend चुनते हैं, इसलिए वही schema local SQLite और production में Postgres, Turso/libSQL, D1 या किसी supported SQL provider पर चल सकता है.
|
|
204
145
|
|
|
205
|
-
|
|
146
|
+
- `create-response-insight` नया insight लिखता है.
|
|
147
|
+
- `list-response-insights` page के लिए data पढ़ता है.
|
|
148
|
+
- `update-response-insight` record update करता है.
|
|
149
|
+
- `analyze-responses` chat का native widget लौटाता रहता है.
|
|
206
150
|
|
|
207
|
-
|
|
208
|
-
`<AgentChatSurface>` घटक पर निर्मित एक छोटा मार्ग है:
|
|
151
|
+
Browser के लिए अलग duplicate REST route न बनाएं; UI और agent को actions साझा करने चाहिए.
|
|
209
152
|
|
|
210
|
-
|
|
211
|
-
// app/routes/_index.tsx
|
|
212
|
-
import { AgentChatSurface } from "@agent-native/core/client";
|
|
153
|
+
## 5. agent के खोलने योग्य page जोड़ें {#add-a-page}
|
|
213
154
|
|
|
214
|
-
|
|
215
|
-
return <AgentChatSurface mode="page" className="h-full" />;
|
|
216
|
-
}
|
|
217
|
-
```
|
|
155
|
+
`/response-insights` route जोड़ें और `useActionQuery("list-response-insights")`, `useActionMutation("create-response-insight")` इस्तेमाल करें. यह page SQL state का projection है; data वही actions लिखते हैं.
|
|
218
156
|
|
|
219
|
-
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
-
|
|
224
|
-
|
|
225
|
-
|
|
157
|
+
<WireframeBlock id="doc-block-response-insights-page-wireframe-hi">
|
|
158
|
+
<Screen
|
|
159
|
+
surface="desktop"
|
|
160
|
+
html={
|
|
161
|
+
"<main style='min-height:440px;box-sizing:border-box;padding:28px;background:var(--wf-bg)'><section style='max-width:960px;margin:0 auto;display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:16px;align-items:stretch'><section class='wf-card' data-rough style='display:flex;flex-direction:column;gap:16px'><header><h2 style='margin:0 0 4px;font-size:28px'>प्रतिक्रिया insights</h2><p class='wf-muted' style='margin:0'>फ़ॉर्म प्रतिक्रियाओं से agent ने बनाए insights.</p></header><button class='primary' data-rough style='align-self:flex-start'>डेमो फ़ॉर्म विश्लेषित करें</button><section style='display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px'><article class='wf-box' data-rough style='padding:12px'><strong>मूल्य निर्धारण थीम</strong><p class='wf-muted' style='margin:8px 0 0'>यूज़र टीम प्लान मांगते हैं.</p></article><article class='wf-box' data-rough style='padding:12px'><strong>ऑनबोर्डिंग ड्रॉप-ऑफ़</strong><p class='wf-muted' style='margin:8px 0 0'>तीन चरणों को ज्यादा स्पष्ट copy चाहिए.</p></article></section><section class='wf-card' data-rough style='display:flex;flex-direction:column;gap:10px'><div class='wf-row wf-box' data-rough style='padding:10px 12px;gap:12px;justify-content:space-between'><strong>डेमो फ़ॉर्म</strong><span class='wf-muted'>42 प्रतिक्रियाओं का विश्लेषण हुआ</span></div><div class='wf-row wf-box' data-rough style='padding:10px 12px;gap:12px;justify-content:space-between'><strong>अगला चरण</strong><span class='wf-muted'>दो draft insights देखें</span></div></section></section><aside class='wf-card' data-rough style='height:100%;box-sizing:border-box;display:flex;flex-direction:column;gap:12px'><strong>चैट</strong><div class='wf-box' data-rough style='align-self:flex-end;max-width:210px;padding:10px 12px'><span class='wf-muted'>आप</span><p style='margin:4px 0 0'>प्रतिक्रिया insights खोलें.</p></div><div class='wf-box' data-rough style='align-self:flex-start;max-width:210px;padding:10px 12px'><span class='wf-muted'>Agent</span><p style='margin:4px 0 0'>प्रतिक्रिया insights खोल दिए.</p></div></aside></section></main>"
|
|
162
|
+
}
|
|
163
|
+
/>
|
|
164
|
+
</WireframeBlock>
|
|
226
165
|
|
|
227
|
-
|
|
228
|
-
[Native चैट UI](/docs/native-chat-ui) क्रिया परिणामों को तालिकाओं के रूप में प्रस्तुत करने के लिए,
|
|
229
|
-
चार्ट, और सादे पाठ के बजाय टाइप किए गए कार्ड।
|
|
166
|
+
`view-screen` और `navigate` को extend करें ताकि agent current route जान सके और `/response-insights` खोल सके. Results में `href: "/response-insights"` भी हो सकता है, जिससे chat में "प्रतिक्रिया insights खोलें" button दिखे.
|
|
230
167
|
|
|
231
|
-
|
|
232
|
-
इसकी `app/` परत (React राउटर + Vite) बिल्कुल बिना सिर वाले मचान के समान है
|
|
233
|
-
बाहर निकल जाता है। सबसे साफ कदम चैट
|
|
234
|
-
टेम्पलेट; आपकी `actions/`, एजेंट और SQL स्थिति अपरिवर्तित बनी रहेगी। देखें
|
|
235
|
-
बीच में प्रत्येक सतह के लिए [Agent Surfaces](/docs/agent-surfaces)।
|
|
168
|
+
जब full-page chat app page खोलता है, तो [Agent Surfaces](/docs/agent-surfaces#rich-chat) से `AgentChatSurface`, `AgentSidebar`, `useAgentChatHomeHandoff`, `useAgentChatHomeHandoffLinks` और `chatViewTransition` इस्तेमाल करें ताकि वही thread रखते हुए chat side panel में slide हो जाए.
|
|
236
169
|
|
|
237
|
-
##
|
|
170
|
+
## Project structure {#project-structure}
|
|
238
171
|
|
|
239
172
|
```text
|
|
240
173
|
my-app/
|
|
241
|
-
actions/ # Agent
|
|
242
|
-
app/ # React
|
|
243
|
-
server/ # Nitro
|
|
244
|
-
AGENTS.md #
|
|
245
|
-
.agents/ # ज़रूरत पड़ने पर agent
|
|
246
|
-
data/app.db # DATABASE_URL न होने पर local SQLite state
|
|
174
|
+
actions/ # Agent और UI से कॉल किए जा सकने वाले operations
|
|
175
|
+
app/ # React routes, pages, और chat surfaces
|
|
176
|
+
server/ # Nitro server और SQL schema
|
|
177
|
+
AGENTS.md # App agent के लिए हमेशा सक्रिय instructions
|
|
178
|
+
.agents/ # ज़रूरत पड़ने पर agent जिन skills को लोड करता है
|
|
179
|
+
data/app.db # DATABASE_URL सेट न होने पर local SQLite state
|
|
247
180
|
```
|
|
248
181
|
|
|
249
|
-
##
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
- **[
|
|
256
|
-
|
|
257
|
-
- **[
|
|
258
|
-
- **[
|
|
259
|
-
- **[
|
|
182
|
+
## Analytics के लिए मजबूत starting point चाहिए? {#analytics-starting-point}
|
|
183
|
+
|
|
184
|
+
ऊपर वाला प्रतिक्रिया insights example जानबूझकर छोटा है ताकि framework की pieces साफ दिखें. अगर आप वास्तविक analytics product बना रहे हैं, तो [Analytics](/docs/template-analytics) से शुरू करें. यह robust starting point है: अपने providers connect करें, existing dashboards और agent actions इस्तेमाल करें, फिर वहीं से customize करें.
|
|
185
|
+
|
|
186
|
+
## आगे क्या {#next}
|
|
187
|
+
|
|
188
|
+
- **[Actions](/docs/actions)** — schemas, auth, approvals, hooks और transport.
|
|
189
|
+
- **[Native Chat UI](/docs/native-chat-ui)** — action results को tables, charts और typed cards के रूप में render करें.
|
|
190
|
+
- **[Chat Template](/docs/template-chat)** — न्यूनतम chat-first app.
|
|
191
|
+
- **[Analytics Template](/docs/template-analytics)** — robust analytics app starting point; providers connect करें और customize करें.
|
|
192
|
+
- **[Context Awareness](/docs/context-awareness)** — `view-screen`, `navigate`, route state और selected objects.
|
|
193
|
+
- **[Agent Surfaces](/docs/agent-surfaces)** — chat, inline UI, app pages, embedded sidecars, automation और external agents.
|
|
@@ -1,16 +1,11 @@
|
|
|
1
1
|
---
|
|
2
|
-
title: "
|
|
3
|
-
description: "
|
|
2
|
+
title: "Automation-First Apps"
|
|
3
|
+
description: "scheduled jobs, queues, scripts, integration workers और external agents के लिए no-browser Agent-Native apps."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
#
|
|
6
|
+
# Automation-First Apps
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
उत्पाद, डैशबोर्ड नहीं। आप टर्मिनल, Slack, ईमेल, a
|
|
10
|
-
निर्धारित नौकरी, अन्य एजेंट, या चैट - "मेरे अपठित ईमेल को संक्षेप में प्रस्तुत करें," "पोस्ट करें
|
|
11
|
-
दैनिक मेट्रिक्स Slack के लिए" - और एजेंट कार्य करता है और जहां कहीं भी परिणाम लौटाता है
|
|
12
|
-
के अंतर्गत आता है। यह अभी भी एक वास्तविक ऐप है: actions, सत्र, ऐप स्थिति, इतिहास,
|
|
13
|
-
सेटिंग्स, क्रेडेंशियल और शेयर रिकॉर्ड सभी SQL में रहते हैं।
|
|
8
|
+
Automation-first app scheduled jobs, queues, scripts, integration workers और external agents के लिए no-browser Agent-Native app है. यह Getting Started का default path नहीं है, लेकिन जब workflow को अभी page की ज़रूरत नहीं होती तब उपयोगी है. यह अभी भी एक वास्तविक app है: actions, sessions, application state, run history, settings, credentials और share records सभी SQL में रहते हैं.
|
|
14
9
|
|
|
15
10
|
<Diagram id="doc-block-pwjkyy" title={"ऐप-एजेंट लूप सामने का दरवाजा है"} summary={"कई प्रवेश बिंदु SQL-backed क्रियाओं और स्थिति पर एक एजेंट लूप तक पहुंचते हैं; जहां से अनुरोध आया वहां परिणाम वापस आ जाते हैं। यूआई केवल तभी जोड़ा जाता है जब इंसानों को पर्यवेक्षण की आवश्यकता होती है।"}>
|
|
16
11
|
|
|
@@ -66,7 +61,7 @@ description: "ऐप्स जहां एजेंट संपूर्ण
|
|
|
66
61
|
जब कार्य पृष्ठभूमि में चलता है, तो इस आकृति तक पहुंचें, आउटपुट निकल जाता है
|
|
67
62
|
ऐप, डोमेन वन-शॉट है, या आप प्रोटोटाइप कर रहे हैं। एजेंट को अभी भी UI —
|
|
68
63
|
एक डैशबोर्ड नहीं, बल्कि मनुष्यों के लिए इसकी देखरेख, कॉन्फ़िगर और संचालन करने के लिए एक जगह -
|
|
69
|
-
यही कारण है कि
|
|
64
|
+
यही कारण है कि automation-first apps भी आमतौर पर built-in chat shell mount करते हैं.
|
|
70
65
|
|
|
71
66
|
यह **बिना सिर** उत्पाद का आकार है। संपूर्ण निर्णय मार्गदर्शिका, क्या भेजा जाता है
|
|
72
67
|
बॉक्स, मचान, रेपो एक्सेस और रन शेयरिंग अब एक ही स्थान पर रहते हैं:
|
|
@@ -76,8 +71,8 @@ description: "ऐप्स जहां एजेंट संपूर्ण
|
|
|
76
71
|
## आगे क्या है
|
|
77
72
|
|
|
78
73
|
- [**Agent Surfaces — Headless**](/docs/agent-surfaces#headless) - पूर्ण नेतृत्वहीन निर्णय मार्गदर्शिका और APIs
|
|
79
|
-
- [**Getting Started**](/docs/getting-started) - पहले
|
|
80
|
-
- [**Dispatch**](/docs/template-dispatch) -
|
|
74
|
+
- [**Getting Started**](/docs/getting-started) - पहले chat-first app बनाएं, फिर actions, inline results और pages तक बढ़ाएं
|
|
75
|
+
- [**Dispatch**](/docs/template-dispatch) - automation-first workflows के लिए उपयोगी workspace template
|
|
81
76
|
- [**Messaging the agent**](/docs/messaging) - उपयोगकर्ता वेब, Slack, टेलीग्राम, ईमेल पर एजेंट से कैसे बात करते हैं
|
|
82
77
|
- [**Recurring Jobs**](/docs/recurring-jobs) - निर्धारित संकेत एजेंट अपने आप चलता है
|
|
83
|
-
- [**Actions**](/docs/actions) - वे
|
|
78
|
+
- [**Actions**](/docs/actions) - वे tools जिन्हें आपकी automation-first app call करेगी
|
|
@@ -7,7 +7,7 @@ description: "एक न्यूनतम चैट-फर्स्ट एज
|
|
|
7
7
|
|
|
8
8
|
चैट मूल एजेंट-नेटिव ऐप शुरुआती बिंदु है। यह आपको केंद्र में चैट के साथ एक साफ ChatGPT-शैली शेल, बाईं ओर एक थ्रेड सूची, मानक ऐप नेविगेशन, ऑथ, लाइव सिंक, actions और एक उदाहरण कार्रवाई देता है। जब आप एक वास्तविक ब्राउज़र ऐप चाहते हैं तो यहां से प्रारंभ करें जिसे आप डोमेन टेम्पलेट से जुड़े बिना बना सकते हैं।
|
|
9
9
|
|
|
10
|
-
यदि आप बिना
|
|
10
|
+
यदि आप बिना browser UI वाला automation-first runtime चाहते हैं, तो [Automation-First Apps](/docs/pure-agent-apps) से शुरू करें. यदि आप एक तैयार domain product shape चाहते हैं, तो [Calendar](/docs/template-calendar), [Mail](/docs/template-mail), [Content](/docs/template-content), [Forms](/docs/template-forms), [Analytics](/docs/template-analytics), या किसी अन्य domain template से प्रारंभ करें।
|
|
11
11
|
|
|
12
12
|
<WireframeBlock id="doc-block-7fjxec">
|
|
13
13
|
<Screen
|
|
@@ -198,4 +198,4 @@ export default function ChatRoute() {
|
|
|
198
198
|
- [**Agent Surfaces**](/docs/agent-surfaces) - हेडलेस, चैट, एंबेडेड और फुल-ऐप पैटर्न
|
|
199
199
|
- [**Actions**](/docs/actions) - एक्शन सिस्टम चैट और UI दोनों कॉल
|
|
200
200
|
- [**Native चैट UI**](/docs/native-chat-ui) - चैट सतह आदिम और रनटाइम विकल्प
|
|
201
|
-
- [**
|
|
201
|
+
- [**Automation-First Apps**](/docs/pure-agent-apps) - बिना browser UI वाली automations, queues, scripts और external agent workflows
|
|
@@ -99,7 +99,7 @@ description: "एजेंट के साथ काम करने का द
|
|
|
99
99
|
|
|
100
100
|
हर ऐप को पूर्ण डैशबोर्ड की आवश्यकता नहीं होती है। जब एजेंट *उत्पाद*है, तो आप अधिकांश कस्टम UI को छोड़ सकते हैं: ऐप खोलें, जो आप चाहते हैं उसके लिए पूछें, और एजेंट को बाकी काम करने दें। एजेंट के पास अभी भी प्रबंधन सतह है - इतिहास, कार्यक्षेत्र, सेटिंग्स - लेकिन प्राथमिक इंटरैक्शन क्लिक के बजाय बातचीत है।
|
|
101
101
|
|
|
102
|
-
→ [**
|
|
102
|
+
→ [**Automation-First Apps**](/docs/pure-agent-apps) - jobs, queues, scripts और external agents के लिए no-browser apps।
|
|
103
103
|
|
|
104
104
|
## आप इसके साथ सह-संपादन करें {#you-co-edit}
|
|
105
105
|
|
|
@@ -113,5 +113,5 @@ description: "एजेंट के साथ काम करने का द
|
|
|
113
113
|
- [**Agent Mentions**](/docs/agent-mentions) — इसे `@`-उल्लेखों के साथ निर्देशित करें
|
|
114
114
|
- [**Voice Input**](/docs/voice-input) - इसे बोलकर निर्देशित करें
|
|
115
115
|
- [**Drop-in Agent**](/docs/drop-in-agent) — इसे किसी भी React ऐप में एम्बेड करें
|
|
116
|
-
- [**
|
|
116
|
+
- [**Automation-First Apps**](/docs/pure-agent-apps) - jobs, queues, scripts और external agents के लिए no-browser apps
|
|
117
117
|
- [**Real-Time Collaboration**](/docs/real-time-collaboration) — एक ही दस्तावेज़ को एक साथ सह-संपादित करें
|
|
@@ -30,7 +30,7 @@ description: "動作する SaaS 製品をフォークして、エージェント
|
|
|
30
30
|
| [**Plan**](/docs/template-plan) | 図、ワイヤーフレーム、注釈を使用した視覚的な計画と PR の要約。 |
|
|
31
31
|
| [**Dispatch**](/docs/template-dispatch) | ワークスペース コントロール プレーン: 共有シークレット、再利用可能な統合、Slack/テレグラム、スケジュールされたジョブ。 |
|
|
32
32
|
|
|
33
|
-
ドメイン
|
|
33
|
+
ドメイン アプリが不要ですか? ユーザーがすぐに会話でき、actions、ネイティブ結果、画面へ拡張できる基本アプリが必要な場合は、[Chat](/docs/template-chat) を使用してください。まだブラウザー UI が不要な workflow の場合だけ [Automation-First Apps](/docs/pure-agent-apps) を使用します。
|
|
34
34
|
|
|
35
35
|
[Apps](/apps) で完全なカタログを参照するか、カタログに直接ジャンプしてください。たとえば、ワークスペース スタイルのアプリが必要な場合は、[Dispatch](/docs/template-dispatch) から始めるのが最適です。
|
|
36
36
|
|
|
@@ -182,7 +182,7 @@ description: "動作する SaaS 製品をフォークして、エージェント
|
|
|
182
182
|
npx @agent-native/core@latest create my-platform
|
|
183
183
|
```
|
|
184
184
|
|
|
185
|
-
複数選択ピッカーが表示されます。 1 つのアプリ (スタンドアロン) または複数のアプリ (ワークスペース - アプリは認証、ブランド、エージェント構成、データベースを共有) を選択します。選択した各テンプレートは、必要なすべてのファイルとともに `apps/<name>/` にスキャフォールディングされます。テンプレート UI
|
|
185
|
+
複数選択ピッカーが表示されます。 1 つのアプリ (スタンドアロン) または複数のアプリ (ワークスペース - アプリは認証、ブランド、エージェント構成、データベースを共有) を選択します。選択した各テンプレートは、必要なすべてのファイルとともに `apps/<name>/` にスキャフォールディングされます。テンプレート UI の代わりにブラウザー UI のない automation を作る場合は、`npx @agent-native/core@latest create my-agent --headless` を使用します。
|
|
186
186
|
|
|
187
187
|
`.env` (主に `ANTHROPIC_API_KEY` と `DATABASE_URL`)、`pnpm install`、`pnpm dev` を入力すると機能します。 「TODO: ログインの実装」、プレースホルダー ルートはありません。
|
|
188
188
|
|
|
@@ -11,15 +11,15 @@ description: "エージェント ネイティブについてよくある質問
|
|
|
11
11
|
|
|
12
12
|
### エージェントネイティブとは何ですか? {#what-is-agent-native}
|
|
13
13
|
|
|
14
|
-
エージェントネイティブは、AI
|
|
14
|
+
エージェントネイティブは、AI エージェントとその周囲の製品表面が対等なパートナーとなるアプリを構築するためのフレームワークです。通常の流れは chat から始まり、typed actions を追加し、構造化結果をインライン表示し、同じ SQL state の上に永続ページを増やします。不変条件は、エージェントと人間が同じ actions、データベース、状態を共有することです。完全な説明については、[What Is Agent-Native?](/docs/what-is-agent-native) を参照してください。
|
|
15
15
|
|
|
16
16
|
### これは誰のためのものですか? {#who-is-this-for}
|
|
17
17
|
|
|
18
18
|
エージェント ネイティブは、実際のアプリと AI エージェントが同じデータと actions から動作することを望む人向けです。一般的なパスは次のとおりです。
|
|
19
19
|
|
|
20
20
|
- メール、カレンダー、フォーム、プラン、または設定なしで完成した別のテンプレートが必要な場合は、**ホストされたアプリを使用します**。[template gallery](/templates) から始めてください。
|
|
21
|
-
-
|
|
22
|
-
-
|
|
21
|
+
- ユーザーがすぐに agent と会話でき、actions、ネイティブ結果、画面へ拡張する既定のゼロからの道が必要な場合は、**チャットから始めます**。[Getting Started](/docs/getting-started) または [Chat](/docs/template-chat) から始めます。
|
|
22
|
+
- 予定タスク、queues、scripts、integration workers、またはまだブラウザー UI が不要な外部 agent workflows を作る場合は、**automation-first で開始**します。[Automation-First Apps](/docs/pure-agent-apps) から始めます。
|
|
23
23
|
- 認証、データベース、UI、エージェント actions がすでに接続されている独自の SaaS 製品が必要な場合は、**テンプレートをフォークしてカスタマイズします**。[Templates](/docs/cloneable-saas) を参照してください。
|
|
24
24
|
- **最初から構築** 新しいエージェント駆動製品のフレームワーク プリミティブが必要な場合は、[Getting Started](/docs/getting-started) から始めます。
|
|
25
25
|
- **別のエージェントまたはコード ツールを接続します** Claude、ChatGPT、Codex、カーソル、または GitHub Copilot / VS Code でエージェント ネイティブ アプリを使用する場合は、「[External Agents](/docs/external-agents) および [Skills Guide](/docs/skills-guide)」を参照してください。
|
|
@@ -130,7 +130,7 @@ Anthropic Claude、OpenAI (GPT-5 ファミリー)、Google Gemini、および Op
|
|
|
130
130
|
|
|
131
131
|
### テンプレートでカバーされていないものを構築できますか? {#build-from-scratch}
|
|
132
132
|
|
|
133
|
-
|
|
133
|
+
はい。基本的な agentic app が必要な場合は、`npx @agent-native/core@latest create my-chat-app --template chat` を実行します。耐久性のあるチャット スレッド、actions、認証、SQL に基づくランタイム状態、ネイティブ インライン表示、および独自の画面を追加する余地が得られます。ブラウザーなしの automation を作る場合は、`npx @agent-native/core@latest create my-agent --headless` を実行します。[Getting Started](/docs/getting-started)、[Automation-First Apps](/docs/pure-agent-apps)、および [Chat](/docs/template-chat) を参照してください。
|
|
134
134
|
|
|
135
135
|
### テンプレートをフォークせずに試してみることはできますか? {#try-with-a-skill}
|
|
136
136
|
|