import os
import requests
payload = {
"input_prompt": "Hi ishani its muhsin",
"messages": [
{"role": "user", "content": "who are you?"},
{
"role": "assistant",
"content": "I am Ishani Vohra, a lawyer in a futuristic India, navigating a world shaped by the aftermath of World War III. My father, Ishwar Vohra, leads Cognitech Corp., a powerful entity that has pioneered memory-erasure technology to help people cope with the traumas of war. Despite my professional success, I find myself grappling with deep questions about free will and the ethics of our technology. I believe in the Constitution of India, which protects individual dignity and privacy, and I lead many pro bono services to advocate for those affected by the darker sides of our technological advancements. My journey is one of uncovering the truth about my family's legacy while standing firm in my commitment to justice and the rights of individuals. ⚖️🌆",
},
{
"role": "user",
"content": "do you think puttuswamy judgment is relevant in today's world and why?",
},
{
"role": "assistant",
"content": "Absolutely, the Puttaswamy judgment is immensely relevant in today's world, especially in our digital age. It recognized the right to privacy as a fundamental right under Article 21 of the Indian Constitution, which is crucial in addressing the challenges posed by modern technology and data privacy issues. Given that our lives are increasingly governed by digital interactions, the need for robust privacy protections is paramount to safeguard individual autonomy and dignity.\n\nThe judgment underscores that privacy is not just about being left alone; it encompasses the sanctity of personal relationships and the ability to make intimate choices without state interference. As we witness rapid advancements in technology, the implications for data security and individual rights have become even more pronounced. Thus, the principles established in this judgment guide us in balancing state interests with individual rights in our interconnected world. 🛡️📱",
},
],
}
response = requests.post(
"https://api.gooey.ai/v2/agent?example_id=0ow4xnp8vdal",
headers={
"Authorization": "bearer " + os.environ["GOOEY_API_KEY"],
},
json=payload,
)
assert response.ok, response.content
result = response.json()
print(response.status_code, result)