Skip to main content

LangChain integration for delegating tasks to real humans via the Humanod API.

Project description

LangChain Humanod Toolkit

Allows LangChain agents to securely interact with the physical world by hiring real humans through the Humanod API.

Installation

pip install langchain-humanod

Quick Start (with LangGraph or traditional Agents)

from langchain_humanod import HumanodToolkit
from langchain.agents import initialize_agent, AgentType
from langchain_openai import ChatOpenAI

llm = ChatOpenAI(temperature=0)

# Instantiate the Toolkit
toolkit = HumanodToolkit(api_key="your_humanod_api_key")
tools = toolkit.get_tools()

# Create agent
agent = initialize_agent(
    tools, 
    llm, 
    agent=AgentType.STRUCTURED_CHAT_ZERO_SHOT_REACT_DESCRIPTION, 
    verbose=True
)

agent.run("Can you hire a human to go take a photo of the Eiffel Tower right now? Offer 15 EUR.")

Included Tools

  • hire_human: Creates a task request and deploys it to the human workforce.
  • check_human_task_status: Verifies the status of a deployed physical task.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

langchain_humanod-0.1.1.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

langchain_humanod-0.1.1-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file langchain_humanod-0.1.1.tar.gz.

File metadata

  • Download URL: langchain_humanod-0.1.1.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.2

File hashes

Hashes for langchain_humanod-0.1.1.tar.gz
Algorithm Hash digest
SHA256 1ba4ddf55f9608609502697b32be41dd593528d5afdfd79bdccb8a7ef7eef473
MD5 9672d48690cff8144c604c24dd294a0d
BLAKE2b-256 78608cd33f1a5973e3eccadad90cc19b4d4c23ca4ac8604f9efcce96090f3fb3

See more details on using hashes here.

File details

Details for the file langchain_humanod-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for langchain_humanod-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3358bd6348f1bc40bb48ba412384b57953bf800fd27ff23aa779f41e14b90464
MD5 271012f0ba3a69536cae7ee7de99cfd1
BLAKE2b-256 4a645a552025b6d71b7751192eb32f09196867b2d7083e7ab76ae1cbd911f102

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page