@burdenoff/microfe-botmanor 2026.1115.1 → 2026.1116.1
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/botlit/components/BotFormFields.js +66 -87
- package/dist/botlit/components/BotFormFields.js.map +1 -1
- package/dist/botlit/components/EmojiPicker.d.ts +20 -0
- package/dist/botlit/components/EmojiPicker.js +42 -0
- package/dist/botlit/components/EmojiPicker.js.map +1 -0
- package/dist/botlit/components/PageLayout.d.ts +5 -0
- package/dist/botlit/components/PageLayout.js +23 -14
- package/dist/botlit/components/PageLayout.js.map +1 -1
- package/dist/botlit/components/index.d.ts +1 -0
- package/dist/botlit/hooks/internal/allPages.d.ts +2 -0
- package/dist/botlit/hooks/internal/allPages.js +25 -0
- package/dist/botlit/hooks/internal/allPages.js.map +1 -0
- package/dist/botlit/hooks/useAgents.d.ts +24 -3
- package/dist/botlit/hooks/useAgents.js +158 -109
- package/dist/botlit/hooks/useAgents.js.map +1 -1
- package/dist/botlit/hooks/useBotAgents.d.ts +23 -0
- package/dist/botlit/hooks/useBotAgents.js +69 -0
- package/dist/botlit/hooks/useBotAgents.js.map +1 -0
- package/dist/botlit/hooks/useBots.js +2 -2
- package/dist/botlit/hooks/useBots.js.map +1 -1
- package/dist/botlit/hooks/useKnowledgeBases.js +40 -44
- package/dist/botlit/hooks/useKnowledgeBases.js.map +1 -1
- package/dist/botlit/hooks/useMCPServers.js +53 -57
- package/dist/botlit/hooks/useMCPServers.js.map +1 -1
- package/dist/botlit/pages/AgentBuilderPage.js +832 -425
- package/dist/botlit/pages/AgentBuilderPage.js.map +1 -1
- package/dist/botlit/pages/AgentDetailPage.js +407 -325
- package/dist/botlit/pages/AgentDetailPage.js.map +1 -1
- package/dist/botlit/pages/AgentsListPage.js +487 -291
- package/dist/botlit/pages/AgentsListPage.js.map +1 -1
- package/dist/botlit/pages/BotDetailPage.js +247 -257
- package/dist/botlit/pages/BotDetailPage.js.map +1 -1
- package/dist/botlit/pages/BotsListPage.js +2 -2
- package/dist/botlit/pages/BotsListPage.js.map +1 -1
- package/dist/botlit/types/index.d.ts +4 -1
- package/dist/botlit/utils/agentDelete.d.ts +5 -0
- package/dist/botlit/utils/agentDelete.js +15 -0
- package/dist/botlit/utils/agentDelete.js.map +1 -0
- package/dist/botlit/utils/agentSettings.d.ts +77 -0
- package/dist/botlit/utils/agentSettings.js +78 -0
- package/dist/botlit/utils/agentSettings.js.map +1 -0
- package/dist/generated/wspace-operations.d.ts +4 -0
- package/dist/generated/wspace-operations.js.map +1 -1
- package/dist/generated/wspace-types.d.ts +43 -0
- package/dist/generated/wspace-types.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Agent form rules (BOFF-12447, BOFF-12449, BOFF-12455)
|
|
3
|
+
* @module botlit/utils
|
|
4
|
+
*
|
|
5
|
+
* What a valid agent name, slug, prompt, temperature, token limit and
|
|
6
|
+
* concurrency limit are, shared by the builder and mirrored in
|
|
7
|
+
* `wspace-botmanor-svc` (`agents/agent-settings.ts`), so the form and the server
|
|
8
|
+
* never disagree. 0 is a real temperature: absent and invalid are different
|
|
9
|
+
* from zero, and are never turned into a default silently.
|
|
10
|
+
*/
|
|
11
|
+
export declare const AGENT_NAME_MAX_LENGTH = 100;
|
|
12
|
+
export declare const AGENT_SLUG_MAX_LENGTH = 64;
|
|
13
|
+
/** Slugs kept for the platform because they collide with agent route names. */
|
|
14
|
+
export declare const RESERVED_AGENT_SLUGS: ReadonlySet<string>;
|
|
15
|
+
/** The one default for each numeric setting (the API applies the same ones). */
|
|
16
|
+
export declare const AGENT_DEFAULTS: {
|
|
17
|
+
readonly temperature: 0.7;
|
|
18
|
+
readonly maxTokens: 2048;
|
|
19
|
+
readonly maxConcurrentExecutions: 10;
|
|
20
|
+
};
|
|
21
|
+
export declare const AGENT_TEMPERATURE_RANGE: {
|
|
22
|
+
readonly min: 0;
|
|
23
|
+
readonly max: 2;
|
|
24
|
+
};
|
|
25
|
+
export declare const AGENT_MAX_TOKENS_RANGE: {
|
|
26
|
+
readonly min: 1;
|
|
27
|
+
readonly max: 200000;
|
|
28
|
+
};
|
|
29
|
+
export declare const AGENT_MAX_CONCURRENT_RANGE: {
|
|
30
|
+
readonly min: 1;
|
|
31
|
+
readonly max: 100;
|
|
32
|
+
};
|
|
33
|
+
export type AgentFieldError = 'nameRequired' | 'nameTooLong' | 'slugRequired' | 'slugTooLong' | 'slugInvalid' | 'slugReserved' | 'promptRequired' | 'temperatureRange' | 'maxTokensRange' | 'maxConcurrentRange';
|
|
34
|
+
export interface AgentFormValues {
|
|
35
|
+
name: string;
|
|
36
|
+
slug: string;
|
|
37
|
+
systemPrompt: string;
|
|
38
|
+
temperature: string;
|
|
39
|
+
maxTokens: string;
|
|
40
|
+
maxConcurrentExecutions: string;
|
|
41
|
+
}
|
|
42
|
+
export type AgentFormErrors = Partial<Record<keyof AgentFormValues, AgentFieldError>>;
|
|
43
|
+
/** English fallbacks, keyed so callers translate through `useTr`. */
|
|
44
|
+
export declare const AGENT_FIELD_MESSAGES: Record<AgentFieldError, string>;
|
|
45
|
+
/** A blank field means "use the default" (undefined); text that is not a finite number is NaN, so it can be refused. */
|
|
46
|
+
export declare function parseNumberField(text: string): number | undefined;
|
|
47
|
+
/**
|
|
48
|
+
* Validates the agent form. An empty slug is fine when one can be derived from
|
|
49
|
+
* the name; it is an error when the name has no usable letters. Blank numeric
|
|
50
|
+
* fields are valid: they mean the default.
|
|
51
|
+
*/
|
|
52
|
+
export declare function validateAgentForm(values: AgentFormValues): AgentFormErrors;
|
|
53
|
+
/** The slug to send: the typed one (normalised), else one made from the name. */
|
|
54
|
+
export declare function agentSlugFor(name: string, slug: string): string;
|
|
55
|
+
/**
|
|
56
|
+
* The capabilities the builder offers (BOFF-12450). Only these change what an
|
|
57
|
+
* agent does at runtime: MCP tools (when MCP servers are attached), RAG (when a
|
|
58
|
+
* knowledge base is attached) and agent-to-agent delegation. The others in the
|
|
59
|
+
* schema (REASONING, MULTIMODAL, MEMORY, CODE_EXECUTION, WEB_BROWSING) are not
|
|
60
|
+
* read by the chat or channel runtime, so they are not offered; a value an
|
|
61
|
+
* agent already carries is kept as saved, never dropped silently.
|
|
62
|
+
*/
|
|
63
|
+
export declare const OFFERED_CAPABILITIES: readonly ["MCP_TOOLS", "RAG", "A2A"];
|
|
64
|
+
export type OfferedCapability = (typeof OFFERED_CAPABILITIES)[number];
|
|
65
|
+
export type CapabilityWarning = 'mcpToolsNeedsServer' | 'ragNeedsKnowledgeBase' | 'serversNeedMcpTools' | 'knowledgeBasesNeedRag';
|
|
66
|
+
/**
|
|
67
|
+
* Mismatches between the ticked capabilities and what is attached. Each one
|
|
68
|
+
* means something configured has no effect at runtime, which otherwise fails
|
|
69
|
+
* silently.
|
|
70
|
+
*/
|
|
71
|
+
export declare function capabilityWarnings(input: {
|
|
72
|
+
capabilities: readonly string[];
|
|
73
|
+
mcpServerCount: number;
|
|
74
|
+
knowledgeBaseCount: number;
|
|
75
|
+
}): CapabilityWarning[];
|
|
76
|
+
/** Which builder tab holds each form field, so a tab can show that it has a problem. */
|
|
77
|
+
export declare const AGENT_FIELD_TAB: Record<keyof AgentFormValues, 'basics' | 'prompt'>;
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { BOT_SLUG_PATTERN as e, slugify as t } from "./botIdentity.js";
|
|
2
|
+
var n = /* @__PURE__ */ new Set([
|
|
3
|
+
"new",
|
|
4
|
+
"edit",
|
|
5
|
+
"create",
|
|
6
|
+
"admin",
|
|
7
|
+
"api",
|
|
8
|
+
"bots",
|
|
9
|
+
"approvals",
|
|
10
|
+
"settings"
|
|
11
|
+
]), r = {
|
|
12
|
+
temperature: .7,
|
|
13
|
+
maxTokens: 2048,
|
|
14
|
+
maxConcurrentExecutions: 10
|
|
15
|
+
}, i = {
|
|
16
|
+
min: 0,
|
|
17
|
+
max: 2
|
|
18
|
+
}, a = {
|
|
19
|
+
min: 1,
|
|
20
|
+
max: 2e5
|
|
21
|
+
}, o = {
|
|
22
|
+
min: 1,
|
|
23
|
+
max: 100
|
|
24
|
+
}, s = {
|
|
25
|
+
nameRequired: "Enter a name for the agent.",
|
|
26
|
+
nameTooLong: "Use at most 100 characters for the name.",
|
|
27
|
+
slugRequired: "Enter a slug using letters, numbers and hyphens.",
|
|
28
|
+
slugTooLong: "Use at most 64 characters for the slug.",
|
|
29
|
+
slugInvalid: "Use only lowercase letters, numbers and single hyphens, for example support-agent.",
|
|
30
|
+
slugReserved: "This slug is reserved. Choose another one.",
|
|
31
|
+
promptRequired: "Enter the system prompt: the instructions the agent follows.",
|
|
32
|
+
temperatureRange: `Temperature must be a number from ${i.min} to ${i.max}.`,
|
|
33
|
+
maxTokensRange: `Max tokens must be a whole number from ${a.min} to ${a.max}.`,
|
|
34
|
+
maxConcurrentRange: `Max concurrent executions must be a whole number from ${o.min} to ${o.max}.`
|
|
35
|
+
};
|
|
36
|
+
function c(e) {
|
|
37
|
+
let t = e.trim();
|
|
38
|
+
if (t !== "") return Number(t);
|
|
39
|
+
}
|
|
40
|
+
function l(e, t, n, r) {
|
|
41
|
+
let i = c(e);
|
|
42
|
+
if (i !== void 0 && (!Number.isFinite(i) || i < t.min || i > t.max || n && !Number.isInteger(i))) return r;
|
|
43
|
+
}
|
|
44
|
+
function u(r) {
|
|
45
|
+
let s = {}, c = r.name.trim();
|
|
46
|
+
c.length === 0 ? s.name = "nameRequired" : c.length > 100 && (s.name = "nameTooLong");
|
|
47
|
+
let u = r.slug.trim() === "" ? t(c, 64) : r.slug.trim();
|
|
48
|
+
u === "" ? s.slug = "slugRequired" : u.length > 64 ? s.slug = "slugTooLong" : e.test(u) ? n.has(u) && (s.slug = "slugReserved") : s.slug = "slugInvalid", r.systemPrompt.trim().length === 0 && (s.systemPrompt = "promptRequired");
|
|
49
|
+
let d = l(r.temperature, i, !1, "temperatureRange");
|
|
50
|
+
d && (s.temperature = d);
|
|
51
|
+
let f = l(r.maxTokens, a, !0, "maxTokensRange");
|
|
52
|
+
f && (s.maxTokens = f);
|
|
53
|
+
let p = l(r.maxConcurrentExecutions, o, !0, "maxConcurrentRange");
|
|
54
|
+
return p && (s.maxConcurrentExecutions = p), s;
|
|
55
|
+
}
|
|
56
|
+
function d(e, n) {
|
|
57
|
+
return t(n.trim() === "" ? e : n, 64);
|
|
58
|
+
}
|
|
59
|
+
var f = [
|
|
60
|
+
"MCP_TOOLS",
|
|
61
|
+
"RAG",
|
|
62
|
+
"A2A"
|
|
63
|
+
];
|
|
64
|
+
function p(e) {
|
|
65
|
+
let t = [], n = e.capabilities.includes("MCP_TOOLS"), r = e.capabilities.includes("RAG");
|
|
66
|
+
return n && e.mcpServerCount === 0 && t.push("mcpToolsNeedsServer"), r && e.knowledgeBaseCount === 0 && t.push("ragNeedsKnowledgeBase"), !n && e.mcpServerCount > 0 && t.push("serversNeedMcpTools"), !r && e.knowledgeBaseCount > 0 && t.push("knowledgeBasesNeedRag"), t;
|
|
67
|
+
}
|
|
68
|
+
var m = {
|
|
69
|
+
name: "basics",
|
|
70
|
+
slug: "basics",
|
|
71
|
+
systemPrompt: "prompt",
|
|
72
|
+
temperature: "prompt",
|
|
73
|
+
maxTokens: "prompt",
|
|
74
|
+
maxConcurrentExecutions: "prompt"
|
|
75
|
+
};
|
|
76
|
+
export { r as AGENT_DEFAULTS, s as AGENT_FIELD_MESSAGES, m as AGENT_FIELD_TAB, o as AGENT_MAX_CONCURRENT_RANGE, a as AGENT_MAX_TOKENS_RANGE, i as AGENT_TEMPERATURE_RANGE, f as OFFERED_CAPABILITIES, n as RESERVED_AGENT_SLUGS, d as agentSlugFor, p as capabilityWarnings, c as parseNumberField, u as validateAgentForm };
|
|
77
|
+
|
|
78
|
+
//# sourceMappingURL=agentSettings.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agentSettings.js","names":["RESERVED_AGENT_SLUGS","AGENT_DEFAULTS","AGENT_TEMPERATURE_RANGE","AGENT_MAX_TOKENS_RANGE","AGENT_MAX_CONCURRENT_RANGE","AGENT_FIELD_MESSAGES","parseNumberField","trimmed","text","numberError","value","range","whole","error","validateAgentForm","errors","name","values","slug","slugify","BOT_SLUG_PATTERN","temperature","maxTokens","maxConcurrent","agentSlugFor","OFFERED_CAPABILITIES","capabilityWarnings","warnings","hasTools","input","hasRag","AGENT_FIELD_TAB"],"sources":["../../../src/botlit/utils/agentSettings.ts"],"sourcesContent":["/**\n * Agent form rules (BOFF-12447, BOFF-12449, BOFF-12455)\n * @module botlit/utils\n *\n * What a valid agent name, slug, prompt, temperature, token limit and\n * concurrency limit are, shared by the builder and mirrored in\n * `wspace-botmanor-svc` (`agents/agent-settings.ts`), so the form and the server\n * never disagree. 0 is a real temperature: absent and invalid are different\n * from zero, and are never turned into a default silently.\n */\n\nimport { BOT_SLUG_PATTERN, slugify } from './botIdentity';\n\nexport const AGENT_NAME_MAX_LENGTH = 100;\nexport const AGENT_SLUG_MAX_LENGTH = 64;\n\n/** Slugs kept for the platform because they collide with agent route names. */\nexport const RESERVED_AGENT_SLUGS: ReadonlySet<string> = new Set([\n 'new',\n 'edit',\n 'create',\n 'admin',\n 'api',\n 'bots',\n 'approvals',\n 'settings',\n]);\n\n/** The one default for each numeric setting (the API applies the same ones). */\nexport const AGENT_DEFAULTS = {\n temperature: 0.7,\n maxTokens: 2048,\n maxConcurrentExecutions: 10,\n} as const;\n\nexport const AGENT_TEMPERATURE_RANGE = { min: 0, max: 2 } as const;\nexport const AGENT_MAX_TOKENS_RANGE = { min: 1, max: 200_000 } as const;\nexport const AGENT_MAX_CONCURRENT_RANGE = { min: 1, max: 100 } as const;\n\nexport type AgentFieldError =\n | 'nameRequired'\n | 'nameTooLong'\n | 'slugRequired'\n | 'slugTooLong'\n | 'slugInvalid'\n | 'slugReserved'\n | 'promptRequired'\n | 'temperatureRange'\n | 'maxTokensRange'\n | 'maxConcurrentRange';\n\nexport interface AgentFormValues {\n name: string;\n slug: string;\n systemPrompt: string;\n temperature: string;\n maxTokens: string;\n maxConcurrentExecutions: string;\n}\n\nexport type AgentFormErrors = Partial<Record<keyof AgentFormValues, AgentFieldError>>;\n\n/** English fallbacks, keyed so callers translate through `useTr`. */\nexport const AGENT_FIELD_MESSAGES: Record<AgentFieldError, string> = {\n nameRequired: 'Enter a name for the agent.',\n nameTooLong: `Use at most ${AGENT_NAME_MAX_LENGTH} characters for the name.`,\n slugRequired: 'Enter a slug using letters, numbers and hyphens.',\n slugTooLong: `Use at most ${AGENT_SLUG_MAX_LENGTH} characters for the slug.`,\n slugInvalid: 'Use only lowercase letters, numbers and single hyphens, for example support-agent.',\n slugReserved: 'This slug is reserved. Choose another one.',\n promptRequired: 'Enter the system prompt: the instructions the agent follows.',\n temperatureRange: `Temperature must be a number from ${AGENT_TEMPERATURE_RANGE.min} to ${AGENT_TEMPERATURE_RANGE.max}.`,\n maxTokensRange: `Max tokens must be a whole number from ${AGENT_MAX_TOKENS_RANGE.min} to ${AGENT_MAX_TOKENS_RANGE.max}.`,\n maxConcurrentRange: `Max concurrent executions must be a whole number from ${AGENT_MAX_CONCURRENT_RANGE.min} to ${AGENT_MAX_CONCURRENT_RANGE.max}.`,\n};\n\n/** A blank field means \"use the default\" (undefined); text that is not a finite number is NaN, so it can be refused. */\nexport function parseNumberField(text: string): number | undefined {\n const trimmed = text.trim();\n if (trimmed === '') return undefined;\n return Number(trimmed);\n}\n\nfunction numberError(\n text: string,\n range: { min: number; max: number },\n whole: boolean,\n error: AgentFieldError\n): AgentFieldError | undefined {\n const value = parseNumberField(text);\n if (value === undefined) return undefined;\n if (!Number.isFinite(value) || value < range.min || value > range.max) return error;\n if (whole && !Number.isInteger(value)) return error;\n return undefined;\n}\n\n/**\n * Validates the agent form. An empty slug is fine when one can be derived from\n * the name; it is an error when the name has no usable letters. Blank numeric\n * fields are valid: they mean the default.\n */\nexport function validateAgentForm(values: AgentFormValues): AgentFormErrors {\n const errors: AgentFormErrors = {};\n const name = values.name.trim();\n\n if (name.length === 0) errors.name = 'nameRequired';\n else if (name.length > AGENT_NAME_MAX_LENGTH) errors.name = 'nameTooLong';\n\n const slug =\n values.slug.trim() === '' ? slugify(name, AGENT_SLUG_MAX_LENGTH) : values.slug.trim();\n if (slug === '') errors.slug = 'slugRequired';\n else if (slug.length > AGENT_SLUG_MAX_LENGTH) errors.slug = 'slugTooLong';\n else if (!BOT_SLUG_PATTERN.test(slug)) errors.slug = 'slugInvalid';\n else if (RESERVED_AGENT_SLUGS.has(slug)) errors.slug = 'slugReserved';\n\n if (values.systemPrompt.trim().length === 0) errors.systemPrompt = 'promptRequired';\n\n const temperature = numberError(\n values.temperature,\n AGENT_TEMPERATURE_RANGE,\n false,\n 'temperatureRange'\n );\n if (temperature) errors.temperature = temperature;\n const maxTokens = numberError(values.maxTokens, AGENT_MAX_TOKENS_RANGE, true, 'maxTokensRange');\n if (maxTokens) errors.maxTokens = maxTokens;\n const maxConcurrent = numberError(\n values.maxConcurrentExecutions,\n AGENT_MAX_CONCURRENT_RANGE,\n true,\n 'maxConcurrentRange'\n );\n if (maxConcurrent) errors.maxConcurrentExecutions = maxConcurrent;\n\n return errors;\n}\n\n/** The slug to send: the typed one (normalised), else one made from the name. */\nexport function agentSlugFor(name: string, slug: string): string {\n return slugify(slug.trim() === '' ? name : slug, AGENT_SLUG_MAX_LENGTH);\n}\n\n/**\n * The capabilities the builder offers (BOFF-12450). Only these change what an\n * agent does at runtime: MCP tools (when MCP servers are attached), RAG (when a\n * knowledge base is attached) and agent-to-agent delegation. The others in the\n * schema (REASONING, MULTIMODAL, MEMORY, CODE_EXECUTION, WEB_BROWSING) are not\n * read by the chat or channel runtime, so they are not offered; a value an\n * agent already carries is kept as saved, never dropped silently.\n */\nexport const OFFERED_CAPABILITIES = ['MCP_TOOLS', 'RAG', 'A2A'] as const;\nexport type OfferedCapability = (typeof OFFERED_CAPABILITIES)[number];\n\nexport type CapabilityWarning =\n 'mcpToolsNeedsServer' | 'ragNeedsKnowledgeBase' | 'serversNeedMcpTools' | 'knowledgeBasesNeedRag';\n\n/**\n * Mismatches between the ticked capabilities and what is attached. Each one\n * means something configured has no effect at runtime, which otherwise fails\n * silently.\n */\nexport function capabilityWarnings(input: {\n capabilities: readonly string[];\n mcpServerCount: number;\n knowledgeBaseCount: number;\n}): CapabilityWarning[] {\n const warnings: CapabilityWarning[] = [];\n const hasTools = input.capabilities.includes('MCP_TOOLS');\n const hasRag = input.capabilities.includes('RAG');\n if (hasTools && input.mcpServerCount === 0) warnings.push('mcpToolsNeedsServer');\n if (hasRag && input.knowledgeBaseCount === 0) warnings.push('ragNeedsKnowledgeBase');\n if (!hasTools && input.mcpServerCount > 0) warnings.push('serversNeedMcpTools');\n if (!hasRag && input.knowledgeBaseCount > 0) warnings.push('knowledgeBasesNeedRag');\n return warnings;\n}\n\n/** Which builder tab holds each form field, so a tab can show that it has a problem. */\nexport const AGENT_FIELD_TAB: Record<keyof AgentFormValues, 'basics' | 'prompt'> = {\n name: 'basics',\n slug: 'basics',\n systemPrompt: 'prompt',\n temperature: 'prompt',\n maxTokens: 'prompt',\n maxConcurrentExecutions: 'prompt',\n};\n"],"mappings":"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"}
|
|
@@ -206,6 +206,8 @@ export type CreateBotAppInput = {
|
|
|
206
206
|
workspaceId: string | number;
|
|
207
207
|
};
|
|
208
208
|
export type CreateBotmanorAgentInput = {
|
|
209
|
+
/** Emoji shown for the agent (up to 32 characters). An empty string clears it. */
|
|
210
|
+
avatar?: string | null | undefined;
|
|
209
211
|
bucketId?: string | number | null | undefined;
|
|
210
212
|
capabilities?: Array<BotmanorAgentCapability> | null | undefined;
|
|
211
213
|
context?: ContextInput | null | undefined;
|
|
@@ -594,6 +596,8 @@ export type UpdateBotAppInput = {
|
|
|
594
596
|
workflowId?: string | number | null | undefined;
|
|
595
597
|
};
|
|
596
598
|
export type UpdateBotmanorAgentInput = {
|
|
599
|
+
/** Emoji shown for the agent (up to 32 characters). An empty string clears it. */
|
|
600
|
+
avatar?: string | null | undefined;
|
|
597
601
|
bucketId?: string | number | null | undefined;
|
|
598
602
|
capabilities?: Array<BotmanorAgentCapability> | null | undefined;
|
|
599
603
|
context?: ContextInput | null | undefined;
|