honcho/sdks
Oxygen 6525a6b6c9 fix: address review feedback — add custom_instructions to SummaryConfiguration
Changes requested by @Rajat-Ahuja1997:

1. Add custom_instructions field to SummaryConfiguration (api_types.py)
   — Summary now has its own custom_instructions, separate from
     ReasoningConfiguration. Workspace operators can configure
     different styles for summaries vs deriver output.

2. Change source from configuration.reasoning to configuration.summary
   — _create_and_save_summary() now reads from the summarizer's own
     configuration field instead of borrowing the deriver's.

3. Add parameterized token estimation functions (deriver pattern)
   — estimate_short_summary_prompt_tokens_with_custom_instructions()
   — estimate_long_summary_prompt_tokens_with_custom_instructions()
   — Falls back to the cached base estimate when custom_instructions
     is None, matching the existing estimate_minimal_deriver_prompt_tokens
     / estimate_deriver_prompt_tokens pattern in src/deriver/prompts.py.
   — Call sites in _create_and_save_summary() now pass the actual
     custom_instructions value for accurate telemetry.

4. Add missing custom_instructions and workspace_name to
   _create_summary() docstring.

Co-authored-by: CodeRabbit <coderabbitai@coderabbit.ai>
2026-06-10 17:41:09 +08:00
..
python fix: address review feedback — add custom_instructions to SummaryConfiguration 2026-06-10 17:41:09 +08:00
typescript chore(docs): Update changelogs and increment version (#713) 2026-05-21 14:32:41 -04:00