Skip to content
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

[BUG] Not able to call the detect_intent in a particular environment #270

Closed
tejesh4034 opened this issue Dec 10, 2024 · 0 comments · Fixed by #271
Closed

[BUG] Not able to call the detect_intent in a particular environment #270

tejesh4034 opened this issue Dec 10, 2024 · 0 comments · Fixed by #271
Assignees
Labels
bug Something isn't working

Comments

@tejesh4034
Copy link

tejesh4034 commented Dec 10, 2024

Expected Behavior

I should be able to call the agent in a particular environment

Current Behavior

I can specify a environment, when I did it throws me an error

Possible Solution

Steps to Reproduce

  1. call the Sessions.detect_intent() method with a session url that has the environment ID in it
  2. example session_id url: projects//locations/us-central1/agents//environments//sessions/
    1. It will throw an error that session ID is not in the expected format.

Context (Environment)

Detailed Description

s = Sessions()
s = Sessions(agent_id=agent_id)
session_id = s.build_session_id(agent_id).split("/sessions/")[-1]
session_url_with_environment = agent_id + '/environments//sessions/'+session_id
res = s.detect_intent(agent_id, session_url_with_environment, "hello")

Error: ValueError: Session ID must be provided in the following format: projects//locations//agents//sessions/.

Possible Implementation

@tejesh4034 tejesh4034 added the bug Something isn't working label Dec 10, 2024
@tejesh4034 tejesh4034 changed the title [BUG] <Issue Summary Here> Not able to call the agent in a particular environment [BUG] Not able to call the detect_intent in a particular environment Dec 10, 2024
@kmaphoenix kmaphoenix self-assigned this Dec 12, 2024
@kmaphoenix kmaphoenix linked a pull request Dec 17, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants