anthropics / anthropics/claude-agent-sdk-python

Add more presets to the system prompt

オープン
#1,140 コメント 0 件 リアクション 1 件 担当者 0 名 GitHub で見る
主要言語
Python
スター
8.1k
フォーク
1.3k
PR マージ指標
PR 指標を取得中

説明

Currently, the only preset is [claude_code](https://code.claude.com/docs/en/agent-sdk/modifying-system-prompts), I do not want to use the `claude_code` preset, but I do want to be able to use parts of it, for example the part that instructs the auto memory.

It is also pretty unclear what is in the `claude_code` preset, to give a good understanding of what should be added to a custom prompt to get certain behavior to work correctly (such as auto memory).

My proposal would be to split up parts of the `claude_code` preset into smaller presets and the ability to construct your own, for example:

```
system_prompt={
"type": "preset",
"presets": ["formatting_guidelines", "auto_memory", "safety_instructions"],
"append": "You are a custom agent"
}
```

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。