Skip to content

fix(run_ingest): Use dictionary key to access run ID#40

Open
Yunus Emre KORKMAZ (dolphinium) wants to merge 1 commit into
langchain-ai:mainfrom
dolphinium:fix/run-ingest-bug
Open

fix(run_ingest): Use dictionary key to access run ID#40
Yunus Emre KORKMAZ (dolphinium) wants to merge 1 commit into
langchain-ai:mainfrom
dolphinium:fix/run-ingest-bug

Conversation

@dolphinium

Copy link
Copy Markdown

The client.runs.list method returns a list of dictionaries, where each dictionary represents a run. The previous code attempted to access the run ID using attribute access (run_info.id), which caused an AttributeError because dictionaries do not have attributes.

This commit changes the access method to use the correct dictionary key (run_info["run_id"]) to retrieve the run ID. This resolves the bug that occurred when cleaning up previous runs from a thread, allowing the email ingestion process to complete successfully.

The `client.runs.list` method returns a list of dictionaries, where each dictionary represents a run. The previous code attempted to access the run ID using attribute access (`run_info.id`), which caused an `AttributeError` because dictionaries do not have attributes.

This commit changes the access method to use the correct dictionary key (`run_info["run_id"]`) to retrieve the run ID. This resolves the bug that occurred when cleaning up previous runs from a thread, allowing the email ingestion process to complete successfully.
@dolphinium

Copy link
Copy Markdown
Author
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant