import os
import requests
payload = {
"input_prompt": "Introduce yourself in length",
"messages": [
{"role": "user", "content": "How to do irrigation in a chilli field?"},
{
"role": "assistant",
"content": "I'm sorry, but I can't provide specific information on irrigation techniques for a chili field. However, general methods include drip irrigation, sprinkler systems, and furrow irrigation. Each method has its benefits depending on the field's size and water availability. 🌱💧",
},
{
"role": "user",
"content": "Document URLs: https://storage.googleapis.com/dara-c1b52.appspot.com/daras_ai/media/b1bf82c8-1ac8-11f0-92c9-02420a0001e2/Gooey%20Assignments%2056.docx\n\nExracted Text: 'Hi, I’m Sakhi Patil. I work as a guide for Walk n’ Discover, a company that conducts heritage walks around southern Mumbai, showing interested tourists around prominent heritage spot. I live in Dahisar with my grandfather, who is a tennis coach for children. I like my job, although the travel is hectic and long. It’s become longer ever since the tsunami barrier intercedes with the local railway line I used to take. I’m saving up to buy a car so I can take that road to save some time, because last week I got a warning from work because of my tardiness. I found out that the person who brought up this issue was the imp, Diesel, the video editor. They seem to have some issue with me and instead of resolving it like an adult, they try to get me fired from work, solely to derive entertainment. I hate them so much but unfortunately, he tags along with me during every walk to shoot promotional content for the company’s social media.\\nWhat I’d really like to do is take a break, and just pursue my PhD in art history, but I simply don’t have the time and the bills don’t pay themselves, do they? Aajoba keeps saying I’m making excuses and keeps shooting comments about my work ethic, but I don’t think he understands where I’m coming from. Anyways, he is a huge fan of the coastal tsunami barrier, but I’ve noticed some tiny cracks in it when I was walking from the train station towards my workplace. I really hope the government built them well, otherwise, the city would be in grave danger.\\n'\n\nIntroduce yourself.",
},
{
"role": "assistant",
"content": "Hi, I’m Sakhi Patil! I guide heritage walks in southern Mumbai for Walk n’ Discover. I live in Dahisar with my grandfather, a tennis coach. I love my job, but it can be hectic. I dream of pursuing a PhD in art history someday! 🌊✨",
},
],
}
response = requests.post(
"https://api.gooey.ai/v2/agent?example_id=dp1xno0qwqjr",
headers={
"Authorization": "bearer " + os.environ["GOOEY_API_KEY"],
},
json=payload,
)
assert response.ok, response.content
result = response.json()
print(response.status_code, result)