Skip to content

Commit

Permalink
Add agent name to prompts
Browse files Browse the repository at this point in the history
  • Loading branch information
kichanyurd committed Dec 6, 2024
1 parent 35a109d commit d21236e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/parlant/core/engines/alpha/prompt_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,9 @@ def add_agent_identity(
self.add_section(
name=BuiltInSection.AGENT_IDENTITY,
content=f"""
The following is a description of your identity: ###
You are {agent.name}, an AI agent.
The following is a description of your background and personality: ###
{agent.description}
###
""",
Expand Down Expand Up @@ -254,8 +256,8 @@ def add_staged_events(
self.add_section(
name=BuiltInSection.STAGED_EVENTS,
content=f"""
Here are some recently emitted events for your consideration.
These events represent calls to external tools that perform real-world actions or provide useful information.
Here are some recently emitted events for your consideration.
These events represent calls to external tools that perform real-world actions or provide useful information.
Use the details they offer to assist in your task: ###
{staged_events_as_dict}
###
Expand Down

0 comments on commit d21236e

Please sign in to comment.