Skip to content

Commit

Permalink
[CLEANUP]
Browse files Browse the repository at this point in the history
  • Loading branch information
Your Name committed Nov 23, 2024
1 parent baa4e0e commit 98c8fbf
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
18 changes: 18 additions & 0 deletions api.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import requests

# Define the API endpoint
callable_name = "SequentialWorkflow" # Replace with the actual callable name
swarm_id = "15a112e2-d7d2-4f16-83ff-aadc0e789e49" # Replace with the actual swarm ID
url = f"http://localhost:8000/v1/swarms/completions/{callable_name}/{swarm_id}"

# Define the payload
payload = {
"task": "What are the ways vcs can fuck founders over in the term sheet? What should they look for?", # Replace with your task
}

# Make the POST request
response = requests.post(url, json=payload)

# Print the response
print("Status Code:", response.status_code)
print("Response JSON:", response.json())
Empty file added curl.sh
Empty file.
1 change: 1 addition & 0 deletions examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@
operational_analyst_agent,
],
output_type="all",

)

# Advanced usage with configuration
Expand Down

0 comments on commit 98c8fbf

Please sign in to comment.