skedyul 1.2.41 → 1.2.43
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/dist/cli/commands/agents.d.ts +1 -0
- package/dist/cli/commands/chat.d.ts +1 -0
- package/dist/cli/commands/crm.d.ts +1 -0
- package/dist/cli/commands/skills.d.ts +1 -0
- package/dist/cli/index.js +17627 -6229
- package/dist/cli/utils/auth.js +495 -0
- package/dist/cli/utils/mock-context.d.ts +22 -0
- package/dist/cli/utils/sse.d.ts +100 -0
- package/dist/compiler/compiler.d.ts +12 -0
- package/dist/compiler/index.d.ts +2 -0
- package/dist/compiler/types.d.ts +173 -0
- package/dist/config/index.d.ts +1 -0
- package/dist/config/schema-loader.d.ts +156 -0
- package/dist/config/types/model.d.ts +28 -0
- package/dist/context/index.d.ts +2 -0
- package/dist/context/resolver.d.ts +51 -0
- package/dist/context/types.d.ts +217 -0
- package/dist/dedicated/server.js +10 -6
- package/dist/esm/index.mjs +9616 -444
- package/dist/events/index.d.ts +1 -0
- package/dist/events/types.d.ts +528 -0
- package/dist/index.d.ts +16 -0
- package/dist/index.js +9709 -455
- package/dist/memory/index.d.ts +4 -0
- package/dist/memory/service.d.ts +78 -0
- package/dist/memory/types.d.ts +169 -0
- package/dist/schemas/agent-schema-v3.d.ts +437 -0
- package/dist/schemas/agent-schema-v3.js +539 -0
- package/dist/schemas/agent-schema-v3.mjs +497 -0
- package/dist/schemas/agent-schema.d.ts +1504 -0
- package/dist/schemas/agent-schema.js +7896 -0
- package/dist/schemas/agent-schema.mjs +7867 -0
- package/dist/schemas/crm-schema.d.ts +448 -0
- package/dist/schemas/index.d.ts +2 -0
- package/dist/schemas.d.ts +69 -36
- package/dist/server.js +10 -6
- package/dist/serverless/server.mjs +10 -6
- package/dist/skills/index.d.ts +1 -0
- package/dist/skills/types.d.ts +355 -0
- package/dist/skills/types.js +281 -0
- package/dist/skills/types.mjs +234 -0
- package/dist/triggers/index.d.ts +2 -0
- package/dist/triggers/resolver.d.ts +31 -0
- package/dist/triggers/types.d.ts +313 -0
- package/dist/types/data-blocks.d.ts +105 -0
- package/dist/types/index.d.ts +2 -1
- package/dist/types/tool-response.d.ts +16 -0
- package/dist/types/tool.d.ts +30 -8
- package/dist/workflows/index.d.ts +1 -0
- package/dist/workflows/types.d.ts +295 -0
- package/package.json +19 -1
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { MemoryEntryTypeSchema, MemoryEntrySchema, WorkingMemoryConfigSchema, SemanticMemoryConfigSchema, ExternalMemoryConfigSchema, MemoryConfigSchema, MemoryScopeSchema, MemoryQueryOptionsSchema, ConversationSummarySchema, AgentObservationSchema, ExternalDataCacheSchema, } from './types';
|
|
2
|
+
export type { MemoryEntryType, MemoryEntry, WorkingMemoryConfig, SemanticMemoryConfig, ExternalMemoryConfig, MemoryConfig, MemoryScope, MemoryQueryOptions, ConversationSummary, AgentObservation, ExternalDataCache, } from './types';
|
|
3
|
+
export { MemoryService, InMemoryStore, createInMemoryService, } from './service';
|
|
4
|
+
export type { MemoryStore } from './service';
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import type { MemoryScope, MemoryEntry, MemoryEntryType, MemoryQueryOptions, ConversationSummary, AgentObservation, ExternalDataCache, WorkingMemoryConfig } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Memory store interface - implemented by database or in-memory store
|
|
4
|
+
*/
|
|
5
|
+
export interface MemoryStore {
|
|
6
|
+
get(scope: MemoryScope, key: string): Promise<MemoryEntry | null>;
|
|
7
|
+
set(scope: MemoryScope, key: string, value: unknown, options?: {
|
|
8
|
+
type?: MemoryEntryType;
|
|
9
|
+
expiresAt?: Date;
|
|
10
|
+
metadata?: Record<string, unknown>;
|
|
11
|
+
}): Promise<MemoryEntry>;
|
|
12
|
+
delete(scope: MemoryScope, key: string): Promise<void>;
|
|
13
|
+
query(scope: MemoryScope, options?: Partial<MemoryQueryOptions>): Promise<MemoryEntry[]>;
|
|
14
|
+
clear(scope: MemoryScope, type?: MemoryEntryType): Promise<void>;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* In-memory store for testing and development
|
|
18
|
+
*/
|
|
19
|
+
export declare class InMemoryStore implements MemoryStore {
|
|
20
|
+
private store;
|
|
21
|
+
private buildKey;
|
|
22
|
+
get(scope: MemoryScope, key: string): Promise<MemoryEntry | null>;
|
|
23
|
+
set(scope: MemoryScope, key: string, value: unknown, options?: {
|
|
24
|
+
type?: MemoryEntryType;
|
|
25
|
+
expiresAt?: Date;
|
|
26
|
+
metadata?: Record<string, unknown>;
|
|
27
|
+
}): Promise<MemoryEntry>;
|
|
28
|
+
delete(scope: MemoryScope, key: string): Promise<void>;
|
|
29
|
+
query(scope: MemoryScope, options?: Partial<MemoryQueryOptions>): Promise<MemoryEntry[]>;
|
|
30
|
+
clear(scope: MemoryScope, type?: MemoryEntryType): Promise<void>;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Memory service for agent memory management
|
|
34
|
+
*/
|
|
35
|
+
export declare class MemoryService {
|
|
36
|
+
private store;
|
|
37
|
+
constructor(store: MemoryStore);
|
|
38
|
+
/**
|
|
39
|
+
* Get working memory for a thread/participant
|
|
40
|
+
*/
|
|
41
|
+
getWorkingMemory(scope: MemoryScope): Promise<ConversationSummary | null>;
|
|
42
|
+
/**
|
|
43
|
+
* Update working memory with new conversation summary
|
|
44
|
+
*/
|
|
45
|
+
updateWorkingMemory(scope: MemoryScope, summary: ConversationSummary, config?: WorkingMemoryConfig): Promise<void>;
|
|
46
|
+
/**
|
|
47
|
+
* Add an observation to memory
|
|
48
|
+
*/
|
|
49
|
+
addObservation(scope: MemoryScope, observation: Omit<AgentObservation, 'createdAt'>): Promise<void>;
|
|
50
|
+
/**
|
|
51
|
+
* Get all observations for a scope
|
|
52
|
+
*/
|
|
53
|
+
getObservations(scope: MemoryScope, limit?: number): Promise<AgentObservation[]>;
|
|
54
|
+
/**
|
|
55
|
+
* Cache external API data
|
|
56
|
+
*/
|
|
57
|
+
cacheExternalData(scope: MemoryScope, source: string, data: unknown, options?: {
|
|
58
|
+
endpoint?: string;
|
|
59
|
+
ttl?: string;
|
|
60
|
+
metadata?: Record<string, unknown>;
|
|
61
|
+
}): Promise<void>;
|
|
62
|
+
/**
|
|
63
|
+
* Get cached external data
|
|
64
|
+
*/
|
|
65
|
+
getExternalData(scope: MemoryScope, source: string): Promise<ExternalDataCache | null>;
|
|
66
|
+
/**
|
|
67
|
+
* Clear all external data cache
|
|
68
|
+
*/
|
|
69
|
+
clearExternalCache(scope: MemoryScope): Promise<void>;
|
|
70
|
+
/**
|
|
71
|
+
* Build context string from memory for LLM prompt
|
|
72
|
+
*/
|
|
73
|
+
buildMemoryContext(scope: MemoryScope): Promise<string>;
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Create a memory service with in-memory store (for testing)
|
|
77
|
+
*/
|
|
78
|
+
export declare function createInMemoryService(): MemoryService;
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
import { z } from 'zod/v4';
|
|
2
|
+
/**
|
|
3
|
+
* Memory entry types
|
|
4
|
+
*/
|
|
5
|
+
export declare const MemoryEntryTypeSchema: z.ZodEnum<{
|
|
6
|
+
EXTERNAL: "EXTERNAL";
|
|
7
|
+
WORKING: "WORKING";
|
|
8
|
+
OBSERVATION: "OBSERVATION";
|
|
9
|
+
SEMANTIC: "SEMANTIC";
|
|
10
|
+
}>;
|
|
11
|
+
export type MemoryEntryType = z.infer<typeof MemoryEntryTypeSchema>;
|
|
12
|
+
/**
|
|
13
|
+
* Memory entry schema
|
|
14
|
+
*/
|
|
15
|
+
export declare const MemoryEntrySchema: z.ZodObject<{
|
|
16
|
+
id: z.ZodString;
|
|
17
|
+
type: z.ZodEnum<{
|
|
18
|
+
EXTERNAL: "EXTERNAL";
|
|
19
|
+
WORKING: "WORKING";
|
|
20
|
+
OBSERVATION: "OBSERVATION";
|
|
21
|
+
SEMANTIC: "SEMANTIC";
|
|
22
|
+
}>;
|
|
23
|
+
key: z.ZodString;
|
|
24
|
+
value: z.ZodUnknown;
|
|
25
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
26
|
+
expiresAt: z.ZodOptional<z.ZodString>;
|
|
27
|
+
createdAt: z.ZodString;
|
|
28
|
+
updatedAt: z.ZodString;
|
|
29
|
+
}, z.core.$strip>;
|
|
30
|
+
export type MemoryEntry = z.infer<typeof MemoryEntrySchema>;
|
|
31
|
+
/**
|
|
32
|
+
* Working memory configuration
|
|
33
|
+
*/
|
|
34
|
+
export declare const WorkingMemoryConfigSchema: z.ZodObject<{
|
|
35
|
+
strategy: z.ZodDefault<z.ZodEnum<{
|
|
36
|
+
full: "full";
|
|
37
|
+
rolling_summary: "rolling_summary";
|
|
38
|
+
sliding_window: "sliding_window";
|
|
39
|
+
}>>;
|
|
40
|
+
maxTokens: z.ZodDefault<z.ZodNumber>;
|
|
41
|
+
summarizeAt: z.ZodOptional<z.ZodNumber>;
|
|
42
|
+
ttl: z.ZodOptional<z.ZodString>;
|
|
43
|
+
}, z.core.$strip>;
|
|
44
|
+
export type WorkingMemoryConfig = z.infer<typeof WorkingMemoryConfigSchema>;
|
|
45
|
+
/**
|
|
46
|
+
* Semantic memory configuration
|
|
47
|
+
*/
|
|
48
|
+
export declare const SemanticMemoryConfigSchema: z.ZodObject<{
|
|
49
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
50
|
+
topK: z.ZodDefault<z.ZodNumber>;
|
|
51
|
+
scope: z.ZodDefault<z.ZodEnum<{
|
|
52
|
+
instance: "instance";
|
|
53
|
+
thread: "thread";
|
|
54
|
+
workspace: "workspace";
|
|
55
|
+
}>>;
|
|
56
|
+
minScore: z.ZodDefault<z.ZodNumber>;
|
|
57
|
+
}, z.core.$strip>;
|
|
58
|
+
export type SemanticMemoryConfig = z.infer<typeof SemanticMemoryConfigSchema>;
|
|
59
|
+
/**
|
|
60
|
+
* External memory configuration
|
|
61
|
+
*/
|
|
62
|
+
export declare const ExternalMemoryConfigSchema: z.ZodObject<{
|
|
63
|
+
namespace: z.ZodString;
|
|
64
|
+
ttl: z.ZodOptional<z.ZodString>;
|
|
65
|
+
}, z.core.$strip>;
|
|
66
|
+
export type ExternalMemoryConfig = z.infer<typeof ExternalMemoryConfigSchema>;
|
|
67
|
+
/**
|
|
68
|
+
* Full memory configuration
|
|
69
|
+
*/
|
|
70
|
+
export declare const MemoryConfigSchema: z.ZodObject<{
|
|
71
|
+
working: z.ZodOptional<z.ZodObject<{
|
|
72
|
+
strategy: z.ZodDefault<z.ZodEnum<{
|
|
73
|
+
full: "full";
|
|
74
|
+
rolling_summary: "rolling_summary";
|
|
75
|
+
sliding_window: "sliding_window";
|
|
76
|
+
}>>;
|
|
77
|
+
maxTokens: z.ZodDefault<z.ZodNumber>;
|
|
78
|
+
summarizeAt: z.ZodOptional<z.ZodNumber>;
|
|
79
|
+
ttl: z.ZodOptional<z.ZodString>;
|
|
80
|
+
}, z.core.$strip>>;
|
|
81
|
+
semantic: z.ZodOptional<z.ZodObject<{
|
|
82
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
83
|
+
topK: z.ZodDefault<z.ZodNumber>;
|
|
84
|
+
scope: z.ZodDefault<z.ZodEnum<{
|
|
85
|
+
instance: "instance";
|
|
86
|
+
thread: "thread";
|
|
87
|
+
workspace: "workspace";
|
|
88
|
+
}>>;
|
|
89
|
+
minScore: z.ZodDefault<z.ZodNumber>;
|
|
90
|
+
}, z.core.$strip>>;
|
|
91
|
+
external: z.ZodOptional<z.ZodObject<{
|
|
92
|
+
namespace: z.ZodString;
|
|
93
|
+
ttl: z.ZodOptional<z.ZodString>;
|
|
94
|
+
}, z.core.$strip>>;
|
|
95
|
+
persistent: z.ZodOptional<z.ZodObject<{
|
|
96
|
+
namespace: z.ZodString;
|
|
97
|
+
}, z.core.$strip>>;
|
|
98
|
+
}, z.core.$strip>;
|
|
99
|
+
export type MemoryConfig = z.infer<typeof MemoryConfigSchema>;
|
|
100
|
+
/**
|
|
101
|
+
* Memory scope for queries
|
|
102
|
+
*/
|
|
103
|
+
export declare const MemoryScopeSchema: z.ZodObject<{
|
|
104
|
+
threadId: z.ZodOptional<z.ZodString>;
|
|
105
|
+
participantId: z.ZodOptional<z.ZodString>;
|
|
106
|
+
agentId: z.ZodOptional<z.ZodString>;
|
|
107
|
+
workplaceId: z.ZodOptional<z.ZodString>;
|
|
108
|
+
namespace: z.ZodOptional<z.ZodString>;
|
|
109
|
+
}, z.core.$strip>;
|
|
110
|
+
export type MemoryScope = z.infer<typeof MemoryScopeSchema>;
|
|
111
|
+
/**
|
|
112
|
+
* Memory query options
|
|
113
|
+
*/
|
|
114
|
+
export declare const MemoryQueryOptionsSchema: z.ZodObject<{
|
|
115
|
+
types: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
116
|
+
EXTERNAL: "EXTERNAL";
|
|
117
|
+
WORKING: "WORKING";
|
|
118
|
+
OBSERVATION: "OBSERVATION";
|
|
119
|
+
SEMANTIC: "SEMANTIC";
|
|
120
|
+
}>>>;
|
|
121
|
+
keys: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
122
|
+
limit: z.ZodDefault<z.ZodNumber>;
|
|
123
|
+
includeExpired: z.ZodDefault<z.ZodBoolean>;
|
|
124
|
+
}, z.core.$strip>;
|
|
125
|
+
export type MemoryQueryOptions = z.infer<typeof MemoryQueryOptionsSchema>;
|
|
126
|
+
/**
|
|
127
|
+
* Conversation summary for working memory
|
|
128
|
+
*/
|
|
129
|
+
export declare const ConversationSummarySchema: z.ZodObject<{
|
|
130
|
+
summary: z.ZodString;
|
|
131
|
+
keyPoints: z.ZodArray<z.ZodString>;
|
|
132
|
+
entities: z.ZodArray<z.ZodObject<{
|
|
133
|
+
name: z.ZodString;
|
|
134
|
+
type: z.ZodString;
|
|
135
|
+
relevance: z.ZodNumber;
|
|
136
|
+
}, z.core.$strip>>;
|
|
137
|
+
lastMessageId: z.ZodOptional<z.ZodString>;
|
|
138
|
+
messageCount: z.ZodNumber;
|
|
139
|
+
tokenCount: z.ZodNumber;
|
|
140
|
+
createdAt: z.ZodString;
|
|
141
|
+
}, z.core.$strip>;
|
|
142
|
+
export type ConversationSummary = z.infer<typeof ConversationSummarySchema>;
|
|
143
|
+
/**
|
|
144
|
+
* Agent observation
|
|
145
|
+
*/
|
|
146
|
+
export declare const AgentObservationSchema: z.ZodObject<{
|
|
147
|
+
observation: z.ZodString;
|
|
148
|
+
confidence: z.ZodNumber;
|
|
149
|
+
source: z.ZodEnum<{
|
|
150
|
+
inference: "inference";
|
|
151
|
+
explicit: "explicit";
|
|
152
|
+
tool_result: "tool_result";
|
|
153
|
+
}>;
|
|
154
|
+
context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
155
|
+
createdAt: z.ZodString;
|
|
156
|
+
}, z.core.$strip>;
|
|
157
|
+
export type AgentObservation = z.infer<typeof AgentObservationSchema>;
|
|
158
|
+
/**
|
|
159
|
+
* External data cache entry
|
|
160
|
+
*/
|
|
161
|
+
export declare const ExternalDataCacheSchema: z.ZodObject<{
|
|
162
|
+
source: z.ZodString;
|
|
163
|
+
endpoint: z.ZodOptional<z.ZodString>;
|
|
164
|
+
data: z.ZodUnknown;
|
|
165
|
+
fetchedAt: z.ZodString;
|
|
166
|
+
expiresAt: z.ZodOptional<z.ZodString>;
|
|
167
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
168
|
+
}, z.core.$strip>;
|
|
169
|
+
export type ExternalDataCache = z.infer<typeof ExternalDataCacheSchema>;
|
|
@@ -0,0 +1,437 @@
|
|
|
1
|
+
import { z } from 'zod/v4';
|
|
2
|
+
/**
|
|
3
|
+
* Agent YAML v3 Schema
|
|
4
|
+
*
|
|
5
|
+
* This is the new agent schema that removes stages and uses skills instead.
|
|
6
|
+
* Agents are now first-class thread participants that subscribe to events
|
|
7
|
+
* and react autonomously using skills and tools.
|
|
8
|
+
*/
|
|
9
|
+
export declare const AGENT_SCHEMA_VERSION_V3 = "https://skedyul.com/schemas/agent/v3";
|
|
10
|
+
/**
|
|
11
|
+
* Persona voice format configuration
|
|
12
|
+
*/
|
|
13
|
+
export declare const PersonaVoiceFormatV3Schema: z.ZodObject<{
|
|
14
|
+
maxChars: z.ZodOptional<z.ZodNumber>;
|
|
15
|
+
noEmojis: z.ZodOptional<z.ZodBoolean>;
|
|
16
|
+
noHyphens: z.ZodOptional<z.ZodBoolean>;
|
|
17
|
+
noBulletPoints: z.ZodOptional<z.ZodBoolean>;
|
|
18
|
+
maxQuestionsPerMessage: z.ZodOptional<z.ZodNumber>;
|
|
19
|
+
noSignOffs: z.ZodOptional<z.ZodBoolean>;
|
|
20
|
+
}, z.core.$strip>;
|
|
21
|
+
export type PersonaVoiceFormatV3 = z.infer<typeof PersonaVoiceFormatV3Schema>;
|
|
22
|
+
/**
|
|
23
|
+
* Persona voice configuration
|
|
24
|
+
*/
|
|
25
|
+
export declare const PersonaVoiceV3Schema: z.ZodObject<{
|
|
26
|
+
style: z.ZodString;
|
|
27
|
+
format: z.ZodOptional<z.ZodObject<{
|
|
28
|
+
maxChars: z.ZodOptional<z.ZodNumber>;
|
|
29
|
+
noEmojis: z.ZodOptional<z.ZodBoolean>;
|
|
30
|
+
noHyphens: z.ZodOptional<z.ZodBoolean>;
|
|
31
|
+
noBulletPoints: z.ZodOptional<z.ZodBoolean>;
|
|
32
|
+
maxQuestionsPerMessage: z.ZodOptional<z.ZodNumber>;
|
|
33
|
+
noSignOffs: z.ZodOptional<z.ZodBoolean>;
|
|
34
|
+
}, z.core.$strip>>;
|
|
35
|
+
}, z.core.$strip>;
|
|
36
|
+
export type PersonaVoiceV3 = z.infer<typeof PersonaVoiceV3Schema>;
|
|
37
|
+
/**
|
|
38
|
+
* Persona configuration for agent voice and formatting
|
|
39
|
+
*/
|
|
40
|
+
export declare const PersonaV3Schema: z.ZodObject<{
|
|
41
|
+
name: z.ZodString;
|
|
42
|
+
voice: z.ZodObject<{
|
|
43
|
+
style: z.ZodString;
|
|
44
|
+
format: z.ZodOptional<z.ZodObject<{
|
|
45
|
+
maxChars: z.ZodOptional<z.ZodNumber>;
|
|
46
|
+
noEmojis: z.ZodOptional<z.ZodBoolean>;
|
|
47
|
+
noHyphens: z.ZodOptional<z.ZodBoolean>;
|
|
48
|
+
noBulletPoints: z.ZodOptional<z.ZodBoolean>;
|
|
49
|
+
maxQuestionsPerMessage: z.ZodOptional<z.ZodNumber>;
|
|
50
|
+
noSignOffs: z.ZodOptional<z.ZodBoolean>;
|
|
51
|
+
}, z.core.$strip>>;
|
|
52
|
+
}, z.core.$strip>;
|
|
53
|
+
}, z.core.$strip>;
|
|
54
|
+
export type PersonaV3 = z.infer<typeof PersonaV3Schema>;
|
|
55
|
+
/**
|
|
56
|
+
* Tool approval configuration
|
|
57
|
+
*/
|
|
58
|
+
export declare const ToolApprovalConfigSchema: z.ZodObject<{
|
|
59
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
60
|
+
requiredIf: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
61
|
+
}, z.core.$strip>;
|
|
62
|
+
export type ToolApprovalConfig = z.infer<typeof ToolApprovalConfigSchema>;
|
|
63
|
+
/**
|
|
64
|
+
* Tool sandbox configuration for mock responses
|
|
65
|
+
*/
|
|
66
|
+
export declare const ToolSandboxConfigSchema: z.ZodObject<{
|
|
67
|
+
mock: z.ZodOptional<z.ZodUnknown>;
|
|
68
|
+
}, z.core.$strip>;
|
|
69
|
+
export type ToolSandboxConfig = z.infer<typeof ToolSandboxConfigSchema>;
|
|
70
|
+
/**
|
|
71
|
+
* Tool reference with optional approval and sandbox configuration
|
|
72
|
+
* @deprecated Root-level tools on agents are deprecated. Use skills to own tools.
|
|
73
|
+
* For always-available system tools, use bootstrapTools instead.
|
|
74
|
+
*/
|
|
75
|
+
export declare const ToolRefV3Schema: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
76
|
+
tool: z.ZodString;
|
|
77
|
+
description: z.ZodOptional<z.ZodString>;
|
|
78
|
+
approval: z.ZodOptional<z.ZodObject<{
|
|
79
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
80
|
+
requiredIf: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
81
|
+
}, z.core.$strip>>;
|
|
82
|
+
sandbox: z.ZodOptional<z.ZodObject<{
|
|
83
|
+
mock: z.ZodOptional<z.ZodUnknown>;
|
|
84
|
+
}, z.core.$strip>>;
|
|
85
|
+
overrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
86
|
+
}, z.core.$strip>]>;
|
|
87
|
+
export type ToolRefV3 = z.infer<typeof ToolRefV3Schema>;
|
|
88
|
+
/**
|
|
89
|
+
* Bootstrap tool reference - minimal config for always-available system tools
|
|
90
|
+
* These tools are available before any skill is loaded (e.g., system:skill:load)
|
|
91
|
+
*/
|
|
92
|
+
export declare const BootstrapToolRefSchema: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
93
|
+
tool: z.ZodString;
|
|
94
|
+
description: z.ZodOptional<z.ZodString>;
|
|
95
|
+
}, z.core.$strip>]>;
|
|
96
|
+
export type BootstrapToolRef = z.infer<typeof BootstrapToolRefSchema>;
|
|
97
|
+
/**
|
|
98
|
+
* Memory configuration for working memory
|
|
99
|
+
*/
|
|
100
|
+
export declare const WorkingMemoryConfigSchema: z.ZodObject<{
|
|
101
|
+
strategy: z.ZodOptional<z.ZodEnum<{
|
|
102
|
+
full: "full";
|
|
103
|
+
rolling_summary: "rolling_summary";
|
|
104
|
+
sliding_window: "sliding_window";
|
|
105
|
+
}>>;
|
|
106
|
+
maxTokens: z.ZodOptional<z.ZodNumber>;
|
|
107
|
+
summarizeAt: z.ZodOptional<z.ZodNumber>;
|
|
108
|
+
}, z.core.$strip>;
|
|
109
|
+
export type WorkingMemoryConfig = z.infer<typeof WorkingMemoryConfigSchema>;
|
|
110
|
+
/**
|
|
111
|
+
* Memory configuration for external data
|
|
112
|
+
*/
|
|
113
|
+
export declare const ExternalMemoryConfigSchema: z.ZodObject<{
|
|
114
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
115
|
+
ttl: z.ZodOptional<z.ZodString>;
|
|
116
|
+
}, z.core.$strip>;
|
|
117
|
+
export type ExternalMemoryConfig = z.infer<typeof ExternalMemoryConfigSchema>;
|
|
118
|
+
/**
|
|
119
|
+
* Memory configuration for semantic search
|
|
120
|
+
*/
|
|
121
|
+
export declare const SemanticMemoryConfigSchema: z.ZodObject<{
|
|
122
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
123
|
+
topK: z.ZodOptional<z.ZodNumber>;
|
|
124
|
+
scope: z.ZodOptional<z.ZodEnum<{
|
|
125
|
+
instance: "instance";
|
|
126
|
+
thread: "thread";
|
|
127
|
+
workspace: "workspace";
|
|
128
|
+
}>>;
|
|
129
|
+
}, z.core.$strip>;
|
|
130
|
+
export type SemanticMemoryConfig = z.infer<typeof SemanticMemoryConfigSchema>;
|
|
131
|
+
/**
|
|
132
|
+
* Full memory configuration
|
|
133
|
+
*/
|
|
134
|
+
export declare const MemoryConfigV3Schema: z.ZodObject<{
|
|
135
|
+
working: z.ZodOptional<z.ZodObject<{
|
|
136
|
+
strategy: z.ZodOptional<z.ZodEnum<{
|
|
137
|
+
full: "full";
|
|
138
|
+
rolling_summary: "rolling_summary";
|
|
139
|
+
sliding_window: "sliding_window";
|
|
140
|
+
}>>;
|
|
141
|
+
maxTokens: z.ZodOptional<z.ZodNumber>;
|
|
142
|
+
summarizeAt: z.ZodOptional<z.ZodNumber>;
|
|
143
|
+
}, z.core.$strip>>;
|
|
144
|
+
persistent: z.ZodOptional<z.ZodObject<{
|
|
145
|
+
namespace: z.ZodOptional<z.ZodString>;
|
|
146
|
+
}, z.core.$strip>>;
|
|
147
|
+
external: z.ZodOptional<z.ZodObject<{
|
|
148
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
149
|
+
ttl: z.ZodOptional<z.ZodString>;
|
|
150
|
+
}, z.core.$strip>>;
|
|
151
|
+
semantic: z.ZodOptional<z.ZodObject<{
|
|
152
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
153
|
+
topK: z.ZodOptional<z.ZodNumber>;
|
|
154
|
+
scope: z.ZodOptional<z.ZodEnum<{
|
|
155
|
+
instance: "instance";
|
|
156
|
+
thread: "thread";
|
|
157
|
+
workspace: "workspace";
|
|
158
|
+
}>>;
|
|
159
|
+
}, z.core.$strip>>;
|
|
160
|
+
}, z.core.$strip>;
|
|
161
|
+
export type MemoryConfigV3 = z.infer<typeof MemoryConfigV3Schema>;
|
|
162
|
+
/**
|
|
163
|
+
* Policy configuration for response approval
|
|
164
|
+
*/
|
|
165
|
+
export declare const ResponsePolicySchema: z.ZodObject<{
|
|
166
|
+
requiresApproval: z.ZodOptional<z.ZodBoolean>;
|
|
167
|
+
requiresApprovalIf: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
168
|
+
}, z.core.$strip>;
|
|
169
|
+
export type ResponsePolicy = z.infer<typeof ResponsePolicySchema>;
|
|
170
|
+
/**
|
|
171
|
+
* Full policies configuration
|
|
172
|
+
*/
|
|
173
|
+
export declare const PoliciesConfigV3Schema: z.ZodObject<{
|
|
174
|
+
response: z.ZodOptional<z.ZodObject<{
|
|
175
|
+
requiresApproval: z.ZodOptional<z.ZodBoolean>;
|
|
176
|
+
requiresApprovalIf: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
177
|
+
}, z.core.$strip>>;
|
|
178
|
+
rules: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
179
|
+
}, z.core.$strip>;
|
|
180
|
+
export type PoliciesConfigV3 = z.infer<typeof PoliciesConfigV3Schema>;
|
|
181
|
+
/**
|
|
182
|
+
* Runtime configuration
|
|
183
|
+
*/
|
|
184
|
+
export declare const RuntimeConfigV3Schema: z.ZodObject<{
|
|
185
|
+
model: z.ZodOptional<z.ZodString>;
|
|
186
|
+
timeout: z.ZodOptional<z.ZodString>;
|
|
187
|
+
timezone: z.ZodOptional<z.ZodString>;
|
|
188
|
+
retry: z.ZodOptional<z.ZodObject<{
|
|
189
|
+
attempts: z.ZodOptional<z.ZodNumber>;
|
|
190
|
+
backoff: z.ZodOptional<z.ZodEnum<{
|
|
191
|
+
linear: "linear";
|
|
192
|
+
exponential: "exponential";
|
|
193
|
+
}>>;
|
|
194
|
+
}, z.core.$strip>>;
|
|
195
|
+
}, z.core.$strip>;
|
|
196
|
+
export type RuntimeConfigV3 = z.infer<typeof RuntimeConfigV3Schema>;
|
|
197
|
+
/**
|
|
198
|
+
* Prompts configuration for agent-specific prompt injections.
|
|
199
|
+
* These prompts are injected during specific runtime phases.
|
|
200
|
+
*/
|
|
201
|
+
export declare const PromptsConfigV3Schema: z.ZodObject<{
|
|
202
|
+
recovery: z.ZodOptional<z.ZodString>;
|
|
203
|
+
followUp: z.ZodOptional<z.ZodString>;
|
|
204
|
+
skillDiscoveryWorkflow: z.ZodOptional<z.ZodString>;
|
|
205
|
+
}, z.core.$strip>;
|
|
206
|
+
export type PromptsConfigV3 = z.infer<typeof PromptsConfigV3Schema>;
|
|
207
|
+
/**
|
|
208
|
+
* Agent configuration (business-specific settings)
|
|
209
|
+
*/
|
|
210
|
+
export declare const AgentConfigV3Schema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
211
|
+
export type AgentConfigV3 = z.infer<typeof AgentConfigV3Schema>;
|
|
212
|
+
/**
|
|
213
|
+
* Full Agent YAML v3 Schema
|
|
214
|
+
*
|
|
215
|
+
* This schema removes stages and uses skills instead.
|
|
216
|
+
* Agents subscribe to events and react autonomously.
|
|
217
|
+
*
|
|
218
|
+
* Tool Ownership Model:
|
|
219
|
+
* - Skills own their tools (defined in skill files with full config)
|
|
220
|
+
* - Agents reference skills, not individual tools
|
|
221
|
+
* - bootstrapTools: Always-available system tools (e.g., system:skill:load)
|
|
222
|
+
* - tools: DEPRECATED - kept for backward compatibility only
|
|
223
|
+
*/
|
|
224
|
+
export declare const AgentYAMLV3Schema: z.ZodObject<{
|
|
225
|
+
$schema: z.ZodOptional<z.ZodString>;
|
|
226
|
+
handle: z.ZodString;
|
|
227
|
+
name: z.ZodString;
|
|
228
|
+
version: z.ZodOptional<z.ZodString>;
|
|
229
|
+
description: z.ZodOptional<z.ZodString>;
|
|
230
|
+
persona: z.ZodOptional<z.ZodObject<{
|
|
231
|
+
name: z.ZodString;
|
|
232
|
+
voice: z.ZodObject<{
|
|
233
|
+
style: z.ZodString;
|
|
234
|
+
format: z.ZodOptional<z.ZodObject<{
|
|
235
|
+
maxChars: z.ZodOptional<z.ZodNumber>;
|
|
236
|
+
noEmojis: z.ZodOptional<z.ZodBoolean>;
|
|
237
|
+
noHyphens: z.ZodOptional<z.ZodBoolean>;
|
|
238
|
+
noBulletPoints: z.ZodOptional<z.ZodBoolean>;
|
|
239
|
+
maxQuestionsPerMessage: z.ZodOptional<z.ZodNumber>;
|
|
240
|
+
noSignOffs: z.ZodOptional<z.ZodBoolean>;
|
|
241
|
+
}, z.core.$strip>>;
|
|
242
|
+
}, z.core.$strip>;
|
|
243
|
+
}, z.core.$strip>>;
|
|
244
|
+
skills: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
245
|
+
skill: z.ZodString;
|
|
246
|
+
description: z.ZodOptional<z.ZodString>;
|
|
247
|
+
version: z.ZodOptional<z.ZodNumber>;
|
|
248
|
+
versions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
249
|
+
version: z.ZodNumber;
|
|
250
|
+
weight: z.ZodNumber;
|
|
251
|
+
}, z.core.$strip>>>;
|
|
252
|
+
instructions: z.ZodOptional<z.ZodString>;
|
|
253
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
254
|
+
}, z.core.$strip>]>>>;
|
|
255
|
+
bootstrapTools: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
256
|
+
tool: z.ZodString;
|
|
257
|
+
description: z.ZodOptional<z.ZodString>;
|
|
258
|
+
}, z.core.$strip>]>>>;
|
|
259
|
+
tools: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
260
|
+
tool: z.ZodString;
|
|
261
|
+
description: z.ZodOptional<z.ZodString>;
|
|
262
|
+
approval: z.ZodOptional<z.ZodObject<{
|
|
263
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
264
|
+
requiredIf: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
265
|
+
}, z.core.$strip>>;
|
|
266
|
+
sandbox: z.ZodOptional<z.ZodObject<{
|
|
267
|
+
mock: z.ZodOptional<z.ZodUnknown>;
|
|
268
|
+
}, z.core.$strip>>;
|
|
269
|
+
overrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
270
|
+
}, z.core.$strip>]>>>;
|
|
271
|
+
events: z.ZodOptional<z.ZodObject<{
|
|
272
|
+
subscribes: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodEnum<{
|
|
273
|
+
"thread.message.received": "thread.message.received";
|
|
274
|
+
"thread.message.sent": "thread.message.sent";
|
|
275
|
+
"thread.participant.joined": "thread.participant.joined";
|
|
276
|
+
"thread.participant.left": "thread.participant.left";
|
|
277
|
+
"thread.participant.mentioned": "thread.participant.mentioned";
|
|
278
|
+
"thread.context.changed": "thread.context.changed";
|
|
279
|
+
"thread.status.changed": "thread.status.changed";
|
|
280
|
+
"thread.agent.delegated": "thread.agent.delegated";
|
|
281
|
+
"thread.agent.completed": "thread.agent.completed";
|
|
282
|
+
"thread.workflow.triggered": "thread.workflow.triggered";
|
|
283
|
+
"thread.workflow.completed": "thread.workflow.completed";
|
|
284
|
+
"thread.follow_up.due": "thread.follow_up.due";
|
|
285
|
+
"thread.reminder.due": "thread.reminder.due";
|
|
286
|
+
}>, z.ZodString]>>>;
|
|
287
|
+
condition: z.ZodOptional<z.ZodString>;
|
|
288
|
+
emits: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodEnum<{
|
|
289
|
+
"thread.message.received": "thread.message.received";
|
|
290
|
+
"thread.message.sent": "thread.message.sent";
|
|
291
|
+
"thread.participant.joined": "thread.participant.joined";
|
|
292
|
+
"thread.participant.left": "thread.participant.left";
|
|
293
|
+
"thread.participant.mentioned": "thread.participant.mentioned";
|
|
294
|
+
"thread.context.changed": "thread.context.changed";
|
|
295
|
+
"thread.status.changed": "thread.status.changed";
|
|
296
|
+
"thread.agent.delegated": "thread.agent.delegated";
|
|
297
|
+
"thread.agent.completed": "thread.agent.completed";
|
|
298
|
+
"thread.workflow.triggered": "thread.workflow.triggered";
|
|
299
|
+
"thread.workflow.completed": "thread.workflow.completed";
|
|
300
|
+
"thread.follow_up.due": "thread.follow_up.due";
|
|
301
|
+
"thread.reminder.due": "thread.reminder.due";
|
|
302
|
+
}>, z.ZodString]>>>;
|
|
303
|
+
waits: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
304
|
+
event: z.ZodUnion<readonly [z.ZodEnum<{
|
|
305
|
+
"thread.message.received": "thread.message.received";
|
|
306
|
+
"thread.message.sent": "thread.message.sent";
|
|
307
|
+
"thread.participant.joined": "thread.participant.joined";
|
|
308
|
+
"thread.participant.left": "thread.participant.left";
|
|
309
|
+
"thread.participant.mentioned": "thread.participant.mentioned";
|
|
310
|
+
"thread.context.changed": "thread.context.changed";
|
|
311
|
+
"thread.status.changed": "thread.status.changed";
|
|
312
|
+
"thread.agent.delegated": "thread.agent.delegated";
|
|
313
|
+
"thread.agent.completed": "thread.agent.completed";
|
|
314
|
+
"thread.workflow.triggered": "thread.workflow.triggered";
|
|
315
|
+
"thread.workflow.completed": "thread.workflow.completed";
|
|
316
|
+
"thread.follow_up.due": "thread.follow_up.due";
|
|
317
|
+
"thread.reminder.due": "thread.reminder.due";
|
|
318
|
+
}>, z.ZodString]>;
|
|
319
|
+
timeout: z.ZodOptional<z.ZodString>;
|
|
320
|
+
onTimeout: z.ZodOptional<z.ZodString>;
|
|
321
|
+
}, z.core.$strip>>>;
|
|
322
|
+
cancels: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodEnum<{
|
|
323
|
+
"thread.message.received": "thread.message.received";
|
|
324
|
+
"thread.message.sent": "thread.message.sent";
|
|
325
|
+
"thread.participant.joined": "thread.participant.joined";
|
|
326
|
+
"thread.participant.left": "thread.participant.left";
|
|
327
|
+
"thread.participant.mentioned": "thread.participant.mentioned";
|
|
328
|
+
"thread.context.changed": "thread.context.changed";
|
|
329
|
+
"thread.status.changed": "thread.status.changed";
|
|
330
|
+
"thread.agent.delegated": "thread.agent.delegated";
|
|
331
|
+
"thread.agent.completed": "thread.agent.completed";
|
|
332
|
+
"thread.workflow.triggered": "thread.workflow.triggered";
|
|
333
|
+
"thread.workflow.completed": "thread.workflow.completed";
|
|
334
|
+
"thread.follow_up.due": "thread.follow_up.due";
|
|
335
|
+
"thread.reminder.due": "thread.reminder.due";
|
|
336
|
+
}>, z.ZodString]>>>;
|
|
337
|
+
cancelCondition: z.ZodOptional<z.ZodString>;
|
|
338
|
+
}, z.core.$strip>>;
|
|
339
|
+
memory: z.ZodOptional<z.ZodObject<{
|
|
340
|
+
working: z.ZodOptional<z.ZodObject<{
|
|
341
|
+
strategy: z.ZodOptional<z.ZodEnum<{
|
|
342
|
+
full: "full";
|
|
343
|
+
rolling_summary: "rolling_summary";
|
|
344
|
+
sliding_window: "sliding_window";
|
|
345
|
+
}>>;
|
|
346
|
+
maxTokens: z.ZodOptional<z.ZodNumber>;
|
|
347
|
+
summarizeAt: z.ZodOptional<z.ZodNumber>;
|
|
348
|
+
}, z.core.$strip>>;
|
|
349
|
+
persistent: z.ZodOptional<z.ZodObject<{
|
|
350
|
+
namespace: z.ZodOptional<z.ZodString>;
|
|
351
|
+
}, z.core.$strip>>;
|
|
352
|
+
external: z.ZodOptional<z.ZodObject<{
|
|
353
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
354
|
+
ttl: z.ZodOptional<z.ZodString>;
|
|
355
|
+
}, z.core.$strip>>;
|
|
356
|
+
semantic: z.ZodOptional<z.ZodObject<{
|
|
357
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
358
|
+
topK: z.ZodOptional<z.ZodNumber>;
|
|
359
|
+
scope: z.ZodOptional<z.ZodEnum<{
|
|
360
|
+
instance: "instance";
|
|
361
|
+
thread: "thread";
|
|
362
|
+
workspace: "workspace";
|
|
363
|
+
}>>;
|
|
364
|
+
}, z.core.$strip>>;
|
|
365
|
+
}, z.core.$strip>>;
|
|
366
|
+
policies: z.ZodOptional<z.ZodObject<{
|
|
367
|
+
response: z.ZodOptional<z.ZodObject<{
|
|
368
|
+
requiresApproval: z.ZodOptional<z.ZodBoolean>;
|
|
369
|
+
requiresApprovalIf: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
370
|
+
}, z.core.$strip>>;
|
|
371
|
+
rules: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
372
|
+
}, z.core.$strip>>;
|
|
373
|
+
runtime: z.ZodOptional<z.ZodObject<{
|
|
374
|
+
model: z.ZodOptional<z.ZodString>;
|
|
375
|
+
timeout: z.ZodOptional<z.ZodString>;
|
|
376
|
+
timezone: z.ZodOptional<z.ZodString>;
|
|
377
|
+
retry: z.ZodOptional<z.ZodObject<{
|
|
378
|
+
attempts: z.ZodOptional<z.ZodNumber>;
|
|
379
|
+
backoff: z.ZodOptional<z.ZodEnum<{
|
|
380
|
+
linear: "linear";
|
|
381
|
+
exponential: "exponential";
|
|
382
|
+
}>>;
|
|
383
|
+
}, z.core.$strip>>;
|
|
384
|
+
}, z.core.$strip>>;
|
|
385
|
+
prompts: z.ZodOptional<z.ZodObject<{
|
|
386
|
+
recovery: z.ZodOptional<z.ZodString>;
|
|
387
|
+
followUp: z.ZodOptional<z.ZodString>;
|
|
388
|
+
skillDiscoveryWorkflow: z.ZodOptional<z.ZodString>;
|
|
389
|
+
}, z.core.$strip>>;
|
|
390
|
+
config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
391
|
+
sandbox: z.ZodOptional<z.ZodObject<{
|
|
392
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
393
|
+
mockContext: z.ZodOptional<z.ZodObject<{
|
|
394
|
+
sender: z.ZodObject<{
|
|
395
|
+
kind: z.ZodEnum<{
|
|
396
|
+
contact: "contact";
|
|
397
|
+
member: "member";
|
|
398
|
+
}>;
|
|
399
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
400
|
+
role: z.ZodOptional<z.ZodString>;
|
|
401
|
+
permissions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
402
|
+
contact: z.ZodOptional<z.ZodObject<{
|
|
403
|
+
id: z.ZodOptional<z.ZodString>;
|
|
404
|
+
name: z.ZodOptional<z.ZodString>;
|
|
405
|
+
subscription: z.ZodOptional<z.ZodObject<{
|
|
406
|
+
identifierValue: z.ZodString;
|
|
407
|
+
channelHandle: z.ZodOptional<z.ZodString>;
|
|
408
|
+
}, z.core.$strip>>;
|
|
409
|
+
associations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
410
|
+
id: z.ZodOptional<z.ZodString>;
|
|
411
|
+
data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
412
|
+
}, z.core.$strip>>>;
|
|
413
|
+
}, z.core.$strip>>;
|
|
414
|
+
}, z.core.$strip>;
|
|
415
|
+
contexts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
416
|
+
handle: z.ZodString;
|
|
417
|
+
model: z.ZodString;
|
|
418
|
+
data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
419
|
+
}, z.core.$strip>>>;
|
|
420
|
+
}, z.core.$strip>>;
|
|
421
|
+
}, z.core.$strip>>;
|
|
422
|
+
}, z.core.$strip>;
|
|
423
|
+
export type AgentYAMLV3 = z.infer<typeof AgentYAMLV3Schema>;
|
|
424
|
+
/**
|
|
425
|
+
* Helper function to define an agent with type safety
|
|
426
|
+
*/
|
|
427
|
+
export declare function defineAgentV3(agent: AgentYAMLV3): AgentYAMLV3;
|
|
428
|
+
/**
|
|
429
|
+
* Validate an agent YAML v3 object
|
|
430
|
+
*/
|
|
431
|
+
export declare function validateAgentYAMLV3(agent: unknown): {
|
|
432
|
+
success: true;
|
|
433
|
+
data: AgentYAMLV3;
|
|
434
|
+
} | {
|
|
435
|
+
success: false;
|
|
436
|
+
error: z.ZodError;
|
|
437
|
+
};
|