NVIDIA Plugin for Vision Agents
NVIDIA VLM integration for Vision Agents. Supports vision language models through NVIDIA's Chat Completions API with NVCF asset management.
Features
- Video understanding: Automatically buffers and forwards video frames to NVIDIA VLM models
- Streaming responses: Supports streaming text responses with real-time chunk events
- Asset management: Automatically uploads frames as assets and cleans them up after use
- Configurable frame rate and buffer duration for optimal performance
Installation
uv add "vision-agents[nvidia]"
# or directly
uv add vision-agents-plugins-nvidia
Configuration
Set your NVIDIA API key:
export NVIDIA_API_KEY=your_nvidia_api_key
Usage
Basic VLM Usage
from vision_agents.plugins import nvidia
vlm = nvidia.VLM(
model="meta/llama-3.2-11b-vision-instruct",
fps=1,
frame_buffer_seconds=10,
)
# VLM automatically buffers video frames when used with an Agent
response = await vlm.simple_response("What do you see?")
print(response.text)
With Custom Configuration
from vision_agents.plugins import nvidia
vlm = nvidia.VLM(
model="meta/llama-3.2-11b-vision-instruct",
api_key="your-api-key",
fps=2,
frame_buffer_seconds=15,
frame_width=1280,
frame_height=720,
max_tokens=2048,
temperature=0.3,
top_p=0.8,
)
Configuration
| Parameter | Description | Default | Type |
|---|---|---|---|
model |
NVIDIA model ID | "meta/llama-3.2-11b-vision-instruct" |
str |
api_key |
NVIDIA API token (or use NVIDIA_API_KEY env var) |
None |
Optional[str] |
fps |
Frames per second to buffer | 1 |
int |
frame_buffer_seconds |
Number of seconds to buffer | 10 |
int |
frame_width |
Width of video frames to send | 800 |
int |
frame_height |
Height of video frames to send | 600 |
int |
max_tokens |
Maximum response tokens | 1024 |
int |
temperature |
Temperature for sampling | 0.2 |
float |
top_p |
Top-p sampling parameter | 0.7 |
float |
frames_per_second |
Frames per second for video models | 8 |
int |
Dependencies
vision-agents: Core Vision Agents frameworkaiohttp>=3.9.0: Async HTTP client for API requests
Metadata
Release files for vision-agents-plugins-nvidia 0.6.9
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 |
|---|---|---|---|---|
| vision_agents_plugins_nvidia-0.6.9.tar.gz | 7.3 kB | Without provenance | Details for vision_agents_plugins_nvidia-0.6.9.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| vision_agents_plugins_nvidia-0.6.9-py3-none-any.whl | Python 3 | none | any | Details for vision_agents_plugins_nvidia-0.6.9-py3-none-any.whl |
Total release size: 14.9 kB
Release files / vision_agents_plugins_nvidia-0.6.9.tar.gz
| Download URL | vision_agents_plugins_nvidia-0.6.9.tar.gz |
|---|---|
| Size | 7.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1cfb7ccb76b8c43565f4faf49a529d2077d973c14ff41ff3514904bf9cd25205
|
|
BLAKE2b-256 checksum How to use checksums |
124a8be1873325b1ad37ae5ac52047b4240af3a9ea8bd3b45dd16adcbe0f870c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.10.10 {"installer":{"name":"uv","version":"0.10.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / vision_agents_plugins_nvidia-0.6.9-py3-none-any.whl
| Download URL | vision_agents_plugins_nvidia-0.6.9-py3-none-any.whl |
|---|---|
| Size | 7.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
90e22dd02645365cc43ae45f8d440d2faeb84bbc7ea2c13c976c0567c98921b2
|
|
BLAKE2b-256 checksum How to use checksums |
78cf7801cf5daf7a22b6499f08f58c431c3c80c0fba98f9745f8ae5004047b53
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.10.10 {"installer":{"name":"uv","version":"0.10.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for vision-agents-plugins-nvidia 0.6.9
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.