Documentation
¶
Overview ¶
Command function-calling-aws-video is a voice agent whose LLM calls a tool that looks at the user's camera: Claude on AWS Bedrock.
The fetch_user_image tool asks the transport for an image from the user's camera. The image goes into the conversation with the tool's result, so the LLM can describe what it sees. The camera is captured only when the tool asks for an image. Speech-to-text is Deepgram and text-to-speech Cartesia. While the tool runs, the bot says it is checking. The AWS credentials come from the environment, as the AWS SDK reads them.
DEEPGRAM_API_KEY=… CARTESIA_API_KEY=… AWS_ACCESS_KEY_ID=… AWS_SECRET_ACCESS_KEY=… \ go run ./examples/function-calling/function-calling-aws-video
Then open http://localhost:7860, connect with your camera on, and ask what it sees.