AutoGen (now AG2) enables multi-agent conversations where agents collaborate to solve tasks. Jarvis SDK extends every agent in your conversation with 700+ executable tools — no custom function implementations required.
pip install autogen-agentchat requests
Sign up at jarvissdk.com and create an API key.
Register Jarvis SDK execute functions with your agents.
Agents will call Jarvis SDK tools during their conversation.
Copy this into your project to get started immediately.
import autogen
import requests, json
JARVIS_API_KEY = "jsk_your_api_key_here"
def jarvis_execute(module: str, action: str, params: str = "{}") -> str:
"""Execute a Jarvis SDK module. Available modules include:
text-toolkit, hash-toolkit, encoding-toolkit, json-toolkit,
math-toolkit, url-toolkit, and 700+ more."""
resp = requests.post(
f"https://jarvissdk.com/api/v1/modules/{module}/execute",
headers={"x-api-key": JARVIS_API_KEY, "Content-Type": "application/json"},
json={"action": action, "params": json.loads(params)},
)
return json.dumps(resp.json().get("result", resp.json()))
config_list = [{"model": "gpt-4o", "api_key": "your-openai-key"}]
assistant = autogen.AssistantAgent(
name="assistant",
llm_config={"config_list": config_list},
system_message="You have access to 700+ tools via Jarvis SDK. Use jarvis_execute to run any module action.",
)
user_proxy = autogen.UserProxyAgent(
name="user",
human_input_mode="NEVER",
code_execution_config=False,
)
# Register the Jarvis SDK tool
assistant.register_for_llm(name="jarvis_execute", description="Execute a Jarvis SDK module")(jarvis_execute)
user_proxy.register_for_execution(name="jarvis_execute")(jarvis_execute)
user_proxy.initiate_chat(
assistant,
message="Generate a SHA-256 hash of the text 'hello autogen' using Jarvis SDK",
)All agents in an AutoGen conversation can access Jarvis SDK tools. The assistant discovers tools, the executor runs them.
Agents can search for and discover new tools during the conversation — adapting their capabilities on the fly.
Jarvis SDK tools run remotely on our servers. Set code_execution_config=False and still get full tool capabilities.
Works in AutoGen group chats. Multiple specialized agents can each use different Jarvis SDK modules.
Yes. AG2 and AutoGen share the same function registration API. The integration code works with both.
Yes. Register different tool wrappers per agent, each filtering to specific modules. Or use the self-equip API to get role-specific toolkits.
Jarvis SDK charges per execution (free tier: 1K/mo). AutoGen may call tools multiple times in a conversation — monitor your usage dashboard.
Free tier includes 1,000 executions/month. No credit card required.