llama-index-llms-bedrock-converse 0.9.0__tar.gz → 0.9.1__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.
- {llama_index_llms_bedrock_converse-0.9.0 → llama_index_llms_bedrock_converse-0.9.1}/PKG-INFO +1 -1
- {llama_index_llms_bedrock_converse-0.9.0 → llama_index_llms_bedrock_converse-0.9.1}/llama_index/llms/bedrock_converse/utils.py +7 -6
- {llama_index_llms_bedrock_converse-0.9.0 → llama_index_llms_bedrock_converse-0.9.1}/pyproject.toml +1 -1
- {llama_index_llms_bedrock_converse-0.9.0 → llama_index_llms_bedrock_converse-0.9.1}/.gitignore +0 -0
- {llama_index_llms_bedrock_converse-0.9.0 → llama_index_llms_bedrock_converse-0.9.1}/LICENSE +0 -0
- {llama_index_llms_bedrock_converse-0.9.0 → llama_index_llms_bedrock_converse-0.9.1}/README.md +0 -0
- {llama_index_llms_bedrock_converse-0.9.0 → llama_index_llms_bedrock_converse-0.9.1}/llama_index/llms/bedrock_converse/__init__.py +0 -0
- {llama_index_llms_bedrock_converse-0.9.0 → llama_index_llms_bedrock_converse-0.9.1}/llama_index/llms/bedrock_converse/base.py +0 -0
|
@@ -375,8 +375,10 @@ def tools_to_converse_tools(
|
|
|
375
375
|
"inputSchema": {"json": tool.metadata.get_parameters_dict()},
|
|
376
376
|
}
|
|
377
377
|
converse_tools.append({"toolSpec": tool_dict})
|
|
378
|
-
|
|
379
|
-
|
|
378
|
+
|
|
379
|
+
if tool_caching:
|
|
380
|
+
converse_tools.append({"cachePoint": {"type": "default"}})
|
|
381
|
+
|
|
380
382
|
return {
|
|
381
383
|
"tools": converse_tools,
|
|
382
384
|
# https://docs.aws.amazon.com/bedrock/latest/APIReference/API_runtime_ToolChoice.html
|
|
@@ -468,18 +470,17 @@ def converse_with_retry(
|
|
|
468
470
|
if system_prompt_caching:
|
|
469
471
|
system_messages.append({"cachePoint": {"type": "default"}})
|
|
470
472
|
converse_kwargs["system"] = system_messages
|
|
473
|
+
|
|
471
474
|
if tool_config := kwargs.get("tools"):
|
|
472
475
|
converse_kwargs["toolConfig"] = tool_config
|
|
473
|
-
|
|
474
|
-
converse_kwargs["toolConfig"]["tools"].append(
|
|
475
|
-
{"cachePoint": {"type": "default"}}
|
|
476
|
-
)
|
|
476
|
+
|
|
477
477
|
if guardrail_identifier and guardrail_version:
|
|
478
478
|
converse_kwargs["guardrailConfig"] = {}
|
|
479
479
|
converse_kwargs["guardrailConfig"]["guardrailIdentifier"] = guardrail_identifier
|
|
480
480
|
converse_kwargs["guardrailConfig"]["guardrailVersion"] = guardrail_version
|
|
481
481
|
if trace:
|
|
482
482
|
converse_kwargs["guardrailConfig"]["trace"] = trace
|
|
483
|
+
|
|
483
484
|
converse_kwargs = join_two_dicts(
|
|
484
485
|
converse_kwargs,
|
|
485
486
|
{
|
{llama_index_llms_bedrock_converse-0.9.0 → llama_index_llms_bedrock_converse-0.9.1}/pyproject.toml
RENAMED
|
@@ -29,7 +29,7 @@ dev = [
|
|
|
29
29
|
|
|
30
30
|
[project]
|
|
31
31
|
name = "llama-index-llms-bedrock-converse"
|
|
32
|
-
version = "0.9.
|
|
32
|
+
version = "0.9.1"
|
|
33
33
|
description = "llama-index llms bedrock converse integration"
|
|
34
34
|
authors = [{name = "Your Name", email = "you@example.com"}]
|
|
35
35
|
requires-python = ">=3.9,<4.0"
|
{llama_index_llms_bedrock_converse-0.9.0 → llama_index_llms_bedrock_converse-0.9.1}/.gitignore
RENAMED
|
File without changes
|
|
File without changes
|
{llama_index_llms_bedrock_converse-0.9.0 → llama_index_llms_bedrock_converse-0.9.1}/README.md
RENAMED
|
File without changes
|
|
File without changes
|