Installation
Make sure the Anthropic SDK is installed:Make sure the Voker SDK is installed: Make sure the Anthropic SDK is installed:npm install @anthropic-ai/sdk
Make sure the Voker SDK is installed:
Voker does not currently support Audio, Video, or Image modalities.
Usage
Replace your existing Anthropic import with the Voker-wrapped version, then add the required Voker metadata fields to each call you want to track.
Messages
from anthropic import Anthropic
from voker.ai.provider_anthropic import Anthropic
client = Anthropic()
client.messages.create(
voker_agent="customer-support-agent", # required
voker_session="user-session-1", # required
model="claude-haiku-4-5",
messages=[
{
"role": "user",
"content": "Write a haiku about autumn.",
}
],
max_tokens=1024,
)
Async Messages
from anthropic import AsyncAnthropic
from voker.ai.provider_anthropic import AsyncAnthropic
client = AsyncAnthropic()
await client.messages.create(
voker_agent="customer-support-agent", # required
voker_session="user-session-1", # required
model="claude-haiku-4-5",
messages=[
{
"role": "user",
"content": "Write a haiku about autumn.",
}
],
max_tokens=1024,
)
Beta Messages
from anthropic import Anthropic
from voker.ai.provider_anthropic import Anthropic
client = Anthropic()
client.beta.messages.create(
voker_agent="customer-support-agent", # required
voker_session="user-session-1", # required
model="claude-haiku-4-5",
messages=[
{
"role": "user",
"content": "Write a haiku about autumn.",
}
],
max_tokens=1024,
betas=[], # TODO
)
Async Beta Messages
from anthropic import AsyncAnthropic
from voker.ai.provider_anthropic import AsyncAnthropic
client = AsyncAnthropic()
await client.beta.messages.create(
voker_agent="customer-support-agent", # required
voker_session="user-session-1", # required
model="claude-haiku-4-5",
messages=[
{
"role": "user",
"content": "Write a haiku about autumn.",
}
],
max_tokens=1024,
)
Use voker_agent to identify which agent made the call, and voker_session to tie calls to a specific user session.Messages
import Anthropic from '@anthropic-ai/sdk';
import Anthropic from '@voker/voker/ai/provider-anthropic';
const client = new Anthropic();
await client.messages.create({
vokerAgent: 'customer-support-agent', // required
vokerSession: 'user-session-1', // required
model: 'claude-haiku-4-5',
messages: [
{
role: 'user',
content: 'Write a haiku about autumn.',
},
],
max_tokens: 1024,
});
Beta Messages
import Anthropic from '@anthropic-ai/sdk';
import Anthropic from '@voker/voker/ai/provider-anthropic';
const client = new Anthropic();
await client.beta.messages.create({
vokerAgent: 'customer-support-agent', // required
vokerSession: 'user-session-1', // required
model: 'claude-haiku-4-5',
messages: [
{
role: 'user',
content: 'Write a haiku about autumn.',
},
],
max_tokens: 1024,
betas: [], // TODO
});
Use vokerAgent to identify which agent made the call, and vokerSession to tie calls to a specific user session.
Next steps