synapseai
Generate OpenAI function-calling schemas from your tool classes!
Features
- Reads all Python tool classes in a folder
- Extracts class name, docstring, and Pydantic Field attributes
- Outputs OpenAI-compatible function-calling schema JSON
Installation
pip install synapse
As a Python Library
from synapseai import generate_schema
schemas = generate_schema(folder='/path/to/tools')
# or
schemas = generate_schema(files=['/path/to/tools/ToolA.py', '/path/to/tools/ToolB.py'])
Output Format
The output is a list of schemas in OpenAI function-calling format:
[
{
"type": "function",
"function": {
"name": "tool_name",
"description": "...",
"parameters": {
"type": "object",
"properties": { ... },
"required": [ ... ]
}
}
},
...
]
License
MIT
Metadata
Release files for synapseai-python 0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| synapseai_python-0.2.tar.gz | 2.8 kB | Without provenance | Details for synapseai_python-0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| synapseai_python-0.2-py3-none-any.whl | Python 3 | none | any | Details for synapseai_python-0.2-py3-none-any.whl |
Total release size: 6.0 kB
Release files / synapseai_python-0.2.tar.gz
| Download URL | synapseai_python-0.2.tar.gz |
|---|---|
| Size | 2.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
682092f6d898ebff262c46cea17a208be7f44b8d8a3bf0c2c61d2c7dd4c49234
|
|
BLAKE2b-256 checksum How to use checksums |
b3b4cbe40d8e24ee4bc46de73d6915507181df92ce3f6cec0bf941931edf47c7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.7
|
Release files / synapseai_python-0.2-py3-none-any.whl
| Download URL | synapseai_python-0.2-py3-none-any.whl |
|---|---|
| Size | 3.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8fec3a7f1de19d8efa5caac0266c0948e12fee254f9ade2c0b0b2056430aaba7
|
|
BLAKE2b-256 checksum How to use checksums |
69ef69ed07dd0e99d613ae238a9a57e28a7189df0e0b6fd83271cd4464fac2aa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.7
|
Security for synapseai-python 0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.