diff options
Diffstat (limited to 'autogpts/autogpt/autogpt/agent_factory/profile_generator.py')
-rw-r--r-- | autogpts/autogpt/autogpt/agent_factory/profile_generator.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/autogpts/autogpt/autogpt/agent_factory/profile_generator.py b/autogpts/autogpt/autogpt/agent_factory/profile_generator.py index 889b7f2d4..78afbe51a 100644 --- a/autogpts/autogpt/autogpt/agent_factory/profile_generator.py +++ b/autogpts/autogpt/autogpt/agent_factory/profile_generator.py @@ -15,7 +15,6 @@ from autogpt.core.resource.model_providers.schema import ( CompletionModelFunction, ) from autogpt.core.utils.json_schema import JSONSchema -from autogpt.core.utils.json_utils import json_loads logger = logging.getLogger(__name__) @@ -203,9 +202,7 @@ class AgentProfileGenerator(PromptStrategy): f"LLM did not call {self._create_agent_function.name} function; " "agent profile creation failed" ) - arguments: object = json_loads( - response_content.tool_calls[0].function.arguments - ) + arguments: object = response_content.tool_calls[0].function.arguments ai_profile = AIProfile( ai_name=arguments.get("name"), ai_role=arguments.get("description"), |