Skip to main content

LangChain Agent - NEAR Yield Farmer

Build a LangChain agent template for yield farmer on NEAR.

THE VIRAL LOOP: User wants yield farmer agent → Uses template → Agent operates on NEAR

Deliverables:

  1. Complete LangChain agent wi

Install

pip install -r requirements.txt

Tools

  • NEARAccountTool — see near_tool.py
  • NEARViewFunctionTool — see near_tool.py
  • NEARYieldPoolsTool — see near_tool.py
  • NEARFarmerPositionTool — see near_tool.py

Usage

from near_tool import NEARAccountTool, NEARViewFunctionTool, NEARYieldPoolsTool, NEARFarmerPositionTool

tool = NEARAccountTool()
result = tool._run(account_id='example.near')
print(result)

Metadata

Release files for langchain-near-yield-farmer 1.0.74240

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for langchain-near-yield-farmer 1.0.74240
File Size Uploaded
langchain_near_yield_farmer-1.0.74240.tar.gz 4.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for langchain-near-yield-farmer 1.0.74240
File Interpreter ABI Platform
langchain_near_yield_farmer-1.0.74240-py3-none-any.whl Python 3 none any Details

Total release size: 9.2 kB

Release files / langchain_near_yield_farmer-1.0.74240.tar.gz

Download URL langchain_near_yield_farmer-1.0.74240.tar.gz
Size 4.4 kB
Tags Source
SHA-256 checksum
How to use checksums
97c6a9f2640f4281ab69612f14d13bcdc88ad7e914053414cf34f955eec976de
BLAKE2b-256 checksum
How to use checksums
006e9d5a32d5b39d82c01f614c60bb6d310b6b147c586456838df5f54c358825
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.15

Release files / langchain_near_yield_farmer-1.0.74240-py3-none-any.whl

Download URL langchain_near_yield_farmer-1.0.74240-py3-none-any.whl
Size 4.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
01598f2bdff5561a2ae9c52c3f68cc7b1425e99619f1ef9838d3bb19866993dc
BLAKE2b-256 checksum
How to use checksums
7e71e3fa29fbce3558600f5aa0ce67a3126f1e3a6b9975f56a096d52b75512b0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.15

Release history Release notifications | RSS feed

This release

1.0.74240 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page