Goal Submission¶
After you have set up the server and client, you can send your goal to IoA. Before launching goal, you need to create a Python script.
Create
test_your_case.py
in thescripts
directory. For example,scripts/test_paper_writing.py
Goal¶
Complete your task objective description in the goal variable, and send a POST request to the url: "http://127.0.0.1:5050/launch_goal"
,set team_member_names
to None, and team_up_depth
to the depth of nested teaming you desire.
The full URL url: "http://127.0.0.1:5050/launch_goal"
is used to send a POST request to the local server to initiate a goal. This request includes a JSON payload specifying the details of the goal, such as the goal description, maximum turns, and team member names and so on. The server at this endpoint processes the request and sets the specified goal for the IoA to accomplish.
import requests
goal = "task descrpition"
# e.g. goal = I want to know the annual revenue of Microsoft from 2014 to 2020. Please generate a figure in text format showing the trend of the annual revenue, and give me a analysis report.
response = requests.post(
"http://127.0.0.1:5050/launch_goal",
json={
"goal": goal,
"max_turns": 20,
"team_member_names": [agent_1, agent_2] # if you have no spcific team members, set it to None
},
)