Skip to content

added datetime extracted#873

Open
xainaz wants to merge 2 commits intodevelopmentfrom
added-user-info-execution-payload
Open

added datetime extracted#873
xainaz wants to merge 2 commits intodevelopmentfrom
added-user-info-execution-payload

Conversation

@xainaz
Copy link
Copy Markdown
Collaborator

@xainaz xainaz commented Mar 19, 2026

No description provided.

@xainaz xainaz requested a review from aix-ahmet March 19, 2026 15:02

@lru_cache(maxsize=1)
def get_user_location() -> Dict[str, str]:
"""Fetch and cache the user's region and country from ipinfo.io."""
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@xainaz for on prem deployment this will not work. Assume there is no internet connection there. Lets add this as a defensive check if no internet connection keep it empty and do not shre in user info.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If the user doesn't have internet connection they won't be able to run agents anyway right?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no, they run locally. this is for on prem setup

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@aix-ahmet Will the except here not be enough?
It returns an empty dict if there is any issues in getting the request.

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.

2 participants