Skip to content

Commit

Permalink
change test content
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonydevs17 committed Dec 20, 2024
1 parent 12250aa commit e240d19
Show file tree
Hide file tree
Showing 4 changed files with 238 additions and 178 deletions.
4 changes: 2 additions & 2 deletions playground/react/src/teams/output_schema/openai.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const schemaSummary = z.object({

// Define tasks
const writeTask = new Task({
description: `Write detailed summaries about a given historical fact, giving dates, historical figures involved, motives, and repercussions of the fact.`,
description: `Write detailed summaries about {fact}, giving dates, historical figures involved, motives, and repercussions of the fact.`,
expectedOutput:
'A well-structured and detailed summary about historical fact, add metadata like title, epoch of fact, historical figures, countries and number of words',
outputSchema: schemaSummary,
Expand All @@ -41,7 +41,7 @@ const team = new Team({
name: 'History fact summary Team',
agents: [writerAgent],
tasks: [writeTask],
inputs: { fact: 'battle of waterloo' }, // Placeholder for dynamic input
inputs: { fact: 'Normandy landings' }, // Placeholder for dynamic input
env: { OPENAI_API_KEY: import.meta.env.VITE_OPENAI_API_KEY }, // Environment variables for the team,
logLevel: 'error',
});
Expand Down
Loading

0 comments on commit e240d19

Please sign in to comment.