@stack-spot/portal-network 0.179.0 → 0.179.1-beta.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/CHANGELOG.md +305 -0
- package/dist/api/agent-tools.d.ts +72 -1
- package/dist/api/agent-tools.d.ts.map +1 -1
- package/dist/api/agent-tools.js +36 -1
- package/dist/api/agent-tools.js.map +1 -1
- package/dist/api/codeShift.d.ts +170 -10
- package/dist/api/codeShift.d.ts.map +1 -1
- package/dist/api/codeShift.js +97 -0
- package/dist/api/codeShift.js.map +1 -1
- package/dist/apis-itau.json +1 -1
- package/dist/client/agent-tools.d.ts +14 -1
- package/dist/client/agent-tools.d.ts.map +1 -1
- package/dist/client/agent-tools.js +11 -2
- package/dist/client/agent-tools.js.map +1 -1
- package/dist/client/ai.d.ts.map +1 -1
- package/dist/client/ai.js +69 -15
- package/dist/client/ai.js.map +1 -1
- package/dist/client/code-shift.d.ts +69 -4
- package/dist/client/code-shift.d.ts.map +1 -1
- package/dist/client/code-shift.js +55 -1
- package/dist/client/code-shift.js.map +1 -1
- package/dist/client/types.d.ts +26 -6
- package/dist/client/types.d.ts.map +1 -1
- package/dist/error/DefaultAPIError.d.ts.map +1 -1
- package/dist/error/DefaultAPIError.js.map +1 -1
- package/dist/error/StackspotAPIError.d.ts +3 -4
- package/dist/error/StackspotAPIError.d.ts.map +1 -1
- package/dist/error/StackspotAPIError.js +3 -3
- package/dist/error/StackspotAPIError.js.map +1 -1
- package/package.json +2 -2
- package/readme.md +1 -1
- package/src/api/account.ts +1 -0
- package/src/api/agent-tools.ts +117 -1
- package/src/api/agent.ts +2 -0
- package/src/api/codeShift.ts +368 -12
- package/src/api/notification.ts +2 -0
- package/src/apis-itau.json +1 -1
- package/src/client/agent-tools.ts +7 -2
- package/src/client/ai.ts +72 -14
- package/src/client/code-shift.ts +36 -0
- package/src/client/types.ts +27 -6
- package/src/error/DefaultAPIError.ts +5 -5
- package/src/error/StackspotAPIError.ts +4 -4
package/src/api/agent-tools.ts
CHANGED
|
@@ -353,6 +353,7 @@ export type ListAgentResponse = {
|
|
|
353
353
|
avatar: string | null;
|
|
354
354
|
suggested_prompts: string[] | null;
|
|
355
355
|
knowledge_sources_config: KnowledgeSourcesConfig;
|
|
356
|
+
has_multiagent_tool?: boolean;
|
|
356
357
|
"type"?: string;
|
|
357
358
|
system_prompt?: string;
|
|
358
359
|
creator_name?: string;
|
|
@@ -367,6 +368,7 @@ export type KnowledgeSourcesConfigRequest = {
|
|
|
367
368
|
knowledge_sources?: string[] | null;
|
|
368
369
|
sealed?: boolean | null;
|
|
369
370
|
};
|
|
371
|
+
export type AgentMode = "autonomous" | "plan_approval" | "plan_and_critical_approval";
|
|
370
372
|
export type NewAgentRequest = {
|
|
371
373
|
/** LLM model name */
|
|
372
374
|
model_name?: string | null;
|
|
@@ -396,6 +398,8 @@ export type NewAgentRequest = {
|
|
|
396
398
|
llm_settings?: {
|
|
397
399
|
[key: string]: any;
|
|
398
400
|
} | null;
|
|
401
|
+
/** Agent mode */
|
|
402
|
+
mode?: AgentMode;
|
|
399
403
|
};
|
|
400
404
|
export type SearchAgentsRequest = {
|
|
401
405
|
/** Agent ids to filter for */
|
|
@@ -532,6 +536,7 @@ export type AgentModel = {
|
|
|
532
536
|
conversation_starter?: string[] | null;
|
|
533
537
|
use_only: boolean;
|
|
534
538
|
detail_mode: boolean;
|
|
539
|
+
mode: AgentMode;
|
|
535
540
|
structured_output?: {
|
|
536
541
|
[key: string]: any;
|
|
537
542
|
} | null;
|
|
@@ -576,6 +581,8 @@ export type UpdateAgentRequest = {
|
|
|
576
581
|
llm_settings?: {
|
|
577
582
|
[key: string]: any;
|
|
578
583
|
} | null;
|
|
584
|
+
/** Agent mode */
|
|
585
|
+
mode?: AgentMode | null;
|
|
579
586
|
};
|
|
580
587
|
export type ForkAgentRequest = {
|
|
581
588
|
/** Agent slug to fork */
|
|
@@ -600,6 +607,46 @@ export type ListAgentResponseV2 = {
|
|
|
600
607
|
system_prompt?: string;
|
|
601
608
|
creator_name?: string;
|
|
602
609
|
};
|
|
610
|
+
export type ListAgentRequestV3 = {
|
|
611
|
+
/** Agent name to filter the list */
|
|
612
|
+
name?: string | null;
|
|
613
|
+
/** Agent slug to filter the list */
|
|
614
|
+
slug?: string | null;
|
|
615
|
+
/** Paginated param to configure page size */
|
|
616
|
+
size?: number;
|
|
617
|
+
/** Paginated param to configure which page is being requested */
|
|
618
|
+
page?: number;
|
|
619
|
+
/** Filter by a list of agent visibility levels. When provided, overrides the single 'visibility' parameter */
|
|
620
|
+
visibility_list?: (AgentVisibilityLevelEnum | VisibilityLevelEnum)[];
|
|
621
|
+
};
|
|
622
|
+
export type KnowledgeSourcesConfigResponseV3 = {
|
|
623
|
+
knowledge_sources: string[];
|
|
624
|
+
max_number_of_kos?: number;
|
|
625
|
+
relevancy_threshold?: number;
|
|
626
|
+
similarity_function?: string;
|
|
627
|
+
post_processing?: boolean;
|
|
628
|
+
};
|
|
629
|
+
export type AgentResponseV3 = {
|
|
630
|
+
id: string;
|
|
631
|
+
name: string;
|
|
632
|
+
slug: string;
|
|
633
|
+
created_by: string | null;
|
|
634
|
+
created_at: string | null;
|
|
635
|
+
visibility_level: string;
|
|
636
|
+
avatar: string | null;
|
|
637
|
+
suggested_prompts: string[] | null;
|
|
638
|
+
knowledge_sources_config: KnowledgeSourcesConfigResponseV3;
|
|
639
|
+
has_multiagent_tool?: boolean;
|
|
640
|
+
"type"?: string;
|
|
641
|
+
system_prompt?: string;
|
|
642
|
+
creator_name?: string;
|
|
643
|
+
is_favorite?: boolean;
|
|
644
|
+
is_recently_used?: boolean;
|
|
645
|
+
};
|
|
646
|
+
export type PaginatedResponseAgentResponseV3 = {
|
|
647
|
+
total_pages: number;
|
|
648
|
+
items: AgentResponseV3[];
|
|
649
|
+
};
|
|
603
650
|
export type InternalListToolkitsRequest = {
|
|
604
651
|
/** List of toolkit IDs to retrieve */
|
|
605
652
|
toolkit_ids: string[];
|
|
@@ -1297,7 +1344,8 @@ export function executeToolV1AgentsToolsAgentToolIdExecutePost({ agentToolId, is
|
|
|
1297
1344
|
/**
|
|
1298
1345
|
* List Agents
|
|
1299
1346
|
*/
|
|
1300
|
-
export function listAgentsV1AgentsGet({ name, slug, visibility, size, page, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
|
|
1347
|
+
export function listAgentsV1AgentsGet({ isPublic, name, slug, visibility, size, page, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
|
|
1348
|
+
isPublic?: boolean;
|
|
1301
1349
|
name?: string | null;
|
|
1302
1350
|
slug?: string | null;
|
|
1303
1351
|
visibility?: AgentVisibilityLevelEnum | VisibilityLevelEnum;
|
|
@@ -1318,6 +1366,7 @@ export function listAgentsV1AgentsGet({ name, slug, visibility, size, page, xAcc
|
|
|
1318
1366
|
status: 422;
|
|
1319
1367
|
data: HttpValidationError;
|
|
1320
1368
|
}>(`/v1/agents${QS.query(QS.explode({
|
|
1369
|
+
is_public: isPublic,
|
|
1321
1370
|
name,
|
|
1322
1371
|
slug,
|
|
1323
1372
|
visibility,
|
|
@@ -1887,6 +1936,36 @@ export function getAgentByKsIdV1AgentsKnowledgeSourceKsIdGet({ ksId, xAccountId,
|
|
|
1887
1936
|
})
|
|
1888
1937
|
}));
|
|
1889
1938
|
}
|
|
1939
|
+
/**
|
|
1940
|
+
* Migrate Agent Avatar By Id
|
|
1941
|
+
*/
|
|
1942
|
+
export function migrateAgentAvatarByIdV1AgentsAgentIdMigrateAvatarPost({ agentId, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
|
|
1943
|
+
agentId: string;
|
|
1944
|
+
xAccountId?: string | null;
|
|
1945
|
+
xUsername?: string | null;
|
|
1946
|
+
xUserId?: string | null;
|
|
1947
|
+
xUserFullName?: string | null;
|
|
1948
|
+
authorization: string;
|
|
1949
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1950
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1951
|
+
status: 204;
|
|
1952
|
+
} | {
|
|
1953
|
+
status: 404;
|
|
1954
|
+
} | {
|
|
1955
|
+
status: 422;
|
|
1956
|
+
data: HttpValidationError;
|
|
1957
|
+
}>(`/v1/agents/${encodeURIComponent(agentId)}/migrate-avatar`, {
|
|
1958
|
+
...opts,
|
|
1959
|
+
method: "POST",
|
|
1960
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1961
|
+
"x-account-id": xAccountId,
|
|
1962
|
+
"x-username": xUsername,
|
|
1963
|
+
"x-user-id": xUserId,
|
|
1964
|
+
"x-user-full-name": xUserFullName,
|
|
1965
|
+
authorization
|
|
1966
|
+
})
|
|
1967
|
+
}));
|
|
1968
|
+
}
|
|
1890
1969
|
/**
|
|
1891
1970
|
* List Agents
|
|
1892
1971
|
*/
|
|
@@ -1959,6 +2038,40 @@ export function searchAgentsV2AgentsSearchPost({ xAccountId, xUsername, xUserId,
|
|
|
1959
2038
|
})
|
|
1960
2039
|
})));
|
|
1961
2040
|
}
|
|
2041
|
+
/**
|
|
2042
|
+
* List Agents
|
|
2043
|
+
*/
|
|
2044
|
+
export function listAgentsV3AgentsGet({ filters, isPublic, xAccountId, xUsername, xUserId, xUserFullName, authorization }: {
|
|
2045
|
+
filters: ListAgentRequestV3;
|
|
2046
|
+
isPublic?: boolean;
|
|
2047
|
+
xAccountId?: string | null;
|
|
2048
|
+
xUsername?: string | null;
|
|
2049
|
+
xUserId?: string | null;
|
|
2050
|
+
xUserFullName?: string | null;
|
|
2051
|
+
authorization: string;
|
|
2052
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
2053
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2054
|
+
status: 200;
|
|
2055
|
+
data: PaginatedResponseAgentResponseV3;
|
|
2056
|
+
} | {
|
|
2057
|
+
status: 404;
|
|
2058
|
+
} | {
|
|
2059
|
+
status: 422;
|
|
2060
|
+
data: HttpValidationError;
|
|
2061
|
+
}>(`/v3/agents${QS.query(QS.explode({
|
|
2062
|
+
filters,
|
|
2063
|
+
is_public: isPublic
|
|
2064
|
+
}))}`, {
|
|
2065
|
+
...opts,
|
|
2066
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
2067
|
+
"x-account-id": xAccountId,
|
|
2068
|
+
"x-username": xUsername,
|
|
2069
|
+
"x-user-id": xUserId,
|
|
2070
|
+
"x-user-full-name": xUserFullName,
|
|
2071
|
+
authorization
|
|
2072
|
+
})
|
|
2073
|
+
}));
|
|
2074
|
+
}
|
|
1962
2075
|
/**
|
|
1963
2076
|
* Internal List Toolkits By Ids
|
|
1964
2077
|
*/
|
|
@@ -2054,3 +2167,6 @@ export function internalForkToolkitsByIdsV1SpotToolkitsForkPost({ xAccountId, xU
|
|
|
2054
2167
|
})
|
|
2055
2168
|
})));
|
|
2056
2169
|
}
|
|
2170
|
+
|
|
2171
|
+
|
|
2172
|
+
|