Supported Packages
NEAR AI supports several framework configurations, each with its own set of Python packages. Here is an overview of available frameworks, the setting value, and descriptions:
Framework | Setting | Description |
---|---|---|
Minimal | minimal | Basic essential packages - DEFAULT |
Standard | standard | More robust Agent Framework |
TypeScript | ts | For creating agents with TypeScript |
AgentKit | agentkit | For use with LangChain, LangGraph, or Coinbase's Agentkit |
Need a package that is not currently supported?
If you have a particular package that is not currently supported, you can reach out to the team to have it added:
Framework Usage¶
To use a specific framework, specify it in your agent's metadata.json
:
Framework Types¶
Below are up-to-date package support for each framework as defined in NEAR AI's AWS Runner Frameworks settings.
Minimal Framework¶
# Minimal Base Framework
# Default for NEAR AI Agents
# AWS SDK for Python
# https://github.com/boto/boto3
boto3 >= 1.35.3
# Base58 encoding/decoding library
# https://github.com/keis/base58
base58 == 2.1.1
# Datadog tracing library
# https://github.com/DataDog/dd-trace-py
ddtrace == 2.21.0
# Ed25519 cryptographic signatures
# https://github.com/warner/python-ed25519
ed25519 == 1.5
# LiteLLM for unified LLM API access
# https://github.com/BerriAI/litellm
litellm >= 1.60.5
# Loguru for better logging
# https://github.com/Delgan/loguru
loguru == 0.7.2
# Model Context Protocol integration for LLM apps and external data sources and tools
# https://github.com/modelcontextprotocol
mcp
# OpenAI Python client
# https://github.com/openai/openai-python
openai == 1.66.2
# Process and system utilities
# https://github.com/giampaolo/psutil
psutil >= 5.9.5
# Data validation using Python type annotations
# https://github.com/pydantic/pydantic
pydantic >=2.8.2
# Python binding to the Networking and Cryptography library
# https://github.com/pyca/pynacl
pynacl >= 1.5.0
# NEAR Protocol Python SDK
# https://github.com/pvolnov/py-near
py-near >= 1.1.50
# Python dateutil for handling dates and times
# https://github.com/dateutil/dateutil
python_dateutil >= 2.5.3
# World timezone definitions
# https://github.com/stub42/pytz
pytz == 2024.2
# Package development tools
# https://github.com/pypa/setuptools
setuptools >= 21.0.0
# Retry logic with exponential backoff
# https://github.com/jd/tenacity
tenacity == 9.0.0
# Twitter API wrapper
# https://github.com/tweepy/tweepy
tweepy >= 4.14.0
# Type hinting support
# https://github.com/python/typing_extensions
typing-extensions >= 4.7.1
# HTTP client
# https://github.com/urllib3/urllib3
urllib3 >= 1.25.3, < 2.1.0
Standard Framework¶
# Standard Web Agent Framework
# Extended framework for web-enabled NEAR AI Agents
# Asynchronous HTTP client/server framework
# https://github.com/aio-libs/aiohttp
aiohttp==3.11.0b0
# Base58 encoding/decoding library
# https://github.com/keis/base58
base58 == 2.1.1
# AWS SDK for Python
# https://github.com/boto/boto3
boto3 >= 1.35.3
# Borsh serialization format implementation
# https://github.com/near/borsh-construct-py
borsh-construct
# Beautiful Soup for HTML parsing
# https://pypi.org/project/beautifulsoup4/
bs4
# Character encoding detection
# https://github.com/chardet/chardet
chardet
# Cryptography library for secure encryption
# https://github.com/pyca/cryptography
cryptography==44.0.2
# Datadog tracing library
# https://github.com/DataDog/dd-trace-py
ddtrace == 2.21.0
# Ed25519 cryptographic signatures
# https://github.com/warner/python-ed25519
ed25519 == 1.5
# Account abstraction library for web3.py
# https://github.com/ethereum/eth-account
eth-account >= 0.13.5
# Google Search API wrapper
# https://github.com/Nv7-GitHub/googlesearch
googlesearch-python >= 1.2.5
# LiteLLM for unified LLM API access
# https://github.com/BerriAI/litellm
litellm >= 1.60.5
# Loguru for better logging
# https://github.com/Delgan/loguru
loguru == 0.7.2
# Mutagen for audio/video metadata extraction
# https://github.com/quodlibet/mutagen
mutagen==1.47.0
# NumPy for numerical computing
# https://github.com/numpy/numpy
numpy >= 1.21.0
# OpenAI Python client
# https://github.com/openai/openai-python
openai == 1.66.2
# Pillow for image processing
# https://github.com/python-pillow/Pillow
Pillow==11.2.1
# Process and system utilities
# https://github.com/giampaolo/psutil
psutil >= 5.9.5
# Data validation using Python type hints
# https://github.com/pydantic/pydantic
pydantic==2.9.2
# Python binding to the Networking and Cryptography library
# https://github.com/pyca/pynacl
pynacl >= 1.5.0
# NEAR Protocol Python SDK
# https://github.com/pvolnov/py-near
py-near >= 1.1.50
# Multibase encoding
# https://github.com/multiformats/py-multibase
py-multibase==1.0.3
# Multicodec encoding
# https://github.com/multiformats/py-multicodec
py-multicodec==0.2.1
# Python dateutil for handling dates and times
# https://github.com/dateutil/dateutil
python_dateutil >= 2.5.3
# World timezone definitions
# https://github.com/stub42/pytz
pytz == 2024.2
# PDF file manipulation
# https://github.com/py-pdf/pypdf
PyPDF2
# PDF file creation and manipulation
# https://docs.reportlab.com/
reportlab
# Package development tools
# https://github.com/pypa/setuptools
setuptools >= 21.0.0
# Retry logic with exponential backoff
# https://github.com/jd/tenacity
tenacity == 9.0.0
# Twitter API wrapper
# https://github.com/tweepy/tweepy
tweepy >= 4.14.0
# Type hinting support
# https://github.com/python/typing_extensions
typing-extensions >= 4.7.1
# HTTP client
# https://github.com/urllib3/urllib3
urllib3 >= 1.25.3, < 2.1.0
# Web3.py for Ethereum interaction
# https://github.com/ethereum/web3.py
web3 >= 7.8.0
# YouTube transcript API
# https://github.com/jdepoix/youtube-transcript-api
youtube_transcript_api >= 0.6.2
TypeScript Framework¶
For use when creating TypeScript agents.
# Minimal Base Framework
# Default for NEAR AI Agents
# AWS SDK for Python
# https://github.com/boto/boto3
boto3 >= 1.35.3
# Base58 encoding/decoding library
# https://github.com/keis/base58
base58 == 2.1.1
# Datadog tracing library
# https://github.com/DataDog/dd-trace-py
ddtrace == 2.21.0
# Ed25519 cryptographic signatures
# https://github.com/warner/python-ed25519
ed25519 == 1.5
# LiteLLM for unified LLM API access
# https://github.com/BerriAI/litellm
litellm >= 1.60.5
# Loguru for better logging
# https://github.com/Delgan/loguru
loguru == 0.7.2
# Model Context Protocol integration for LLM apps and external data sources and tools
# https://github.com/modelcontextprotocol
mcp
# OpenAI Python client
# https://github.com/openai/openai-python
openai == 1.66.2
# Process and system utilities
# https://github.com/giampaolo/psutil
psutil >= 5.9.5
# Data validation using Python type annotations
# https://github.com/pydantic/pydantic
pydantic >=2.8.2
# Python binding to the Networking and Cryptography library
# https://github.com/pyca/pynacl
pynacl >= 1.5.0
# NEAR Protocol Python SDK
# https://github.com/pvolnov/py-near
py-near >= 1.1.50
# Python dateutil for handling dates and times
# https://github.com/dateutil/dateutil
python_dateutil >= 2.5.3
# World timezone definitions
# https://github.com/stub42/pytz
pytz == 2024.2
# Package development tools
# https://github.com/pypa/setuptools
setuptools >= 21.0.0
# Retry logic with exponential backoff
# https://github.com/jd/tenacity
tenacity == 9.0.0
# Twitter API wrapper
# https://github.com/tweepy/tweepy
tweepy >= 4.14.0
# Type hinting support
# https://github.com/python/typing_extensions
typing-extensions >= 4.7.1
# HTTP client
# https://github.com/urllib3/urllib3
urllib3 >= 1.25.3, < 2.1.0
AgentKit Framework¶
For use with LangChain, LangGraph, or Coinbase's Agentkit
# AgentKit Framework
# For use with LangChain, LangGraph, or Coinbase's Agentkit
# Base58 encoding/decoding library
# https://github.com/keis/base58
base58 == 2.1.1
# AWS SDK for Python
# https://github.com/boto/boto3
boto3 >= 1.35.3
# Coinbase SDK for crypto integration
# https://github.com/coinbase/cdp-sdk-python
cdp-sdk >= 0.15.0
# Coinbase AgentKit Integration
# https://github.com/coinbase/agentkit
coinbase-agentkit >= 0.4.0
# LangChain integration for Coinbase AgentKit
# https://github.com/coinbase/agentkit
coinbase-agentkit-langchain >= 0.3.0
# Datadog tracing library
# https://github.com/DataDog/dd-trace-py
ddtrace == 2.21.0
# DuckDuckGo search API
# https://github.com/deedy5/duckduckgo_search
duckduckgo-search >= 7.3.0
# Ed25519 cryptographic signatures
# https://github.com/warner/python-ed25519
ed25519 == 1.5
# LangChain Agent Development Framework
# https://github.com/langchain-ai/langchain
langchain >= 0.3.4
langchain-community >= 0.3.16
langchain-openai >= 0.2.4
# LangGraph for agent orchestration
# https://github.com/langchain-ai/langgraph
langgraph >= 0.2.39
# LiteLLM for unified LLM API access
# https://github.com/BerriAI/litellm
litellm >= 1.41.0
# Loguru for better logging
# https://github.com/Delgan/loguru
loguru == 0.7.2
# NEAR AI LangChain integration
# https://github.com/nearai/nearai_langchain
nearai-langchain >= 0.0.13
# Process and system utilities
# https://github.com/giampaolo/psutil
psutil >= 5.9.5
# Data validation using Python type annotations
# https://github.com/pydantic/pydantic
pydantic >=2.8.2
# Python binding to the Networking and Cryptography library
# https://github.com/pyca/pynacl
pynacl >= 1.5.0
# Python dateutil for handling dates and times
# https://github.com/dateutil/dateutil
python_dateutil >= 2.5.3
# World timezone definitions
# https://github.com/stub42/pytz
pytz == 2024.2
# NEAR Protocol Python SDK
# https://github.com/pvolnov/py-near
py-near >= 1.1.50
# Package development tools
# https://github.com/pypa/setuptools
setuptools >= 21.0.0
# Twitter API
# https://github.com/tweepy/tweepy
tweepy >= 4.14.0
# Type hinting support
# https://github.com/python/typing_extensions
typing-extensions >= 4.7.1
# HTTP client
# https://github.com/urllib3/urllib3
urllib3 >= 1.25.3
# Web3.py for Ethereum interaction
# https://github.com/ethereum/web3.py
web3 >= 7.6.0