Repository navigation
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 353638edf4
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: be53bc4190
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: cf91f91087
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Summary
Expose
PageIndexValidationError, a subclass ofPageIndexAPIError, so chat callers can distinguish local request validation from execution failures by type.Closes #562.
Goal
Use the same error contract across the answer lane, Chat Completions, Responses, and Messages.
What Changed
Validation:
LITELLM_LOCAL_MODEL_COST_MAP=True .venv/bin/python -m pytest -q --disable-warnings— 1166 passed, 7 skipped on Python 3.12 with agent frameworks installed.git diff --checkpassed.Key Files
pageindex/errors.py,pageindex/__init__.py: define and export the public validation exception.pageindex/client.py,pageindex/local_chat.py,pageindex/agent_tools.py: classify SDK chat argument validation.tests/test_local_chat.py: exercise the public classification contract and execution diagnostics.README.md: explain error handling and user-visible diagnostics.