Example
The following agent will run a shell command and show contents of the current directory.Mention your OS to the agent to make sure it runs the correct command.
cookbook/tools/shell_tools.py
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
You are viewing v1 docs. For the latest documentation, visit docs.agno.com
from agno.agent import Agent
from agno.tools.shell import ShellTools
agent = Agent(tools=[ShellTools()], show_tool_calls=True)
agent.print_response("Show me the contents of the current directory", markdown=True)
| Function | Description |
|---|---|
run_shell_command | Runs a shell command and returns the output or error. |
Was this page helpful?