diff --git a/src/ai/AkamaiAgentCR.test.ts b/src/ai/AkamaiAgentCR.test.ts index da04549b..d7035ec8 100644 --- a/src/ai/AkamaiAgentCR.test.ts +++ b/src/ai/AkamaiAgentCR.test.ts @@ -48,7 +48,7 @@ describe('AkamaiAgentCR', () => { expect(agentCR.metadata.namespace).toBe('team-team-123') expect(agentCR.metadata.labels?.['apl.io/teamId']).toBe('team-123') expect(agentCR.spec.foundationModel).toBe('gpt-4') - expect(agentCR.spec.systemPrompt).toBe('You are a helpful assistant') + expect(agentCR.spec.agentInstructions).toBe('You are a helpful assistant') expect(agentCR.spec.knowledgeBase).toBe('test-kb') }) @@ -202,7 +202,7 @@ describe('AkamaiAgentCR', () => { apiVersion: 'akamai.com/v1', kind: 'Agent', metadata: { name: 'existing-agent', namespace: 'team-456' }, - spec: { foundationModel: 'gpt-3.5', systemPrompt: 'Test prompt' }, + spec: { foundationModel: 'gpt-3.5', agentInstructions: 'Test prompt' }, } const result = AkamaiAgentCR.fromCR(crObject) diff --git a/src/ai/AkamaiAgentCR.ts b/src/ai/AkamaiAgentCR.ts index 368950c9..e85fc9fd 100644 --- a/src/ai/AkamaiAgentCR.ts +++ b/src/ai/AkamaiAgentCR.ts @@ -18,7 +18,7 @@ export class AkamaiAgentCR { } public spec: { foundationModel: string - systemPrompt: string + agentInstructions: string knowledgeBase?: string } @@ -37,7 +37,7 @@ export class AkamaiAgentCR { } this.spec = { foundationModel: request.spec.foundationModel, - systemPrompt: request.spec.agentInstructions, + agentInstructions: request.spec.agentInstructions, knowledgeBase: request.spec.knowledgeBase, } } @@ -65,7 +65,7 @@ export class AkamaiAgentCR { }, spec: { foundationModel: this.spec.foundationModel, - agentInstructions: this.spec.systemPrompt, + agentInstructions: this.spec.agentInstructions, knowledgeBase: this.spec.knowledgeBase || '', }, status: {