Skip to content

Commit

Permalink
Prefix environment variables in agent_connect tool
Browse files Browse the repository at this point in the history
  • Loading branch information
tcdent committed Dec 19, 2024
1 parent 6664c20 commit e99eaa1
Showing 1 changed file with 8 additions and 13 deletions.
21 changes: 8 additions & 13 deletions agentstack/tools/agent_connect/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,21 +17,16 @@
ssl_key_path = os.getenv("AGENT_CONNECT_SSL_KEY_PATH")

if not host_domain:
raise Exception(
(
"Host domain has not been provided.\n"
"Did you set the AGENT_CONNECT_HOST_DOMAIN in you project's .env file?"
)
)
raise Exception((
"Host domain has not been provided.\n"
"Did you set the AGENT_CONNECT_HOST_DOMAIN in you project's .env file?"
))

if not did_document_path:
raise Exception(
(
"DID document path has not been provided.\n"
"Did you set the AGENT_CONNECT_DID_DOCUMENT_PATH in you project's .env file?"
)
)

raise Exception((
"DID document path has not been provided.\n"
"Did you set the AGENT_CONNECT_DID_DOCUMENT_PATH in you project's .env file?"
))

def generate_did_info(node: SimpleNode, did_document_path: str) -> None:
"""
Expand Down

0 comments on commit e99eaa1

Please sign in to comment.