File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff 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 )
Original file line number Diff line number Diff 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 : {
You can’t perform that action at this time.
0 commit comments