Skip to main content

memoair-vapi

Serve VAPI's Custom Knowledge Base webhook from MemoAir voice memory. Phase 1 retrieves from the shared org index.

Install

pip install memoair-vapi

Quick start

import json

from memoair_vapi import MemoAirVapiSearch, verify_vapi_signature

search = MemoAirVapiSearch(
    api_key="memoair_pk_...",
    project_id="proj_xxx",
    agent_id="agent_xxx",
    top_k=5,
)

# In your webhook handler (raw_body = exact request bytes):
if not verify_vapi_signature(raw_body, signature_header, secret):
    ...  # return 401

payload = json.loads(raw_body)
documents = await search.handle_request(payload)  # -> {"documents": [...]}

handle_request dispatches on message.type: knowledge-base-request returns documents; any other type is acked with {}. A malformed knowledge-base request raises VapiWebhookError (map it to HTTP 400). Retrieval failures degrade to {"documents": []} so a live call never breaks.

A runnable FastAPI server is in examples/vapi/.

Docs

https://docs.memoair.dev/voice/integrations/vapi

Metadata

Release files for memoair-vapi 0.1.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 memoair-vapi 0.1.0
File Size Uploaded Provenance Actions
memoair_vapi-0.1.0.tar.gz 8.0 kB Without provenance Details for memoair_vapi-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for memoair-vapi 0.1.0
File Interpreter ABI Platform Actions
memoair_vapi-0.1.0-py3-none-any.whl Python 3 none any Details for memoair_vapi-0.1.0-py3-none-any.whl

Total release size: 14.7 kB

Release files / memoair_vapi-0.1.0.tar.gz

Download URL memoair_vapi-0.1.0.tar.gz
Size 8.0 kB
Tags Source
SHA-256 checksum
How to use checksums
df71052be03abca5fdb68411eea613b99fa4bae0a6e355f1c3045da529f82936
BLAKE2b-256 checksum
How to use checksums
8d7da1efd50a499ba8f6e6a706333322f2df8e8fef4dabd16beb7640d1810088
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Release files / memoair_vapi-0.1.0-py3-none-any.whl

Download URL memoair_vapi-0.1.0-py3-none-any.whl
Size 6.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e8336b8c320e9d29df39a4b4072fee82dbd88d22c0d3f8c3f7a98c17eb02bac3
BLAKE2b-256 checksum
How to use checksums
3cc3aa0e5cc63ac8dcb5cc7eceaef9c3776db2b93381597573b148ad52b4aa7a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Security for memoair-vapi 0.1.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.

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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

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