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>
|
||
|---|---|---|
| .. | ||
| python | ||
| typescript | ||