MCPcopy Create free account
hub / github.com/Action-State-Labs/android-action-kernel / validate

Method validate

config.py:61–67  ·  view source on GitHub ↗

Validate that required configuration is present.

(cls)

Source from the content-addressed store, hash-verified

59
60 @classmethod
61 def validate(cls) -> None:
62 """Validate that required configuration is present."""
63 if cls.LLM_PROVIDER == "groq" and not cls.GROQ_API_KEY:
64 raise ValueError("GROQ_API_KEY is required when using Groq provider")
65 elif cls.LLM_PROVIDER == "openai" and not cls.OPENAI_API_KEY:
66 raise ValueError("OPENAI_API_KEY is required when using OpenAI provider")
67 # Bedrock uses AWS credential chain, no explicit validation needed

Callers 1

mainFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected