livekit-plugins-anthropic 1.0.19__tar.gz → 1.0.21__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -166,3 +166,4 @@ node_modules
166
166
 
167
167
  credentials.json
168
168
  pyrightconfig.json
169
+ docs/
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: livekit-plugins-anthropic
3
- Version: 1.0.19
3
+ Version: 1.0.21
4
4
  Summary: Agent Framework plugin for services from Anthropic
5
5
  Project-URL: Documentation, https://docs.livekit.io
6
6
  Project-URL: Website, https://livekit.io/
@@ -18,13 +18,15 @@ Classifier: Topic :: Multimedia :: Sound/Audio
18
18
  Classifier: Topic :: Multimedia :: Video
19
19
  Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
20
20
  Requires-Python: >=3.9.0
21
- Requires-Dist: anthropic>=0.34
22
- Requires-Dist: livekit-agents>=1.0.19
21
+ Requires-Dist: anthropic>=0.41
22
+ Requires-Dist: livekit-agents>=1.0.21
23
23
  Description-Content-Type: text/markdown
24
24
 
25
- # LiveKit Plugins Anthropic
25
+ # Anthropic plugin for LiveKit Agents
26
26
 
27
- Agent Framework plugin for services from Anthropic.
27
+ Support for the Claude family of LLMs from Anthropic.
28
+
29
+ See [https://docs.livekit.io/agents/integrations/llm/anthropic/](https://docs.livekit.io/agents/integrations/llm/anthropic/) for more information.
28
30
 
29
31
  ## Installation
30
32
 
@@ -0,0 +1,15 @@
1
+ # Anthropic plugin for LiveKit Agents
2
+
3
+ Support for the Claude family of LLMs from Anthropic.
4
+
5
+ See [https://docs.livekit.io/agents/integrations/llm/anthropic/](https://docs.livekit.io/agents/integrations/llm/anthropic/) for more information.
6
+
7
+ ## Installation
8
+
9
+ ```bash
10
+ pip install livekit-plugins-anthropic
11
+ ```
12
+
13
+ ## Pre-requisites
14
+
15
+ You'll need an API key from Anthropic. It can be set as an environment variable: `ANTHROPIC_API_KEY`
@@ -12,6 +12,10 @@
12
12
  # See the License for the specific language governing permissions and
13
13
  # limitations under the License.
14
14
 
15
+ """Anthropic plugin for LiveKit Agents
16
+
17
+ See https://docs.livekit.io/agents/integrations/llm/anthropic/ for more information.
18
+ """
15
19
 
16
20
  from .llm import LLM, LLMStream
17
21
  from .log import logger
@@ -182,7 +182,7 @@ class LLM(llm.LLM):
182
182
  self,
183
183
  anthropic_stream=stream,
184
184
  chat_ctx=chat_ctx,
185
- tools=tools,
185
+ tools=tools or [],
186
186
  conn_options=conn_options,
187
187
  )
188
188
 
@@ -194,7 +194,7 @@ class LLMStream(llm.LLMStream):
194
194
  *,
195
195
  anthropic_stream: Awaitable[anthropic.AsyncStream[anthropic.types.RawMessageStreamEvent]],
196
196
  chat_ctx: llm.ChatContext,
197
- tools: list[FunctionTool] | None,
197
+ tools: list[FunctionTool],
198
198
  conn_options: APIConnectOptions,
199
199
  ) -> None:
200
200
  super().__init__(llm, chat_ctx=chat_ctx, tools=tools, conn_options=conn_options)
@@ -12,4 +12,4 @@
12
12
  # See the License for the specific language governing permissions and
13
13
  # limitations under the License.
14
14
 
15
- __version__ = "1.0.19"
15
+ __version__ = "1.0.21"
@@ -22,7 +22,7 @@ classifiers = [
22
22
  "Programming Language :: Python :: 3.10",
23
23
  "Programming Language :: Python :: 3 :: Only",
24
24
  ]
25
- dependencies = ["livekit-agents>=1.0.19", "anthropic>=0.34"]
25
+ dependencies = ["livekit-agents>=1.0.21", "anthropic>=0.41"]
26
26
 
27
27
  [project.urls]
28
28
  Documentation = "https://docs.livekit.io"
@@ -1,13 +0,0 @@
1
- # LiveKit Plugins Anthropic
2
-
3
- Agent Framework plugin for services from Anthropic.
4
-
5
- ## Installation
6
-
7
- ```bash
8
- pip install livekit-plugins-anthropic
9
- ```
10
-
11
- ## Pre-requisites
12
-
13
- You'll need an API key from Anthropic. It can be set as an environment variable: `ANTHROPIC_API_KEY`