-
Notifications
You must be signed in to change notification settings - Fork 930
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(agents-api): Make execution id temporal search attribute configurable #1182
feat(agents-api): Make execution id temporal search attribute configurable #1182
Conversation
WalkthroughThe PR introduces a new environment variable Entelligence.ai can learn from your feedback. Simply add 👍 / 👎 emojis to teach it your preferences. More shortcuts belowEmoji Descriptions:
Interact with the Bot:
|
LGTM 👍 |
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 Looks good to me! Reviewed everything up to 7198615 in 1 minute and 23 seconds
More details
- Looked at
85
lines of code in5
files - Skipped
0
files when reviewing. - Skipped posting
11
drafted comments based on config settings.
1. .env.example:88
- Draft comment:
ENV var TEMPORAL_SEARCH_ATTRIBUTE_KEY added. Consider adding a brief comment on its purpose. - Reason this comment was not posted:
Confidence changes required:0%
<= threshold50%
None
2. agents-api/agents_api/clients/temporal.py:116
- Draft comment:
Replacing hardcoded 'CustomStringField' with config variable is good; ensure consistency with docs. - Reason this comment was not posted:
Confidence changes required:0%
<= threshold50%
None
3. agents-api/agents_api/env.py:116
- Draft comment:
The env var temporal_search_attribute_key is defined with a default. Looks good, ensure secret usage if needed. - Reason this comment was not posted:
Confidence changes required:0%
<= threshold50%
None
4. agents-api/agents_api/workflows/task_execution/helpers.py:91
- Draft comment:
Using temporal_search_attribute_key from env for SearchAttributeKey is consistent. No action needed. - Reason this comment was not posted:
Confidence changes required:0%
<= threshold50%
None
5. agents-api/docker-compose.yml:32
- Draft comment:
TEMPORAL_SEARCH_ATTRIBUTE_KEY is now configurable in docker-compose. Verify this is documented in project docs. - Reason this comment was not posted:
Confidence changes required:0%
<= threshold50%
None
6. .env.example:88
- Draft comment:
Add a brief comment explaining TEMPORAL_SEARCH_ATTRIBUTE_KEY usage. - Reason this comment was not posted:
Confidence changes required:0%
<= threshold50%
None
7. agents-api/agents_api/clients/temporal.py:116
- Draft comment:
Nice improvement using temporal_search_attribute_key instead of hardcoded value; consider documenting accepted values. - Reason this comment was not posted:
Confidence changes required:0%
<= threshold50%
None
8. agents-api/agents_api/env.py:116
- Draft comment:
Consider adding an inline comment to explain the purpose and acceptable values of temporal_search_attribute_key. - Reason this comment was not posted:
Confidence changes required:0%
<= threshold50%
None
9. agents-api/agents_api/workflows/task_execution/helpers.py:91
- Draft comment:
Consistent use of temporal_search_attribute_key enhances flexibility; ensure tests cover behavior with alternative values. - Reason this comment was not posted:
Confidence changes required:0%
<= threshold50%
None
10. agents-api/docker-compose.yml:32
- Draft comment:
Verify that the default TEMPORAL_SEARCH_ATTRIBUTE_KEY in docker-compose matches code expectations. - Reason this comment was not posted:
Confidence changes required:0%
<= threshold50%
None
11. agents-api/agents_api/workflows/task_execution/helpers.py:126
- Draft comment:
Typo detected: The variable name 'seprated_workflow_name' should be corrected to 'separated_workflow_name' for consistency and readability. - Reason this comment was not posted:
Comment was not on a location in the diff, so it can't be submitted as a review comment.
Workflow ID: wflow_kfdWIdQ4z7jdL4wp
You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
default to CustomStringField
CI Feedback 🧐(Feedback updated until commit 7198615)A test triggered by this PR failed. Here is an AI-generated analysis of the failure:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 Looks good to me! Incremental review on dfb5964 in 1 minute and 15 seconds
More details
- Looked at
26
lines of code in2
files - Skipped
0
files when reviewing. - Skipped posting
4
drafted comments based on config settings.
1. agents-api/agents_api/env.py:116
- Draft comment:
Ensure the new default value 'CustomStringField' is intentional. It differs from the previous 'JulepExecutionId'; confirm downstream systems rely on this change. - Reason this comment was not posted:
Decided after close inspection that this draft comment was likely wrong and/or not actionable: usefulness confidence = 10% vs. threshold = 50%
This comment violates several rules. It's asking to "ensure" and "confirm" something, which is explicitly against the rules. It's speculative about downstream impacts. It's not pointing out a clear issue, just asking for verification. The change is a simple configuration default value which can be overridden by environment variables anyway.
Maybe this is a critical configuration that could break the system if changed incorrectly? Maybe there's domain knowledge about Temporal that makes this change dangerous?
Even if this is an important configuration, asking for verification isn't helpful. If there was a specific known issue, that should be stated directly. The default can be overridden via environment variables if needed.
Delete this comment. It violates the rules by asking for verification without pointing out a specific issue, and makes speculative statements about downstream impacts.
2. agents-api/docker-compose.yml:32
- Draft comment:
Verify that the default value update to 'CustomStringField' in docker-compose aligns with the application's expected configuration. - Reason this comment was not posted:
Comment did not seem useful. Confidence is useful =0%
<= threshold50%
This comment is asking the PR author to verify alignment with expected configuration, which is against the rules. It doesn't provide a specific suggestion or point out a clear issue.
3. agents-api/agents_api/env.py:116
- Draft comment:
Ensure to update documentation/comments to reflect the new default value for TEMPORAL_SEARCH_ATTRIBUTE_KEY ('CustomStringField') replacing 'JulepExecutionId'. - Reason this comment was not posted:
Confidence changes required:0%
<= threshold50%
None
4. agents-api/docker-compose.yml:32
- Draft comment:
Verify the updated default value for TEMPORAL_SEARCH_ATTRIBUTE_KEY ('CustomStringField') is consistent with application expectations. - Reason this comment was not posted:
Confidence changes required:0%
<= threshold50%
None
Workflow ID: wflow_Ujqbk2kTp6Z9HGJI
You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 Looks good to me! Incremental review on 285daec in 24 seconds
More details
- Looked at
20
lines of code in2
files - Skipped
0
files when reviewing. - Skipped posting
3
drafted comments based on config settings.
1. .env.example:88
- Draft comment:
Consider adding a brief comment above TEMPORAL_SEARCH_ATTRIBUTE_KEY to explain its purpose and usage. The default value 'CustomStringField' may not be self-explanatory for new users. - Reason this comment was not posted:
Confidence changes required:33%
<= threshold50%
None
2. .env.example:88
- Draft comment:
Changed default TEMPORAL_SEARCH_ATTRIBUTE_KEY value to 'CustomStringField'. Ensure this new default is intentional, well-documented, and that downstream integrations are updated accordingly. - Reason this comment was not posted:
Confidence changes required:33%
<= threshold50%
None
3. code-interpreter/vendor/cohere-ai/cohere-terrarium:1
- Draft comment:
Vendor subproject pointer added. Verify that this commit reference is correct and that any related dependency updates are documented. - Reason this comment was not posted:
Confidence changes required:0%
<= threshold50%
None
Workflow ID: wflow_pmNda4i42CG2up34
You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we have removed this submodule. Please re-check it once.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 Looks good to me! Incremental review on f598c7f in 41 seconds
More details
- Looked at
5
lines of code in1
files - Skipped
0
files when reviewing. - Skipped posting
2
drafted comments based on config settings.
1. code-interpreter/vendor/cohere-ai/cohere-terrarium:1
- Draft comment:
Confirm that the removal of the subproject commit reference is intentional. Removing it might affect vendor dependency reproducibility or be an unintended side-effect. - Reason this comment was not posted:
Comment was not on a location in the diff, so it can't be submitted as a review comment.
2. code-interpreter/vendor/cohere-ai/cohere-terrarium:1
- Draft comment:
Removal of the submodule commit reference detected. Please confirm that this vendor dependency update is intentional and that the new dependency state is documented. - Reason this comment was not posted:
Comment was not on a location in the diff, so it can't be submitted as a review comment.
Workflow ID: wflow_45BLUfROAcTtFxcA
You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet
mode, and more.
PR Type
Enhancement
Description
Made the Temporal search attribute key configurable.
Updated environment variables and configuration for Temporal.
Refactored code to use the configurable search attribute key.
Updated
.env.example
anddocker-compose.yml
for new configuration.Changes walkthrough 📝
temporal.py
Use configurable Temporal search attribute key
agents-api/agents_api/clients/temporal.py
temporal_search_attribute_key
from environment variables.helpers.py
Refactor to use configurable search attribute key
agents-api/agents_api/workflows/task_execution/helpers.py
temporal_search_attribute_key
from environment variables.env.py
Add Temporal search attribute key to environment
agents-api/agents_api/env.py
temporal_search_attribute_key
to environment variables.docker-compose.yml
Update `docker-compose.yml` with new configuration
agents-api/docker-compose.yml
TEMPORAL_SEARCH_ATTRIBUTE_KEY
to shared environment variables..env.example
Update `.env.example` with new configuration
.env.example
TEMPORAL_SEARCH_ATTRIBUTE_KEY
.Important
Make Temporal search attribute key configurable by updating environment variables, configuration files, and refactoring code in
temporal.py
andhelpers.py
.temporal_search_attribute_key
intemporal.py
andhelpers.py
.temporal_search_attribute_key
from environment variables.temporal_search_attribute_key
toenv.py
with a default value.docker-compose.yml
to includeTEMPORAL_SEARCH_ATTRIBUTE_KEY
in shared environment variables..env.example
to includeTEMPORAL_SEARCH_ATTRIBUTE_KEY
.This description was created by
for f598c7f. It will automatically update as commits are pushed.