mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-11-11 13:24:55 +01:00
Add built-in agent routes and gate
Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
1 parent
1d6da01128
commit
e2c8b2d502
10 files changed
+640
-1
No files matched your search
@@ -1163,6 +1163,7 @@ export {
|
||||
agentSkillSyncSchema,
|
||||
type AgentSkillSync,
|
||||
createAgentSchema,
|
||||
builtInAgentProvisionSchema,
|
||||
createAgentHireSchema,
|
||||
updateAgentSchema,
|
||||
agentInstructionsBundleModeSchema,
|
||||
@@ -1182,6 +1183,7 @@ export {
|
||||
agentPermissionsSchema,
|
||||
updateAgentPermissionsSchema,
|
||||
type CreateAgent,
|
||||
type BuiltInAgentProvision,
|
||||
type CreateAgentHire,
|
||||
type UpdateAgent,
|
||||
type UpdateAgentInstructionsBundle,
|
||||
|
||||
@@ -88,6 +88,13 @@ export const createAgentSchema = z.object({
|
||||
|
||||
export type CreateAgent = z.infer<typeof createAgentSchema>;
|
||||
|
||||
export const builtInAgentProvisionSchema = z.object({
|
||||
adapterType: agentAdapterTypeSchema.optional(),
|
||||
adapterConfig: adapterConfigSchema.optional(),
|
||||
}).strict();
|
||||
|
||||
export type BuiltInAgentProvision = z.infer<typeof builtInAgentProvisionSchema>;
|
||||
|
||||
export const createAgentHireSchema = createAgentSchema.extend({
|
||||
sourceIssueId: z.string().uuid().optional().nullable(),
|
||||
sourceIssueIds: z.array(z.string().uuid()).optional(),
|
||||
|
||||
@@ -247,6 +247,7 @@ export {
|
||||
|
||||
export {
|
||||
createAgentSchema,
|
||||
builtInAgentProvisionSchema,
|
||||
createAgentHireSchema,
|
||||
updateAgentSchema,
|
||||
agentRuntimeConfigSchema,
|
||||
@@ -267,6 +268,7 @@ export {
|
||||
agentPermissionsSchema,
|
||||
updateAgentPermissionsSchema,
|
||||
type CreateAgent,
|
||||
type BuiltInAgentProvision,
|
||||
type CreateAgentHire,
|
||||
type UpdateAgent,
|
||||
type UpdateAgentInstructionsBundle,
|
||||
|
||||
Reference in new issue
Block a user