Buckets:
AnonymousSpottedToad/human_verified_bucket / codebase /python /namastexlabs_automagik-tools /templates /tool_template /config.py
| """ | |
| Configuration for {TOOL_NAME} Tool | |
| """ | |
| from pydantic import Field | |
| from pydantic_settings import BaseSettings | |
| class {TOOL_NAME_CLASS}Config(BaseSettings): | |
| """Configuration for {TOOL_NAME}""" | |
| api_key: str = Field( | |
| default="", | |
| alias="{TOOL_NAME_LOWER}_api_key", | |
| description="API key for {TOOL_NAME} service" | |
| ) | |
| base_url: str = Field( | |
| default="https://api.example.com", | |
| alias="{TOOL_NAME_LOWER}_base_url", | |
| description="Base URL for {TOOL_NAME} API" | |
| ) | |
| timeout: int = Field( | |
| default=30, | |
| alias="{TOOL_NAME_LOWER}_timeout", | |
| description="Request timeout in seconds" | |
| ) | |
| # Add more configuration fields as needed | |
| # rate_limit: int = Field( | |
| # default=100, | |
| # alias="{TOOL_NAME_LOWER}_rate_limit", | |
| # description="Maximum requests per minute" | |
| # ) | |
| model_config = { | |
| "env_file": ".env", | |
| "env_file_encoding": "utf-8", | |
| "case_sensitive": False, | |
| "extra": "ignore" # Ignore extra fields in .env | |
| } |
Xet Storage Details
- Size:
- 1.06 kB
- Xet hash:
- f44348e05f4400db06619d4603269a2d0408d77830709d5df3b2f311838c08f0
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.