Skip to main content

Anthropic/Claude LLM integration for Vision Agents

Project description

Anthropic Plugin for Vision Agents

Anthropic Claude LLM integration for Vision Agents framework with support for streaming, function calling, and conversation memory.

It enables features such as:

  • Streaming responses with Claude models
  • Function calling capabilities for dynamic interactions
  • Automatic conversation history management

Installation

uv add "vision-agents[anthropic]"
# or directly
uv add vision-agents-plugins-anthropic

Usage

Standard LLM

This example shows how to use Claude with TTS and STT services for audio communication via anthropic.LLM() API.

The anthropic.LLM() class uses Anthropic's Messages API under the hood.

from vision_agents.core import User, Agent
from vision_agents.core.agents import AgentLauncher
from vision_agents.plugins import deepgram, getstream, cartesia, smart_turn, anthropic

agent = Agent(
    edge=getstream.Edge(),
    agent_user=User(name="Friendly AI"),
    instructions="Be nice to the user",
    llm=anthropic.LLM("claude-sonnet-4-6"),
    tts=cartesia.TTS(),
    stt=deepgram.STT(),
    turn_detection=smart_turn.TurnDetection(),
)

Function Calling

The LLM API supports function calling, allowing the assistant to invoke custom functions you define.

This enables dynamic interactions like:

  • Database queries
  • API calls to external services
  • File operations
  • Custom business logic
from vision_agents.plugins import anthropic

llm = anthropic.LLM("claude-sonnet-4-6")


@llm.register_function(
    name="get_weather",
    description="Get the current weather for a given city"
)
async 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

Requirements

  • Python 3.10+
  • GetStream account for video calls
  • Anthropic API key

Links

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vision_agents_plugins_anthropic-0.5.8.tar.gz (9.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

vision_agents_plugins_anthropic-0.5.8-py3-none-any.whl (13.6 kB view details)

Uploaded Python 3

File details

Details for the file vision_agents_plugins_anthropic-0.5.8.tar.gz.

File metadata

  • Download URL: vision_agents_plugins_anthropic-0.5.8.tar.gz
  • Upload date:
  • Size: 9.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.6 {"installer":{"name":"uv","version":"0.10.6","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}

File hashes

Hashes for vision_agents_plugins_anthropic-0.5.8.tar.gz
Algorithm Hash digest
SHA256 a20b6622ce99d267115a5a4375f99f0241bb0cc2837f5c803cf11aa830b662d3
MD5 dcb92c46fd59a381575e38ffc2b1fe35
BLAKE2b-256 a5df1590e859d10436c1c367e3de9816495a7b1d682fdeb39662205c33dfc50f

See more details on using hashes here.

File details

Details for the file vision_agents_plugins_anthropic-0.5.8-py3-none-any.whl.

File metadata

  • Download URL: vision_agents_plugins_anthropic-0.5.8-py3-none-any.whl
  • Upload date:
  • Size: 13.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.6 {"installer":{"name":"uv","version":"0.10.6","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}

File hashes

Hashes for vision_agents_plugins_anthropic-0.5.8-py3-none-any.whl
Algorithm Hash digest
SHA256 f924c01e0d870960dfa3d8776b9ba076bdc8ceee1c6873a4169e86f8b568fe60
MD5 dbf2557a26199a15f06dcc39cbff6460
BLAKE2b-256 9695ef9f1967d9e108cc6c6ae1a38cb4bbbf3e26d2d8e6102721b82de4c00ec8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page