Skip to content

Commit 6fc272b

Browse files
Copilothotlong
andcommitted
Final verification - all changes complete
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
1 parent 466df4b commit 6fc272b

150 files changed

Lines changed: 11439 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 172 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,172 @@
1+
---
2+
title: Agent Action
3+
description: Agent Action protocol schemas
4+
---
5+
6+
AI Agent Action Protocol
7+
8+
Defines how AI agents can interact with the UI by mapping natural language intents
9+
10+
to structured UI actions. This enables agents to not only query data but also
11+
12+
manipulate the interface, navigate between views, and trigger workflows.
13+
14+
Architecture Alignment:
15+
16+
- Salesforce Einstein: Action recommendations and automated UI interactions
17+
18+
- ServiceNow Virtual Agent: UI action automation
19+
20+
- Microsoft Power Virtual Agents: Bot actions and UI integration
21+
22+
Use Cases:
23+
24+
- "Open the new account form" → Navigate to form view
25+
26+
- "Show me all active opportunities" → Navigate to list view with filter
27+
28+
- "Create a new task for John" → Open form with pre-filled data
29+
30+
- "Switch to the kanban view" → Change view mode
31+
32+
<Callout type="info">
33+
**Source:** `packages/spec/src/ai/agent-action.zod.ts`
34+
</Callout>
35+
36+
## TypeScript Usage
37+
38+
```typescript
39+
import { AgentAction, AgentActionResult, AgentActionSequence, AgentActionSequenceResult, ComponentActionParams, ComponentActionType, ComponentAgentAction, DataActionParams, DataActionType, DataAgentAction, FormActionParams, FormActionType, FormAgentAction, IntentActionMapping, NavigationActionParams, NavigationActionType, NavigationAgentAction, TypedAgentAction, UIActionType, ViewActionParams, ViewActionType, ViewAgentAction, WorkflowActionParams, WorkflowActionType, WorkflowAgentAction } from '@objectstack/spec/ai';
40+
import type { AgentAction, AgentActionResult, AgentActionSequence, AgentActionSequenceResult, ComponentActionParams, ComponentActionType, ComponentAgentAction, DataActionParams, DataActionType, DataAgentAction, FormActionParams, FormActionType, FormAgentAction, IntentActionMapping, NavigationActionParams, NavigationActionType, NavigationAgentAction, TypedAgentAction, UIActionType, ViewActionParams, ViewActionType, ViewAgentAction, WorkflowActionParams, WorkflowActionType, WorkflowAgentAction } from '@objectstack/spec/ai';
41+
42+
// Validate data
43+
const result = AgentAction.parse(data);
44+
```
45+
46+
---
47+
48+
## AgentAction
49+
50+
51+
---
52+
53+
## AgentActionResult
54+
55+
56+
---
57+
58+
## AgentActionSequence
59+
60+
61+
---
62+
63+
## AgentActionSequenceResult
64+
65+
66+
---
67+
68+
## ComponentActionParams
69+
70+
71+
---
72+
73+
## ComponentActionType
74+
75+
76+
---
77+
78+
## ComponentAgentAction
79+
80+
81+
---
82+
83+
## DataActionParams
84+
85+
86+
---
87+
88+
## DataActionType
89+
90+
91+
---
92+
93+
## DataAgentAction
94+
95+
96+
---
97+
98+
## FormActionParams
99+
100+
101+
---
102+
103+
## FormActionType
104+
105+
106+
---
107+
108+
## FormAgentAction
109+
110+
111+
---
112+
113+
## IntentActionMapping
114+
115+
116+
---
117+
118+
## NavigationActionParams
119+
120+
121+
---
122+
123+
## NavigationActionType
124+
125+
126+
---
127+
128+
## NavigationAgentAction
129+
130+
131+
---
132+
133+
## TypedAgentAction
134+
135+
136+
---
137+
138+
## UIActionType
139+
140+
141+
---
142+
143+
## ViewActionParams
144+
145+
146+
---
147+
148+
## ViewActionType
149+
150+
151+
---
152+
153+
## ViewAgentAction
154+
155+
156+
---
157+
158+
## WorkflowActionParams
159+
160+
161+
---
162+
163+
## WorkflowActionType
164+
165+
166+
---
167+
168+
## WorkflowAgentAction
169+
170+
171+
---
172+
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
---
2+
title: Agent
3+
description: Agent protocol schemas
4+
---
5+
6+
AI Model Configuration
7+
8+
<Callout type="info">
9+
**Source:** `packages/spec/src/ai/agent.zod.ts`
10+
</Callout>
11+
12+
## TypeScript Usage
13+
14+
```typescript
15+
import { AIKnowledge, AIModelConfig, AITool, Agent } from '@objectstack/spec/ai';
16+
import type { AIKnowledge, AIModelConfig, AITool, Agent } from '@objectstack/spec/ai';
17+
18+
// Validate data
19+
const result = AIKnowledge.parse(data);
20+
```
21+
22+
---
23+
24+
## AIKnowledge
25+
26+
27+
---
28+
29+
## AIModelConfig
30+
31+
32+
---
33+
34+
## AITool
35+
36+
37+
---
38+
39+
## Agent
40+
41+
42+
---
43+
Lines changed: 117 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,117 @@
1+
---
2+
title: Conversation
3+
description: Conversation protocol schemas
4+
---
5+
6+
AI Conversation Memory Protocol
7+
8+
Multi-turn AI conversations with token budget management.
9+
10+
Enables context preservation, conversation history, and token optimization.
11+
12+
<Callout type="info">
13+
**Source:** `packages/spec/src/ai/conversation.zod.ts`
14+
</Callout>
15+
16+
## TypeScript Usage
17+
18+
```typescript
19+
import { CodeContent, ConversationAnalytics, ConversationContext, ConversationMessage, ConversationSession, ConversationSummary, FileContent, FunctionCall, ImageContent, MessageContent, MessageContentType, MessagePruningEvent, MessageRole, TextContent, TokenBudgetConfig, TokenBudgetStrategy, TokenUsageStats, ToolCall } from '@objectstack/spec/ai';
20+
import type { CodeContent, ConversationAnalytics, ConversationContext, ConversationMessage, ConversationSession, ConversationSummary, FileContent, FunctionCall, ImageContent, MessageContent, MessageContentType, MessagePruningEvent, MessageRole, TextContent, TokenBudgetConfig, TokenBudgetStrategy, TokenUsageStats, ToolCall } from '@objectstack/spec/ai';
21+
22+
// Validate data
23+
const result = CodeContent.parse(data);
24+
```
25+
26+
---
27+
28+
## CodeContent
29+
30+
31+
---
32+
33+
## ConversationAnalytics
34+
35+
36+
---
37+
38+
## ConversationContext
39+
40+
41+
---
42+
43+
## ConversationMessage
44+
45+
46+
---
47+
48+
## ConversationSession
49+
50+
51+
---
52+
53+
## ConversationSummary
54+
55+
56+
---
57+
58+
## FileContent
59+
60+
61+
---
62+
63+
## FunctionCall
64+
65+
66+
---
67+
68+
## ImageContent
69+
70+
71+
---
72+
73+
## MessageContent
74+
75+
76+
---
77+
78+
## MessageContentType
79+
80+
81+
---
82+
83+
## MessagePruningEvent
84+
85+
86+
---
87+
88+
## MessageRole
89+
90+
91+
---
92+
93+
## TextContent
94+
95+
96+
---
97+
98+
## TokenBudgetConfig
99+
100+
101+
---
102+
103+
## TokenBudgetStrategy
104+
105+
106+
---
107+
108+
## TokenUsageStats
109+
110+
111+
---
112+
113+
## ToolCall
114+
115+
116+
---
117+

0 commit comments

Comments
 (0)