Skip to content

Commit 7bfde7f

Browse files
authored
summary: avoid actions summary if there no action (#266)
1 parent 02c33c4 commit 7bfde7f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

case-summarization/deploy/case-summarization.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ Resources:
240240
description="Focus on the main elements of the conversation and highlight the proposed solutions. If no specific solution, skip this section."
241241
)
242242
actions: str = Field(
243-
description="Finish off with any action items or next steps highlighting ownership of actions or next steps."
243+
description="Finish off with any action items or next steps highlighting ownership of actions or next steps. If none, skip this section."
244244
)
245245
references: list[str] = Field(
246246
description=(
@@ -313,7 +313,7 @@ Resources:
313313
314314
logger.info("support case summarization starting")
315315
model_id = get_model_id()
316-
316+
317317
llm_program = get_llm_program(communications, model_id)
318318
try:
319319
case_data_content['Summary'] = llm_program().model_dump_json()
@@ -445,7 +445,7 @@ Resources:
445445
QueueEventSourceMapping:
446446
Type: AWS::Lambda::EventSourceMapping
447447
Properties:
448-
BatchSize: !Ref BatchSize # Process N messages at a time to avoid Bedrock Tootling
448+
BatchSize: !Ref BatchSize # Process N messages at a time to avoid Bedrock Throttling
449449
Enabled: true
450450
EventSourceArn: !GetAtt SummarizationQueue.Arn
451451
FunctionName: !Ref SummarizationLambda

0 commit comments

Comments
 (0)