You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
swarms/examples/aop_examples/aop_cluster_example.py

12 lines
291 B

import json
from swarms.structs.aop import AOPCluster
aop_cluster = AOPCluster(
urls=["http://localhost:8000/mcp"],
transport="streamable-http",
)
print(json.dumps(aop_cluster.get_tools(output_type="dict"), indent=4))
print(aop_cluster.find_tool_by_server_name("Research-Agent"))