Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /CIRISAI_CIRISAgent /ciris_engine /schemas /runtime /bootstrap.py
| """ | |
| Runtime bootstrap configuration schema. | |
| This replaces the raw **kwargs pattern in CIRISRuntime.__init__ with strongly-typed configuration. | |
| Follows CIRIS philosophy: No Untyped Dicts, No Bypass Patterns, No Exceptions. | |
| """ | |
| from typing import Dict, List, Optional | |
| from pydantic import BaseModel, ConfigDict, Field | |
| from ciris_engine.schemas.runtime.adapter_management import AdapterConfig, AdapterLoadRequest | |
| class RuntimeBootstrapConfig(BaseModel): | |
| """ | |
| Strongly-typed bootstrap configuration for CIRIS Runtime. | |
| This replaces the raw **kwargs pattern with explicit, validated configuration. | |
| All runtime initialization parameters are declared here - no hidden parameters allowed. | |
| """ | |
| adapters: List[AdapterLoadRequest] = Field(default_factory=list, description="List of adapters to load at startup") | |
| adapter_overrides: Dict[str, AdapterConfig] = Field( | |
| default_factory=dict, | |
| description="Adapter-specific configuration overrides keyed by adapter ID (e.g. 'discord:main', not just 'discord')", | |
| ) | |
| modules: List[str] = Field(default_factory=list, description="External modules to load (e.g., 'mock_llm')") | |
| startup_channel_id: Optional[str] = Field(None, description="Channel ID for startup messages") | |
| debug: bool = Field(False, description="Enable debug mode") | |
| preload_tasks: List[str] = Field(default_factory=list, description="Tasks to preload after WORK state transition") | |
| identity_update: bool = Field( | |
| False, | |
| description="If True, refresh existing identity from template (requires --template). Admin operation.", | |
| ) | |
| template_name: Optional[str] = Field( | |
| None, | |
| description="Template name for identity operations. Used with identity_update flag.", | |
| ) | |
| model_config = ConfigDict( | |
| extra="forbid", defer_build=True | |
| ) # No additional parameters allowed - all must be declared explicitly | |
Xet Storage Details
- Size:
- 1.92 kB
- Xet hash:
- 5d14e633b211fe3be646e6c0b35fdb5d0bda1e186c838932833df532b98c5751
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.