Skip to content

Commit

Permalink
move agent_id ref
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh-XT committed Jan 14, 2025
1 parent 5020ee7 commit 98d7faf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion agixt/Agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,7 @@ def __init__(self, agent_name=None, user=DEFAULT_USER, ApiClient: AGiXTSDK = Non
token = impersonate_user(user_id=str(self.user_id))
self.auth = MagicalAuth(token=token)
self.company_id = None
self.agent_id = str(self.get_agent_id())
self.AGENT_CONFIG = self.get_agent_config()
self.load_config_keys()
if "settings" not in self.AGENT_CONFIG:
Expand Down Expand Up @@ -373,7 +374,6 @@ def __init__(self, agent_name=None, user=DEFAULT_USER, ApiClient: AGiXTSDK = Non
self.chunk_size = self.EMBEDDINGS_PROVIDER.chunk_size
else:
self.chunk_size = 256
self.agent_id = str(self.get_agent_id())
self.extensions = Extensions(
agent_name=self.agent_name,
agent_id=self.agent_id,
Expand Down

0 comments on commit 98d7faf

Please sign in to comment.