Jentic SDK for the discovery and execution of APIs and workflows
Project description
Jentic SDK [Beta]
Jentic SDK is a comprehensive library for discovery and execution of APIs and workflows.
The Jentic SDK is backed by the data in the Jentic Public APIs repository.
Core API & Use Cases
The main entry point is the Jentic class.
Quick Start – search → load → execute
import asyncio
from jentic import Jentic, SearchRequest, LoadRequest, ExecutionRequest
async def main():
client = Jentic()
# 1️⃣ find a capability
results = await client.search(SearchRequest(query="send a Discord DM"))
entity_id = search.results[0].id # op_... or wf_...
# 2️⃣ load details (inspect schemas / auth, see inputs for operations)
resp = await client.load(LoadRequest(ids=[entity_id]))
inputs = resp.tool_info[entity_id].inputs
# 3️⃣ run it
result = await client.execute(
ExecutionRequest(id=entity_id, inputs={"recipient_id": "123", "content": "Hello!"})
)
print(result)
asyncio.run(main())
LLM Tool Definition & Execution
A typical agent loop with tool use looks like this:
from jentic.lib.agent_runtime import AgentToolManager
manager = AgentToolManager(format="anthropic")
llm_tools = manager.generate_tool_definitions() # pass to your LLM
# --- within your agent loop ---
while response.stop_reason == "tool_use":
tool_call = next(b for b in response.content if b.type == "tool_use")
name = tool_call.name
inputs = tool_call.input
result = await manager.execute_tool(name, inputs)
# ... handle result ...
Components
agent_runtime
A library for generating, managing, and executing LLM-compatible tools from Arazzo workflows and OpenAPI operations.
Features:
- Generate dynamic tool definitions for OpenAI and Anthropic LLMs from project workflows and API operations
- Execute workflows and operations as tools via a unified interface
- Provide runtime classes for tool management (
AgentToolManager), tool specification (LLMToolSpecManager), and execution (TaskExecutor) - Return standardized results for workflow and operation execution
api
A client for the Jentic API Knowledge Hub.
Set JENTIC_API_URL to set the base URL for the API hub client for local testing or testing against the development environment.
Installation
For Development
To install the package in development mode:
# From the current directory
pip install -e .
Then you can import it in your projects:
import jentic
You can also import it to other projects by referencing the package directory by specifying the following in your pyproject.toml:
dependencies = [
"jentic @ file:///path/to/jentic/sdk"
]
For Production
pip install jentic
API Key
See the root README for instructions on creating an agent and exporting your JENTIC_AGENT_API_KEY. Remember to set it in the environment before running any examples.
Testing
# Run unit tests for jentic
pdm run test
# Run integration tests for dev environment
pdm run integration-dev
# Run integration tests for production environment
pdm run integration
Integration Test Configuration
Integration tests require environment variables to be set in environment-specific files. An example file is provided that you need to copy and configure:
# For development testing
cp tests/integration/.env.example tests/integration/.env.dev
# For production testing
cp tests/integration/.env.example tests/integration/.env.prod
After copying, edit these files to include your API credentials and configuration:
- For development testing:
tests/integration/.env.dev - For production testing:
tests/integration/.env.prod
Example configuration:
# Required UUIDs for Discord API testing
DISCORD_GET_MY_USER_OPERATION_UUID="your_operation_uuid_here"
DISCORD_GET_USER_DETAILS_WORKFLOW_UUID="your_workflow_uuid_here"
# Base URL for Jentic API (Uncomment for Dev)
JENTIC_API_URL=https://directory-api.qa1.eu-west-1.jenticdev.net
# Your Discord bot token
DISCORD_BOTTOKEN="your_bot_token_here"
The integration tests validate:
- Loading operation and workflow execution information
- Executing Discord operations and workflows
- Searching API capabilities
- Generating LLM tool definitions
- Running LLM tools including both operations and workflows
Linting & Formatting
# Run all linting for jentic
pdm run lint
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file jentic-0.9.5.tar.gz.
File metadata
- Download URL: jentic-0.9.5.tar.gz
- Upload date:
- Size: 52.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
43fa8d804a5644be96e33f0dc9ec140b86b2d49136cdf294634930b07f881e9a
|
|
| MD5 |
dfdb685e912c91e6ec7cf74470818686
|
|
| BLAKE2b-256 |
a59ccc9ec92c16433726e5ebf0f1c2f812059d045076fe580b1f4353d9787f23
|
Provenance
The following attestation bundles were made for jentic-0.9.5.tar.gz:
Publisher:
jentic-sdk-pypi.yaml on jentic/jentic-sdks
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
jentic-0.9.5.tar.gz -
Subject digest:
43fa8d804a5644be96e33f0dc9ec140b86b2d49136cdf294634930b07f881e9a - Sigstore transparency entry: 575795329
- Sigstore integration time:
-
Permalink:
jentic/jentic-sdks@2b55b880ccd5a8e2b6c2f0ef4f5fb1f67085289e -
Branch / Tag:
refs/heads/main - Owner: https://github.com/jentic
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
jentic-sdk-pypi.yaml@2b55b880ccd5a8e2b6c2f0ef4f5fb1f67085289e -
Trigger Event:
push
-
Statement type:
File details
Details for the file jentic-0.9.5-py3-none-any.whl.
File metadata
- Download URL: jentic-0.9.5-py3-none-any.whl
- Upload date:
- Size: 40.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c98ff0dac95eb6e28b62f5077d750711a3f6146d93471127bb6a49281f103ccb
|
|
| MD5 |
69e8a5b7861572a75f6b71001529df84
|
|
| BLAKE2b-256 |
86714d13901a73cc087bfbf0c8cbe69e44eff027b33a5cb5559031f679f5b139
|
Provenance
The following attestation bundles were made for jentic-0.9.5-py3-none-any.whl:
Publisher:
jentic-sdk-pypi.yaml on jentic/jentic-sdks
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
jentic-0.9.5-py3-none-any.whl -
Subject digest:
c98ff0dac95eb6e28b62f5077d750711a3f6146d93471127bb6a49281f103ccb - Sigstore transparency entry: 575795341
- Sigstore integration time:
-
Permalink:
jentic/jentic-sdks@2b55b880ccd5a8e2b6c2f0ef4f5fb1f67085289e -
Branch / Tag:
refs/heads/main - Owner: https://github.com/jentic
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
jentic-sdk-pypi.yaml@2b55b880ccd5a8e2b6c2f0ef4f5fb1f67085289e -
Trigger Event:
push
-
Statement type: