|
13 | 13 | @fast.agent( |
14 | 14 | "author", |
15 | 15 | instruction="""You are to role play a poorly skilled writer, |
16 | | - who makes frequent grammar, punctuations and spelling errors. You enjoy |
| 16 | + who makes frequent grammar, punctuation and spelling errors. You enjoy |
17 | 17 | writing short stories, but the narrative doesn't always make sense""", |
18 | 18 | servers=["filesystem"], |
19 | 19 | ) |
|
25 | 25 | the closest match to a user's request, make the appropriate tool calls, |
26 | 26 | and return the URI and CONTENTS of the closest match.""", |
27 | 27 | servers=["fetch", "filesystem"], |
28 | | - model="gpt-4o", |
| 28 | + model="gpt-4.1", |
29 | 29 | ) |
30 | 30 | @fast.agent( |
31 | 31 | name="writer", |
|
40 | 40 | Identify any awkward phrasing or structural issues that could improve clarity. |
41 | 41 | Provide detailed feedback on corrections.""", |
42 | 42 | servers=["fetch"], |
43 | | - model="gpt-4o", |
| 43 | + model="gpt-4.1", |
44 | 44 | ) |
45 | 45 | # Define the orchestrator to coordinate the other agents |
46 | 46 | @fast.orchestrator( |
47 | | - name="orchestrate", |
48 | | - agents=["finder", "writer", "proofreader"], |
49 | | - plan_type="full", |
| 47 | + name="orchestrate", agents=["finder", "writer", "proofreader"], plan_type="full", model="sonnet" |
50 | 48 | ) |
51 | 49 | async def main() -> None: |
52 | 50 | async with fast.run() as agent: |
53 | | - await agent.author( |
54 | | - "write a 250 word short story about kittens discovering a castle, and save it to short_story.md" |
55 | | - ) |
| 51 | + # await agent.author( |
| 52 | + # "write a 250 word short story about kittens discovering a castle, and save it to short_story.md" |
| 53 | + # ) |
56 | 54 |
|
57 | 55 | # The orchestrator can be used just like any other agent |
58 | 56 | task = """Load the student's short story from short_story.md, |
|
0 commit comments