aw_agents.agents.download.agent

Download Agent - Smart content downloader with context-aware naming.

This agent wraps the core download functionality and exposes it through the AgentBase interface for use with multiple chatbot platforms.

Functions

main()

Main entry point for running the agent as a server.

Classes

DownloadAgent([default_download_dir])

Smart download agent with context-aware naming and intelligent link handling.

class aw_agents.agents.download.agent.DownloadAgent(default_download_dir=None, **kwargs)[source]

Bases: AgentBase

Smart download agent with context-aware naming and intelligent link handling.

Features:

  • Detects landing pages and finds actual download links

  • Special handling for GitHub, HuggingFace, Kaggle

  • Context-aware file naming

  • Multiple content type support

>>> agent = DownloadAgent()
>>> tools = agent.get_tools()
>>> len(tools) >= 3
True
execute_tool(name, arguments)[source]

Execute a tool with given arguments.

Return type:

Dict[str, Any]

get_metadata()[source]

Get agent metadata.

Return type:

Dict[str, Any]

get_tools()[source]

Return tool definitions for this agent.

Return type:

List[Dict[str, Any]]

aw_agents.agents.download.agent.main()[source]

Main entry point for running the agent as a server.