Skip to main content
Glama
artifacts.py561 B
"""Artifact management utilities.""" from pathlib import Path def artifact_path(log_dir: str, run_id: str, filename: str) -> Path: """ Generate path for artifact file. Creates directory structure: {log_dir}/runs/{run_id}/ Args: log_dir: Base log directory run_id: Unique run identifier filename: Artifact filename Returns: Path: Full path to artifact file """ artifact_dir = Path(log_dir) / "runs" / run_id artifact_dir.mkdir(parents=True, exist_ok=True) return artifact_dir / filename

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Purv123/Remidiation-MCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server