File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -557,7 +557,7 @@ async def structured_output_async(
557557 final_system_prompt = f"{ system_prompt } \n \n Custom Instructions for this specific task: { custom_instruction } "
558558 logger .debug ("Running extraction" , extra = {"system_prompt" : final_system_prompt })
559559 agent = Agent (
560- model = BedrockModel (** model_config ),
560+ model = BedrockModel (** model_config ), # pyright: ignore[reportArgumentType]
561561 tools = tools ,
562562 system_prompt = f"{ final_system_prompt } \n \n Expected Schema:\n { schema_json } " ,
563563 state = {
@@ -566,7 +566,7 @@ async def structured_output_async(
566566 "existing_data" : existing_data .model_dump () if existing_data else None ,
567567 },
568568 conversation_manager = SummarizingConversationManager (
569- summary_ratio = 0.5 ,
569+ summary_ratio = 0.8 ,
570570 ),
571571 )
572572
@@ -637,7 +637,7 @@ async def structured_output_async(
637637
638638 for attempt in range (max_retries ):
639639 try :
640- response = await agent .invoke_async (prompt_content ) # pyright: ignore[reportArgumentType]
640+ response = await agent .invoke_async (prompt_content )
641641 logger .debug ("Agent response received" )
642642 break # Success, exit retry loop
643643 except Exception as e :
You can’t perform that action at this time.
0 commit comments