Skip to content

Commit 52e9322

Browse files
committed
fix: align agent schema field names
1 parent 802480b commit 52e9322

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/ai/AkamaiAgentCR.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ describe('AkamaiAgentCR', () => {
4848
expect(agentCR.metadata.namespace).toBe('team-team-123')
4949
expect(agentCR.metadata.labels?.['apl.io/teamId']).toBe('team-123')
5050
expect(agentCR.spec.foundationModel).toBe('gpt-4')
51-
expect(agentCR.spec.systemPrompt).toBe('You are a helpful assistant')
51+
expect(agentCR.spec.agentInstructions).toBe('You are a helpful assistant')
5252
expect(agentCR.spec.knowledgeBase).toBe('test-kb')
5353
})
5454

@@ -202,7 +202,7 @@ describe('AkamaiAgentCR', () => {
202202
apiVersion: 'akamai.com/v1',
203203
kind: 'Agent',
204204
metadata: { name: 'existing-agent', namespace: 'team-456' },
205-
spec: { foundationModel: 'gpt-3.5', systemPrompt: 'Test prompt' },
205+
spec: { foundationModel: 'gpt-3.5', agentInstructions: 'Test prompt' },
206206
}
207207

208208
const result = AkamaiAgentCR.fromCR(crObject)

src/ai/AkamaiAgentCR.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export class AkamaiAgentCR {
1818
}
1919
public spec: {
2020
foundationModel: string
21-
systemPrompt: string
21+
agentInstructions: string
2222
knowledgeBase?: string
2323
}
2424

@@ -37,7 +37,7 @@ export class AkamaiAgentCR {
3737
}
3838
this.spec = {
3939
foundationModel: request.spec.foundationModel,
40-
systemPrompt: request.spec.agentInstructions,
40+
agentInstructions: request.spec.agentInstructions,
4141
knowledgeBase: request.spec.knowledgeBase,
4242
}
4343
}
@@ -65,7 +65,7 @@ export class AkamaiAgentCR {
6565
},
6666
spec: {
6767
foundationModel: this.spec.foundationModel,
68-
agentInstructions: this.spec.systemPrompt,
68+
agentInstructions: this.spec.agentInstructions,
6969
knowledgeBase: this.spec.knowledgeBase || '',
7070
},
7171
status: {

0 commit comments

Comments
 (0)