Skip to content

docs: document file-based system prompts for large inputs#1114

Open
DresdenGman wants to merge 1 commit into
anthropics:mainfrom
DresdenGman:docs/system-prompt-file-guidance
Open

docs: document file-based system prompts for large inputs#1114
DresdenGman wants to merge 1 commit into
anthropics:mainfrom
DresdenGman:docs/system-prompt-file-guidance

Conversation

@DresdenGman

Copy link
Copy Markdown

Summary

Documents the file-based system_prompt form near the existing usage example
and explains the Linux per-argument command-line limit that can affect large
inline prompt strings.

The example makes clear that only the file path is passed as a command-line
argument, rather than the prompt content itself.

This PR is documentation-only and does not change runtime behavior.

Validation

  • python -m ruff check src/ tests/ — pass
  • python -m ruff format --check src/ tests/ — pass
  • python -m mypy src/ — pass
  • python -m pytest tests/ -q — 1056 passed, 5 skipped in 13.71s

Related to #1096.

Closes #1099.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

docs: call out OS argv length limit for large string system_prompt

1 participant