Spaces:
Sleeping
Sleeping
File size: 974 Bytes
6ab316e | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 | import os
# List of secrets that are commonly used by Agent-Zero and integrated skills
COMMON_SECRETS = [
"ANTHROPIC_API_KEY",
"OPENAI_API_KEY",
"GITHUB_PERSONAL_ACCESS_TOKEN",
"HUGGINGFACE_API_KEY",
"GOOGLE_API_KEY",
"SERPAPI_API_KEY",
"SEARXNG_URL"
]
def check_secrets():
print("=== Skilled-Agent Secret Check ===")
missing = []
available = []
for secret in COMMON_SECRETS:
if os.getenv(secret):
available.append(secret)
else:
missing.append(secret)
if available:
print(f"INFO: Available secrets in environment: {', '.join(available)}")
if missing:
print(f"WARNING: The following secrets are NOT set: {', '.join(missing)}")
print("Please configure them in your Hugging Face Space Settings -> Secrets if your tasks require them.")
print("==================================")
if __name__ == "__main__":
check_secrets()
|