Dynamic Profile
In the previous sections, we have introduced how generate prompts from the profile. In sometimes, you just want to modify a part of the profile in a simple way, here we introduce how to create a dynamic profile.
Dynamic Fields Of Profile
Here we use DynConfig to create a dynamic profile, you can modify the fields of the original profile.
Create a python file named profile_dynamic.py and add the following code:
from dbgpt.agent import ProfileConfig, DynConfig
profile: ProfileConfig = ProfileConfig(
# The name of the agent
name=DynConfig(
"Aristotle",
key="summary_profile_name",
provider="env"
),
# The role of the agent
role="Summarizer",
)