(self)
| 375 | # ---- 各层的生成逻辑 ---- |
| 376 | |
| 377 | def _system_section(self) -> str: |
| 378 | return "\n".join([ |
| 379 | "# System", |
| 380 | " - All text you output outside of tool use is displayed to the user.", |
| 381 | " - Tools are executed in a user-selected permission mode.", |
| 382 | " - The system may automatically compress prior messages as context grows.", |
| 383 | ]) |
| 384 | |
| 385 | def _doing_tasks_section(self) -> str: |
| 386 | return "\n".join([ |