From 4be3aaa1551545b71931b373e30cc54d0959d6d2 Mon Sep 17 00:00:00 2001 From: Willie Ruemmele Date: Tue, 3 Dec 2024 12:25:31 -0700 Subject: [PATCH 1/2] chore: update AgentJobSpecCreateConfig type per API --- src/types.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/types.ts b/src/types.ts index 32214e4..3279b05 100644 --- a/src/types.ts +++ b/src/types.ts @@ -21,7 +21,7 @@ export type AgentJobSpec = [ */ export type AgentJobSpecCreateConfig = { name: string; - type: 'customer_facing' | 'employee_facing'; + type: 'customer' | 'internal'; role: string; companyName: string; companyDescription: string; From 83af3b8039f2b638b94fcd8a8620f6fae9bb5c07 Mon Sep 17 00:00:00 2001 From: Willie Ruemmele Date: Tue, 3 Dec 2024 12:26:12 -0700 Subject: [PATCH 2/2] test: update UT --- test/agents.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/agents.test.ts b/test/agents.test.ts index 8885516..5ee5a20 100644 --- a/test/agents.test.ts +++ b/test/agents.test.ts @@ -34,7 +34,7 @@ describe('Agents', () => { const agent = new Agent(connection, sfProject); const output = await agent.createSpec({ name: 'MyFirstAgent', - type: 'customer_facing', + type: 'customer', role: 'answer questions about vacation_rentals', companyName: 'Coral Cloud Enterprises', companyDescription: 'Provide vacation rentals and activities', @@ -49,7 +49,7 @@ describe('Agents', () => { const agent = new Agent(connection, sfProject); const opts: AgentJobSpecCreateConfig = { name: 'MyFirstAgent', - type: 'customer_facing', + type: 'customer', role: 'answer questions about vacation rentals', companyName: 'Coral Cloud Enterprises', companyDescription: 'Provide vacation rentals and activities',