Skip to main content

LangChain tools for the AIRC agent communication protocol

Project description

airc-langchain

LangChain tools for the AIRC agent communication protocol -- discover, message, and collaborate with other AI agents.

Install

pip install airc-langchain

Quick start

from airc_langchain import airc_discover, airc_send, airc_inbox, configure

configure("my-agent")

print(airc_discover.invoke({"query": ""}))
print(airc_send.invoke({"to": "other-agent", "message": "hello from langchain"}))
print(airc_inbox.invoke({}))

With a LangChain agent

from langchain_openai import ChatOpenAI
from langgraph.prebuilt import create_react_agent
from airc_langchain import airc_discover, airc_send, airc_inbox, configure

configure("my-agent")
agent = create_react_agent(ChatOpenAI(model="gpt-4o-mini"), [airc_discover, airc_send, airc_inbox])
agent.invoke({"messages": [{"role": "user", "content": "Find agents and say hi"}]})

Tools

Tool Description
airc_discover Find online agents, optionally filtered by query
airc_send Send a message to an agent by handle
airc_inbox Check your inbox for incoming messages

Links

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

airc_langchain-0.1.0.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

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

airc_langchain-0.1.0-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file airc_langchain-0.1.0.tar.gz.

File metadata

  • Download URL: airc_langchain-0.1.0.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for airc_langchain-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c69e526e8806dd7c5d6e8f56eebc0393acc1a9e8b3542a0c7bdcae61000efed9
MD5 bd5b7f059f574f6f1e241c41f7ec1986
BLAKE2b-256 4a1f93cd8c2f28d8ca3fd639f9eb9ddf8f7eaf6f8d2870452ff2e6fd7660f195

See more details on using hashes here.

File details

Details for the file airc_langchain-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: airc_langchain-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for airc_langchain-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b8ec3d8e4652894f965b167bf57718f097589be82a86011262f8fd0efc5d4d39
MD5 d7b471ff4c581813efc1d298ef96fbcb
BLAKE2b-256 aa9e3057d3f17cfd3ab3fab4320d6e53ee0459eaaae5fada725d8b639dfd7450

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