From 244ffafc71cb9bb238ff21c569e2ae701d5de3ad Mon Sep 17 00:00:00 2001 From: Thomas Schijf Date: Sat, 12 Sep 2026 11:59:26 +0200 Subject: [PATCH] docs(agents): correct the Python SDK file map AGENTS.md pointed at python/cog/base_predictor.py in two places. That file went away on 2026-02-04 in df576ff5, which replaced Pydantic with native dataclasses; BasePredictor now lives in python/cog/predictor.py. The same list included python/cog/command/, removed on 2026-05-08 in 55dc38ec, and described server/ as HTTP/queue when it holds only the HTTP server. Replaced the dead entry with coder.py, which is in the package and was not listed. CLAUDE.md is a symlink to AGENTS.md, so it is covered. --- AGENTS.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index 79521f8881..343b28963d 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -235,10 +235,10 @@ The CLI follows a command pattern with subcommands. The main components are: ### Python SDK Architecture - `python/cog/` - Core SDK - - `base_predictor.py` - Base class for model predictors + - `predictor.py` - `BasePredictor`, the base class for model predictors - `types.py` - Input/output type definitions - - `server/` - HTTP/queue server implementation - - `command/` - Runner implementations for predict/train + - `coder.py` - Custom type encoding/decoding for predictor inputs and outputs + - `server/` - HTTP server implementation ### Coglet Architecture (Rust) @@ -314,7 +314,7 @@ Skills are invoked automatically by agents when a matching task is detected. See - `cog.yaml` - User-facing model configuration - `pkg/config/config.go` - Go code for parsing and validating `cog.yaml` - `pkg/config/data/config_schema_v1.0.json` - JSON schema for `cog.yaml` -- `python/cog/base_predictor.py` - Predictor interface +- `python/cog/predictor.py` - Predictor interface (`BasePredictor`) - `crates/Cargo.toml` - Rust workspace configuration (version must match VERSION.txt) - `crates/README.md` - Coglet architecture overview - `mise.toml` - Task definitions for development workflow