generated from kyegomez/Python-Package-Template
-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Your Name
committed
Nov 23, 2024
1 parent
baa4e0e
commit 98c8fbf
Showing
3 changed files
with
19 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -107,6 +107,7 @@ | |
operational_analyst_agent, | ||
], | ||
output_type="all", | ||
|
||
) | ||
|
||
# Advanced usage with configuration | ||
|