AWS (Bedrock) LLM integration for Vision Agents
Project description
AWS Plugin for Vision Agents
AWS (Bedrock) LLM integration for Vision Agents framework with support for both standard and realtime interactions.
Installation
pip install vision-agents-plugins-aws
Usage
Standard LLM Usage
This example shows how to use qwen3 on bedrock for the LLM.
agent = Agent(
edge=getstream.Edge(),
agent_user=User(name="Friendly AI"),
instructions="Be nice to the user",
llm=aws.LLM(model="qwen.qwen3-32b-v1:0"),
tts=cartesia.TTS(),
stt=deepgram.STT(),
turn_detection=smart_turn.TurnDetection(buffer_duration=2.0, confidence_threshold=0.5),
)
The full example is available in example/aws_qwen_example.py
Realtime Audio Usage
Nova Sonic audio realtime STS is also supported:
agent = Agent(
edge=getstream.Edge(),
agent_user=User(name="Story Teller AI"),
instructions="Tell a story suitable for a 7 year old about a dragon and a princess",
llm=aws.Realtime(),
)
Function Calling
Standard LLM (aws.LLM)
The standard LLM implementation fully supports function calling. Register functions using the @llm.register_function decorator:
from vision_agents.plugins import aws
llm = aws.LLM(
model="qwen.qwen3-32b-v1:0",
region_name="us-east-1"
)
@llm.register_function(
name="get_weather",
description="Get the current weather for a given city"
)
def get_weather(city: str) -> dict:
"""Get weather information for a city."""
return {
"city": city,
"temperature": 72,
"condition": "Sunny"
}
Realtime (aws.Realtime)
The Realtime implementation fully supports function calling with AWS Nova Sonic. Register functions using the @llm.register_function decorator:
from vision_agents.plugins import aws
llm = aws.Realtime(
model="amazon.nova-sonic-v1:0",
region_name="us-east-1"
)
@llm.register_function(
name="get_weather",
description="Get the current weather for a given city"
)
def get_weather(city: str) -> dict:
"""Get weather information for a city."""
return {
"city": city,
"temperature": 72,
"condition": "Sunny"
}
# The function will be automatically called when the model decides to use it
See example/aws_realtime_function_calling_example.py for a complete example.
Running the examples
Create a .env file, or cp .env.example to .env and fill in
STREAM_API_KEY=your_stream_api_key_here
STREAM_API_SECRET=your_stream_api_secret_here
AWS_BEARER_TOKEN_BEDROCK=
AWS_ACCESS_KEY_ID=
AWS_SECRET_ACCESS_KEY=
FAL_KEY=
CARTESIA_API_KEY=
DEEPGRAM_API_KEY=
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 vision_agents_plugins_aws-0.2.0.tar.gz.
File metadata
- Download URL: vision_agents_plugins_aws-0.2.0.tar.gz
- Upload date:
- Size: 15.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2ad80fc3a83be122360eed6d50c90028eea1cf7ff9aed4543e53f5f3163266dd
|
|
| MD5 |
ac0b9ac5fc1a1fb95b02bacfda41872e
|
|
| BLAKE2b-256 |
b6b32f711101d97488b24f794b1d29519172ff71900f6eccf5fc768af2330417
|
File details
Details for the file vision_agents_plugins_aws-0.2.0-py3-none-any.whl.
File metadata
- Download URL: vision_agents_plugins_aws-0.2.0-py3-none-any.whl
- Upload date:
- Size: 21.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ba0855525115c78a3317291ed4b6803456f8964d268acc673bff690400586fa0
|
|
| MD5 |
355aaa2887c4783138cbcca4f5ce523b
|
|
| BLAKE2b-256 |
e5681abcc6e35c7da195bac684901c3f4bcdc10f29b3c5eff5475db0933a641f
|