Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /snowcell-cloud_Snowcode /openhands /storage /locations.py
| CONVERSATION_BASE_DIR = 'sessions' | |
| def get_conversation_dir(sid: str, user_id: str | None = None) -> str: | |
| if user_id: | |
| return f'users/{user_id}/conversations/{sid}/' | |
| else: | |
| return f'{CONVERSATION_BASE_DIR}/{sid}/' | |
| def get_conversation_events_dir(sid: str, user_id: str | None = None) -> str: | |
| return f'{get_conversation_dir(sid, user_id)}events/' | |
| def get_conversation_event_filename( | |
| sid: str, id: int, user_id: str | None = None | |
| ) -> str: | |
| return f'{get_conversation_events_dir(sid, user_id)}{id}.json' | |
| def get_conversation_metadata_filename(sid: str, user_id: str | None = None) -> str: | |
| return f'{get_conversation_dir(sid, user_id)}metadata.json' | |
| def get_conversation_init_data_filename(sid: str, user_id: str | None = None) -> str: | |
| return f'{get_conversation_dir(sid, user_id)}init.json' | |
| def get_conversation_agent_state_filename(sid: str, user_id: str | None = None) -> str: | |
| return f'{get_conversation_dir(sid, user_id)}agent_state.pkl' | |
| def get_conversation_llm_registry_filename(sid: str, user_id: str | None = None) -> str: | |
| return f'{get_conversation_dir(sid, user_id)}llm_registry.json' | |
| def get_conversation_stats_filename(sid: str, user_id: str | None = None) -> str: | |
| return f'{get_conversation_dir(sid, user_id)}conversation_stats.pkl' | |
| def get_experiment_config_filename(sid: str, user_id: str | None = None) -> str: | |
| return f'{get_conversation_dir(sid, user_id)}exp_config.json' | |
Xet Storage Details
- Size:
- 1.46 kB
- Xet hash:
- bcf0442043e9bf79646f3a8cbc2bd3235fe14b60354e0c7fe4369e08c8cbdb79
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.