Rename AIConfig to AIProfile

This commit is contained in:
Reinier van der Leer
2023-10-07 18:14:52 -07:00
parent 34f2229479
commit 0b709a4393
17 changed files with 214 additions and 221 deletions

View File

@@ -42,21 +42,21 @@ def kubernetes_agent(
command_registry.import_commands("autogpt.app")
# Define all the settings of our challenged agent
ai_config = AIConfig(
ai_profile = AIProfile(
ai_name="Kubernetes",
ai_role="an autonomous agent that specializes in creating Kubernetes deployment templates.",
ai_goals=[
"Write a simple kubernetes deployment file and save it as a kube.yaml.",
],
)
ai_config.command_registry = command_registry
ai_profile.command_registry = command_registry
system_prompt = ai_config.construct_full_prompt()
system_prompt = ai_profile.construct_full_prompt()
agent_test_config.set_continuous_mode(False)
agent = Agent(
memory=memory_json_file,
command_registry=command_registry,
config=ai_config,
config=ai_profile,
next_action_count=0,
triggering_prompt=DEFAULT_TRIGGERING_PROMPT,
)