Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

ENG 1544: block mentalist without inspector for now and edit the test_model_repr function in unit test to make it pass. #384

Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
default settings
OsujiCC committed Feb 3, 2025
commit 587757d02bcd9cffa02e3a032c0ebe3944bd99cf
20 changes: 3 additions & 17 deletions aixplain/factories/team_agent_factory/__init__.py
Original file line number Diff line number Diff line change
@@ -45,8 +45,6 @@ def create(
api_key: Text = config.TEAM_API_KEY,
supplier: Union[Dict, Text, Supplier, int] = "aiXplain",
version: Optional[Text] = None,
use_mentalist: bool = True,
use_inspector: bool = True,
use_mentalist_and_inspector: bool = True,
) -> TeamAgent:
"""Create a new team agent in the platform."""
@@ -64,20 +62,9 @@ def create(

assert isinstance(agent, Agent), "TeamAgent Onboarding Error: Agents must be instances of Agent class"

mentalist_llm_id = None
if use_mentalist is True:
mentalist_llm_id = llm_id

inspector_llm_id = None
if use_inspector is True:
inspector_llm_id = llm_id

if use_inspector and not use_mentalist:
raise Exception("TeamAgent Onboarding Error: To use the Inspector agent, you must enable Mentalist.")

mentalist_and_inspector_llm_id = None
if use_mentalist_and_inspector is True:
inspector_llm_id = llm_id
mentalist_llm_id = llm_id
mentalist_and_inspector_llm_id = llm_id

team_agent = None
url = urljoin(config.BACKEND_URL, "sdk/agent-communities")
@@ -99,8 +86,7 @@ def create(
"description": description,
"llmId": llm_id,
"supervisorId": llm_id,
"plannerId": mentalist_llm_id,
"inspectorId": inspector_llm_id,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Keep the inspector field

"plannerId": mentalist_and_inspector_llm_id,
"supplier": supplier,
"version": version,
"status": "draft",