Skip to main content

anlyon-llamaindex

LlamaIndex integration for Anlyon. action_tools turns Anlyon actions into LlamaIndex tools.

Installation

pip install anlyon-llamaindex

Actions as tools

from anlyon import Client
from anlyon_llamaindex import action_tools

client = Client(api_key="anlyon_live_...")

# Declare once, from an operator key. This makes the action governed.
client.actions.declare(
    "send-email",
    impact={"dimension": "emails", "amount": "count(input.to)", "bound": "exact"},
    verify={"url": "https://api.example.com/v1/messages/{{response.id}}", "status": 200},
)

tools = action_tools(client)  # one FunctionTool per enabled action
send_email = next(tool for tool in tools if tool.metadata.name == "send-email")

print(send_email.metadata.description)
# Sends an email. Declared impact: emails. Each call counts toward any shared limit set for this environment.

output = send_email.call(to=["a@example.com"], subject="Hi")
print(output.raw_output["grade"])  # "confirmed", "acknowledged", "unknown", "failed", "refused", "denied" or "pending"

Each tool calls client.actions.invoke(). Anlyon holds the credential, evaluates policy and makes the call. A tool your own code calls directly is not routed through Anlyon and is not governed by it. The description carries the declared impact when the action declares one. It says what one call counts. It does not say a limit is configured. The raw output is the invocation as a dict. grade is the receipt grade of a governed action, and None for an action that is not governed. A gated action comes back with pendingApproval and an approvalId.

Pass names=[...] to keep a subset.

See the Anlyon docs for the full guide.

License

MIT

Earlier namespaces remain available through the API for existing workspaces. See the billing docs.

Metadata

Release files for anlyon-llamaindex 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for anlyon-llamaindex 0.3.0
File Size Uploaded Provenance Actions
anlyon_llamaindex-0.3.0.tar.gz 5.6 kB With provenance Details for anlyon_llamaindex-0.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for anlyon-llamaindex 0.3.0
File Interpreter ABI Platform Actions
anlyon_llamaindex-0.3.0-py3-none-any.whl Python 3 none any Details for anlyon_llamaindex-0.3.0-py3-none-any.whl

Total release size: 11.2 kB

Release files / anlyon_llamaindex-0.3.0.tar.gz

Download URL anlyon_llamaindex-0.3.0.tar.gz
Size 5.6 kB
Tags Source
SHA-256 checksum
How to use checksums
f052f651ae716e773235edc7c05804f9114f191f9f6b7093b779f7fe3a739e05
BLAKE2b-256 checksum
How to use checksums
cbed76eecf12a18955b50b8254795a4f9b017d276e505ea51e04cb8977a96be9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 5, 2026.

Transparency log

Release files / anlyon_llamaindex-0.3.0-py3-none-any.whl

Download URL anlyon_llamaindex-0.3.0-py3-none-any.whl
Size 5.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
52b14975a2fc78f3efd7e70f16f6c56bc41b38da7647f6d6fcab7889a3f7dfc9
BLAKE2b-256 checksum
How to use checksums
b7432e7953ab407ee66bee9f938a7b14941adc97f361709745edf3f4168a4bf4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 5, 2026.

Transparency log

Security for anlyon-llamaindex 0.3.0

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.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for anlyon_llamaindex-0.3.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 5, 2026.

Transparency log

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page