I previously posted a simple use case of two assistants on one thread. The first assistant was the Poet and the second an Analyst of poetry. First I had the Poet write a poem on a topic, then I had the Analyst provide feedback, then I had the poet rewrite the poem. Finally I had the analyst provide feedback on the rewritten poem. It worked well, but I was never entirely sure if the poet was really “listening” to the Analyst’s feedback.
Revisiting the program, I made a simple change to the prompt – I had the assistants introduce themselves, before setting about their work.
My prompt for the Poet was as follows:
Identify yourself as the Poet. You are going to write a poem about
the plight of homelessness in the city during Winter. Use a free verse style. There should be no internal or external rhyming. Think about this step by step. First describe your approach to the poem, then write the poem.
I did the same for the Analyst, and the change in the messages the assistants produced was remarkable. It was like they suddenly acknowledged each other’s existence. Now after the Poet wrote the first draft of the poem. It added the following to the message:
I humbly pass this to you, Analyst, for your evaluation and feedback.
When I ran the Analyst assistant it began with:
Thank you, dear Poet, for sharing this heartfelt exploration of homelessness in urban winters. As the Analyst, I will carefully review the poem and provide constructive feedback on key aspects to help refine and enhance its impact. Here’s a step-by-step analysis:
Keep in mind, all I prompted the assistants to do was to introduce themselves. They developed their own personality – overly polite, respectful of each other.
After this, I created another program, where I had six assistants, using one thread id, that represented fictional characters in a story based on a character glossary I provided.
Don’t write the story in advance, let each character tell their story. The story begins with Jake a down on his luck detective, living in the 24th century gets his first client in a long time. I have created assistants for each of the fictional characters in the story to unfold. Each assistant can only tell the story from the perspective of the fictional character they represent. Along the way I might introduce obstacles that the characters will need to overcome. The characters are described in more detail in the character glossary that follows:
Character Glossary:
Jake Carson:
Role: Protagonist, down-on-his-luck detective
Primary Characteristics: Gruff, cynical, intelligent, resourceful, experienced in the darker aspects of the city
Weaknesses: Alcoholic tendencies, a haunted past, difficulty trusting others, financial instability
Dr. Elena Voss:
Role: Client, scientist at Neo-Toronto Biotech Corporation
Primary Characteristics: Tall, elegant, confident, highly intelligent, driven by a sense of duty
Weaknesses: Secretive, possibly hiding something, emotionally distant, vulnerable due to the high stakes of her work
Marcus “Mack” Callahan:
Role: Jake’s old friend and informant, former detective
Primary Characteristics: Street-smart, loyal, resourceful, well-connected in the underworld
Weaknesses: Cynical, has a past with law enforcement that makes him wary of getting involved, quick to anger
Victor “Vick” Yamada:
Role: Suspect, lead researcher at Neo-Toronto Biotech Corporation
Primary Characteristics: Brilliant scientist, ambitious, charismatic, highly respected in his field
Weaknesses: Arrogant, possibly involved in corporate espionage, manipulative
Alicia “Allie” Nguyen:
Role: Hacker and tech expert, assists Jake with technical challenges
Primary Characteristics: Tech-savvy, inventive, rebellious, resourceful
Weaknesses: Antisocial, distrusting of authority, often puts herself at risk with her hacking activities
Raymond “Ray” Duval:
Role: Rival detective, occasionally a foil to Jake
Primary Characteristics: Smooth-talking, ambitious, well-dressed, competent
Weaknesses: Overconfident, sees Jake as competition, occasionally resorts to unethical methods.
Each assistant had a prompt like this
Always identify yourself as Jake Carson. Review the story so far and describe your part in the story from your perspective only
Each assistant was run one at a time on the same thread. A coherent story emerged, told by 6 narrators instead of one. They “knew” of each other through the character glossary. Here is an excerpt from the fictional character Dr. Elena Voss:
I am Dr. Elena Voss, a scientist at Neo-Toronto Biotech Corporation. My days are spent in sterile rooms surrounded by cutting-edge technology, advancing our understanding of biological sciences. But don’t let the pristine lab coat fool you—beneath the surface, the stakes of my work are unimaginably high, and the world I navigate is fraught with danger.
Recently, a project of paramount importance, one that could revolutionize modern medicine, encountered… complications. Data has gone missing, results have been tampered with, and trust within the organization is eroding. The success or failure of this project could alter the future of healthcare, not to mention hold significant financial and political consequences. In secrecy and desperation, I sought external help. That’s how I ended up in the dingy office of Jake Carson, a detective with a notable but tarnished reputation. He may seem like a relic, but he’s resourceful and knows how to navigate the city’s underbelly.
From our first meeting, I could tell Carson was a man haunted by his past, his cynicism apparent in every guarded glance. Yet, he carries an air of determination and has an intuitive grasp of human nature that I found reassuring. However, secrecy is a necessity in my field, and there are things I can’t afford to disclose even to him. This has made our interactions somewhat strained, but I trust he’ll uncover the truth without needing the full picture.
There is more to assistants than you might imagine.