Autonomous AI that can browse the web, write code, manage files, and complete complex multi-step tasks.
Agents work by iterating through a think-act-observe cycle until the task is complete.
Search the internet and browse web pages for information.
web_searchWrite and execute Python code in a sandboxed environment.
code_interpreterRead, write, and manage files. Create documents and reports.
file_searchControl a virtual desktopβclick, type, take screenshots.
computerDefine your own tools for the agent to use.
functionAnalyze CSVs, create charts, perform calculations.
code_interpreterfrom mythicdot import MythicDot client = MythicDot() # Create an agent with tools response = client.responses.create( model="mythic-4", input="What's the weather in Tokyo and convert it to Fahrenheit?", tools=[ {"type": "web_search"}, {"type": "code_interpreter"} ] ) # Agent automatically: # 1. Searches for Tokyo weather # 2. Runs Python to convert Β°C to Β°F # 3. Returns the final answer print(response.output_text)
One agent with multiple tools. Good for focused tasks like research, coding, or data analysis.
A dispatcher agent routes tasks to specialized agents (coder, researcher, writer).
Agents pass results to each other in sequence. Good for pipelines.
Multiple agents work together, reviewing and improving each other's work.
# Define your custom tool tools = [{ "type": "function", "name": "send_email", "description": "Send an email to a recipient", "parameters": { "type": "object", "properties": { "to": {"type": "string", "description": "Email address"}, "subject": {"type": "string"}, "body": {"type": "string"} }, "required": ["to", "subject", "body"] } }] response = client.responses.create( model="mythic-4", input="Email john@example.com about the meeting tomorrow", tools=tools ) # Handle the function call for item in response.output: if item.type == "function_call": result = send_email(**json.loads(item.arguments)) # Provide result back to agent...
Agents can take real actions. Use sandboxed environments for testing. Always require human approval for sensitive operations like sending emails, making purchases, or modifying data.