# Turn-budget messages "This is the last turn. Please finish the task by calling a finish tool." f"You have {number_of_turns_remaining} turns remaining to complete the task. Please continue. Remember you will need a separate turn to call a finish tool." # Continue / summary acknowledgement "Please continue the task" "Got it, thanks!" # Image transport messages f"Here is the image for tool call {tm.tool_call_id}" f"Done! The User will provide the image for tool call {tm.tool_call_id}" # Third summarization attempt (after base summary and prose-only warning) f"{text_only_prompt}\n\nTools are disabled for this response. For reference, the tools available earlier in the conversation were:\n{tool_docs}" # tool_docs "\n".join(f"- {tool.name}: {tool.description}" for tool in self._active_tools.values())