Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion connector_builder_agents/src/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,11 @@ async def run_manager_developer_build(

try:
# We loop until the manager calls the `mark_job_success` or `mark_job_failed` tool.
# NOTE: previous_response_id is incompatible with SQLiteSession. SQLiteSession automatically
# maintains full conversation history across Runner.run() calls through persistent storage.
# Passing previous_response_id explicitly includes a response that SQLiteSession already loaded,
# causing OpenAI API to reject the request with "Duplicate item found with id ...".
# See: https://pypi.org/project/openai-agents/ for SQLiteSession documentation.
# prev_response_id: str | None = None
all_run_results = []
while not is_complete(session_state):
Expand All @@ -268,7 +273,9 @@ async def run_manager_developer_build(
# previous_response_id=prev_response_id,
)
all_run_results.append(run_result) # Collect all run results
# prev_response_id = run_result.raw_responses[-1].response_id if run_result.raw_responses else None
# prev_response_id = (
# run_result.raw_responses[-1].response_id if run_result.raw_responses else None
# )
status_msg = f"\n🤖 {run_result.last_agent.name}: {run_result.final_output}"
update_progress_log(status_msg, session_state)
run_prompt = (
Expand Down
Loading