Skip to content

Commit

Permalink
feat(tests): update snapshots to include currentIterations and lastFe…
Browse files Browse the repository at this point in the history
…edbackMessage fields

- Added `currentIterations` and `lastFeedbackMessage` fields to various agent instances across multiple test snapshots, enhancing the state tracking of agents during workflows.
- Ensured consistency in the agent configurations for improved testing accuracy and reliability.
- Updated snapshots for `customLLMs`, `llmProxy`, `outputSchemaTeam`, `productSpecTeam`, `resumeCreationTeam`, `sportNewsTeam`, and `tripPlanningTeam` to reflect these changes.
  • Loading branch information
anthonydevs17 committed Jan 16, 2025
1 parent 5b15c1f commit ce70eb3
Show file tree
Hide file tree
Showing 7 changed files with 1,666 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/e2e/__snapshots__/customLLMs.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ exports[`Custom LLMs Instances Workflows Using OpenAI Intance initializes the te
"lc": 1,
"type": "not_implemented",
},
"lastFeedbackMessage": null,
"llmConfig": {
"apiKey": "[REDACTED]",
"callbacks": undefined,
Expand Down Expand Up @@ -107,6 +108,7 @@ exports[`Custom LLMs Instances Workflows Using OpenAI Intance initializes the te
"lc": 1,
"type": "not_implemented",
},
"lastFeedbackMessage": null,
"llmConfig": {
"apiKey": "[REDACTED]",
"callbacks": undefined,
Expand Down Expand Up @@ -203,6 +205,7 @@ exports[`Custom LLMs Instances Workflows Using OpenAI Intance initializes the te
"lc": 1,
"type": "not_implemented",
},
"lastFeedbackMessage": null,
"llmConfig": {
"apiKey": "[REDACTED]",
"callbacks": undefined,
Expand Down Expand Up @@ -310,6 +313,7 @@ exports[`Custom LLMs Instances Workflows Using OpenAI Intance initializes the te
"lc": 1,
"type": "not_implemented",
},
"lastFeedbackMessage": null,
"llmConfig": {
"apiKey": "[REDACTED]",
"callbacks": undefined,
Expand Down
336 changes: 336 additions & 0 deletions tests/e2e/__snapshots__/llmProxy.test.js.snap

Large diffs are not rendered by default.

36 changes: 36 additions & 0 deletions tests/e2e/__snapshots__/outputSchemaTeam.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ exports[`History Fact Summary Team Workflows Using OpenAI Agents completes the e
{
"agentInstance": {
"background": "Writer",
"currentIterations": 0,
"env": "[REDACTED]",
"forceFinalAnswer": true,
"goal": "Write a summary about any given historical fact.",
Expand All @@ -21,6 +22,7 @@ exports[`History Fact Summary Team Workflows Using OpenAI Agents completes the e
"lc": 1,
"type": "not_implemented",
},
"lastFeedbackMessage": null,
"llmConfig": {
"apiKey": "[REDACTED]",
"maxRetries": 1,
Expand Down Expand Up @@ -167,6 +169,7 @@ IMPORTANT: (Please respect the expected output requirements from the user): A we
"agent": {
"agentInstance": {
"background": "Writer",
"currentIterations": 0,
"env": "[REDACTED]",
"forceFinalAnswer": true,
"goal": "Write a summary about any given historical fact.",
Expand All @@ -182,6 +185,7 @@ IMPORTANT: (Please respect the expected output requirements from the user): A we
"lc": 1,
"type": "not_implemented",
},
"lastFeedbackMessage": null,
"llmConfig": {
"apiKey": "[REDACTED]",
"maxRetries": 1,
Expand Down Expand Up @@ -720,6 +724,7 @@ IMPORTANT: (Please respect the expected output requirements from the user): A we
"agent": {
"agentInstance": {
"background": "Writer",
"currentIterations": 0,
"env": "[REDACTED]",
"forceFinalAnswer": true,
"goal": "Write a summary about any given historical fact.",
Expand All @@ -735,6 +740,7 @@ IMPORTANT: (Please respect the expected output requirements from the user): A we
"lc": 1,
"type": "not_implemented",
},
"lastFeedbackMessage": null,
"llmConfig": {
"apiKey": "[REDACTED]",
"maxRetries": 1,
Expand Down Expand Up @@ -884,6 +890,7 @@ IMPORTANT: (Please respect the expected output requirements from the user): A we
"agent": {
"agentInstance": {
"background": "Writer",
"currentIterations": 0,
"env": "[REDACTED]",
"forceFinalAnswer": true,
"goal": "Write a summary about any given historical fact.",
Expand All @@ -899,6 +906,7 @@ IMPORTANT: (Please respect the expected output requirements from the user): A we
"lc": 1,
"type": "not_implemented",
},
"lastFeedbackMessage": null,
"llmConfig": {
"apiKey": "[REDACTED]",
"maxRetries": 1,
Expand Down Expand Up @@ -1413,6 +1421,7 @@ IMPORTANT: (Please respect the expected output requirements from the user): A we
"agent": {
"agentInstance": {},
"background": "Writer",
"currentIterations": 0,
"env": "[REDACTED]",
"forceFinalAnswer": true,
"goal": "Write a summary about any given historical fact.",
Expand All @@ -1428,6 +1437,7 @@ IMPORTANT: (Please respect the expected output requirements from the user): A we
"lc": 1,
"type": "not_implemented",
},
"lastFeedbackMessage": null,
"llmConfig": {
"apiKey": "[REDACTED]",
"maxRetries": 1,
Expand Down Expand Up @@ -1569,6 +1579,7 @@ IMPORTANT: (Please respect the expected output requirements from the user): A we
"agent": {
"agentInstance": {
"background": "Writer",
"currentIterations": 0,
"env": "[REDACTED]",
"forceFinalAnswer": true,
"goal": "Write a summary about any given historical fact.",
Expand All @@ -1584,6 +1595,7 @@ IMPORTANT: (Please respect the expected output requirements from the user): A we
"lc": 1,
"type": "not_implemented",
},
"lastFeedbackMessage": null,
"llmConfig": {
"apiKey": "[REDACTED]",
"maxRetries": 1,
Expand Down Expand Up @@ -2098,6 +2110,7 @@ IMPORTANT: (Please respect the expected output requirements from the user): A we
"agent": {
"agentInstance": {},
"background": "Writer",
"currentIterations": 0,
"env": "[REDACTED]",
"forceFinalAnswer": true,
"goal": "Write a summary about any given historical fact.",
Expand All @@ -2113,6 +2126,7 @@ IMPORTANT: (Please respect the expected output requirements from the user): A we
"lc": 1,
"type": "not_implemented",
},
"lastFeedbackMessage": null,
"llmConfig": {
"apiKey": "[REDACTED]",
"maxRetries": 1,
Expand Down Expand Up @@ -2335,6 +2349,7 @@ IMPORTANT: (Please respect the expected output requirements from the user): A we
"agent": {
"agentInstance": {
"background": "Writer",
"currentIterations": 0,
"env": "[REDACTED]",
"forceFinalAnswer": true,
"goal": "Write a summary about any given historical fact.",
Expand All @@ -2350,6 +2365,7 @@ IMPORTANT: (Please respect the expected output requirements from the user): A we
"lc": 1,
"type": "not_implemented",
},
"lastFeedbackMessage": null,
"llmConfig": {
"apiKey": "[REDACTED]",
"maxRetries": 1,
Expand Down Expand Up @@ -2864,6 +2880,7 @@ IMPORTANT: (Please respect the expected output requirements from the user): A we
"agent": {
"agentInstance": {},
"background": "Writer",
"currentIterations": 0,
"env": "[REDACTED]",
"forceFinalAnswer": true,
"goal": "Write a summary about any given historical fact.",
Expand All @@ -2879,6 +2896,7 @@ IMPORTANT: (Please respect the expected output requirements from the user): A we
"lc": 1,
"type": "not_implemented",
},
"lastFeedbackMessage": null,
"llmConfig": {
"apiKey": "[REDACTED]",
"maxRetries": 1,
Expand Down Expand Up @@ -3390,6 +3408,7 @@ IMPORTANT: (Please respect the expected output requirements from the user): A we
"agent": {
"agentInstance": {
"background": "Writer",
"currentIterations": 0,
"env": "[REDACTED]",
"forceFinalAnswer": true,
"goal": "Write a summary about any given historical fact.",
Expand All @@ -3405,6 +3424,7 @@ IMPORTANT: (Please respect the expected output requirements from the user): A we
"lc": 1,
"type": "not_implemented",
},
"lastFeedbackMessage": null,
"llmConfig": {
"apiKey": "[REDACTED]",
"maxRetries": 1,
Expand Down Expand Up @@ -3919,6 +3939,7 @@ IMPORTANT: (Please respect the expected output requirements from the user): A we
"agent": {
"agentInstance": {},
"background": "Writer",
"currentIterations": 0,
"env": "[REDACTED]",
"forceFinalAnswer": true,
"goal": "Write a summary about any given historical fact.",
Expand All @@ -3934,6 +3955,7 @@ IMPORTANT: (Please respect the expected output requirements from the user): A we
"lc": 1,
"type": "not_implemented",
},
"lastFeedbackMessage": null,
"llmConfig": {
"apiKey": "[REDACTED]",
"maxRetries": 1,
Expand Down Expand Up @@ -4429,6 +4451,7 @@ IMPORTANT: (Please respect the expected output requirements from the user): A we
"agent": {
"agentInstance": {
"background": "Writer",
"currentIterations": 0,
"env": "[REDACTED]",
"forceFinalAnswer": true,
"goal": "Write a summary about any given historical fact.",
Expand All @@ -4444,6 +4467,7 @@ IMPORTANT: (Please respect the expected output requirements from the user): A we
"lc": 1,
"type": "not_implemented",
},
"lastFeedbackMessage": null,
"llmConfig": {
"apiKey": "[REDACTED]",
"maxRetries": 1,
Expand Down Expand Up @@ -4958,6 +4982,7 @@ IMPORTANT: (Please respect the expected output requirements from the user): A we
"agent": {
"agentInstance": {},
"background": "Writer",
"currentIterations": 0,
"env": "[REDACTED]",
"forceFinalAnswer": true,
"goal": "Write a summary about any given historical fact.",
Expand All @@ -4973,6 +4998,7 @@ IMPORTANT: (Please respect the expected output requirements from the user): A we
"lc": 1,
"type": "not_implemented",
},
"lastFeedbackMessage": null,
"llmConfig": {
"apiKey": "[REDACTED]",
"maxRetries": 1,
Expand Down Expand Up @@ -5114,6 +5140,7 @@ IMPORTANT: (Please respect the expected output requirements from the user): A we
"agent": {
"agentInstance": {
"background": "Writer",
"currentIterations": 0,
"env": "[REDACTED]",
"forceFinalAnswer": true,
"goal": "Write a summary about any given historical fact.",
Expand All @@ -5129,6 +5156,7 @@ IMPORTANT: (Please respect the expected output requirements from the user): A we
"lc": 1,
"type": "not_implemented",
},
"lastFeedbackMessage": null,
"llmConfig": {
"apiKey": "[REDACTED]",
"maxRetries": 1,
Expand Down Expand Up @@ -5643,6 +5671,7 @@ IMPORTANT: (Please respect the expected output requirements from the user): A we
"agent": {
"agentInstance": {},
"background": "Writer",
"currentIterations": 0,
"env": "[REDACTED]",
"forceFinalAnswer": true,
"goal": "Write a summary about any given historical fact.",
Expand All @@ -5658,6 +5687,7 @@ IMPORTANT: (Please respect the expected output requirements from the user): A we
"lc": 1,
"type": "not_implemented",
},
"lastFeedbackMessage": null,
"llmConfig": {
"apiKey": "[REDACTED]",
"maxRetries": 1,
Expand Down Expand Up @@ -5818,6 +5848,7 @@ IMPORTANT: (Please respect the expected output requirements from the user): A we
"agent": {
"agentInstance": {
"background": "Writer",
"currentIterations": 0,
"env": "[REDACTED]",
"forceFinalAnswer": true,
"goal": "Write a summary about any given historical fact.",
Expand All @@ -5833,6 +5864,7 @@ IMPORTANT: (Please respect the expected output requirements from the user): A we
"lc": 1,
"type": "not_implemented",
},
"lastFeedbackMessage": null,
"llmConfig": {
"apiKey": "[REDACTED]",
"maxRetries": 1,
Expand Down Expand Up @@ -6347,6 +6379,7 @@ IMPORTANT: (Please respect the expected output requirements from the user): A we
"agent": {
"agentInstance": {},
"background": "Writer",
"currentIterations": 0,
"env": "[REDACTED]",
"forceFinalAnswer": true,
"goal": "Write a summary about any given historical fact.",
Expand All @@ -6362,6 +6395,7 @@ IMPORTANT: (Please respect the expected output requirements from the user): A we
"lc": 1,
"type": "not_implemented",
},
"lastFeedbackMessage": null,
"llmConfig": {
"apiKey": "[REDACTED]",
"maxRetries": 1,
Expand Down Expand Up @@ -6533,6 +6567,7 @@ IMPORTANT: (Please respect the expected output requirements from the user): A we
"agent": {
"agentInstance": {
"background": "Writer",
"currentIterations": 0,
"env": "[REDACTED]",
"forceFinalAnswer": true,
"goal": "Write a summary about any given historical fact.",
Expand All @@ -6548,6 +6583,7 @@ IMPORTANT: (Please respect the expected output requirements from the user): A we
"lc": 1,
"type": "not_implemented",
},
"lastFeedbackMessage": null,
"llmConfig": {
"apiKey": "[REDACTED]",
"maxRetries": 1,
Expand Down
Loading

0 comments on commit ce70eb3

Please sign in to comment.