Skip to main content

A simple library for prototyping and learning agent-based reasoning with tools.

Project description

servants

A simple Python library for prototyping and learning agent-based reasoning with tools.

This package helps you quickly prototype agent architectures that use tools (functions) and step-by-step reasoning. It is designed for educational and experimental purposes, not for production use.

Installation

pip install servants

Usage

from servants import Tool

def foo(a: int, b: str):
    pass

tool = Tool(foo, "foo", "A test function.")
schema = tool.build_tool_schema()
print(schema)

What does it do?

  • Automatically generates a JSON schema for any Python function's parameters and types.
  • Makes it easy to describe agent tools and methods for LLMs or other automation systems.
  • Minimal, easy-to-use API.

Note

This library is intended for prototyping and learning. For production-grade agent frameworks, see LangChain or similar projects.

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

servants-0.1.4.tar.gz (6.1 kB view details)

Uploaded Source

Built Distribution

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

servants-0.1.4-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

Details for the file servants-0.1.4.tar.gz.

File metadata

  • Download URL: servants-0.1.4.tar.gz
  • Upload date:
  • Size: 6.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.6

File hashes

Hashes for servants-0.1.4.tar.gz
Algorithm Hash digest
SHA256 2440a2cbf9b5f080be6b015923785d5a99d46741387393dd541df2079e16f501
MD5 5ac7b7fd07e7da48b7898e2bcdea4d0c
BLAKE2b-256 301355708b1a9960fea174dc834c8dba3ef9fdd99905b640daa32da8936adf4b

See more details on using hashes here.

File details

Details for the file servants-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: servants-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 6.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.6

File hashes

Hashes for servants-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 5bbbec310cc793d8fecd5dccb70d3c76eecfe88b627736f436217ceb3caad8d7
MD5 05d10b481c36132816118627bbb165ec
BLAKE2b-256 6ae1af96a5f6b86a398d1da94128f0e6580ac12fc2c8e6fd9475e7b6b07ae6ee

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