Skip to main content

Exfunc Agent Toolkit

Project description

Exfunc Agent Toolkit - Python

The Exfunc Agent Toolkit library enables popular agent frameworks such as LangChain to integrate with Exfunc APIs through function calling. The library is not exhaustive of the entire Exfunc API. It is built directly on top of the Exfunc Python SDK.

Installation

You don't need this source code unless you want to modify the package. If you just want to use the package, just run:

pip install exfunc-agent-toolkit

Requirements

  • Python 3.11+

Usage

The library needs to be configured with your account's API key which is available in your Exfunc Dashboard.

from exfunc_agent_toolkit.langchain.toolkit import ExfuncAgentToolkit

exfunc_agent_toolkit = ExfuncAgentToolkit(
    api_key=os.environ.get("EXFUNC_API_KEY"),  # This is the default and can be omitted
)

The toolkit works with LangChain can be passed as a list of tools. For example:

from langchain_openai import ChatOpenAI
from langgraph.prebuilt import create_react_agent

llm = ChatOpenAI(model="gpt-4o-mini")

tools = []
tools.extend(exfunc_agent_toolkit.get_tools())

langgraph_agent_executor = create_react_agent(llm, tools)

Example for LangChain is included in /examples.

Development

python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt

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

exfunc_agent_toolkit-0.0.1.tar.gz (9.8 kB view details)

Uploaded Source

Built Distribution

exfunc_agent_toolkit-0.0.1-py3-none-any.whl (10.3 kB view details)

Uploaded Python 3

File details

Details for the file exfunc_agent_toolkit-0.0.1.tar.gz.

File metadata

  • Download URL: exfunc_agent_toolkit-0.0.1.tar.gz
  • Upload date:
  • Size: 9.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for exfunc_agent_toolkit-0.0.1.tar.gz
Algorithm Hash digest
SHA256 0dd46f8fe7d537257bde704f35d452d3144825f388bb308f5e8a5d06e50a3d98
MD5 a003171db080b9da5809f7fac4d230db
BLAKE2b-256 e0a046718f75da714e91a1f233f6d545b940aee580951bfbb69a5538ca3746c8

See more details on using hashes here.

Provenance

The following attestation bundles were made for exfunc_agent_toolkit-0.0.1.tar.gz:

Publisher: release.yml on carvedai/exfunc-agent-toolkit

Attestations:

File details

Details for the file exfunc_agent_toolkit-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for exfunc_agent_toolkit-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0ecfddc189f1fb573578335e27f7c8cb6ac2148a63085257c694f24983487bac
MD5 b05cebe8e6383a32baa658a98feb9b5d
BLAKE2b-256 53c3ae3dd3f9c6ccd14b10c739582f565107aa843db7a348afbcc8fc998be823

See more details on using hashes here.

Provenance

The following attestation bundles were made for exfunc_agent_toolkit-0.0.1-py3-none-any.whl:

Publisher: release.yml on carvedai/exfunc-agent-toolkit

Attestations:

Supported by

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