mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-22 22:19:49 +00:00
add code interpreter
This commit is contained in:
parent
0155700ea6
commit
40f35f3a8d
10 changed files with 545 additions and 1 deletions
|
|
@ -84,6 +84,11 @@ def tool_runtime_memory() -> ProviderFixture:
|
|||
"api_key": os.environ["TAVILY_SEARCH_API_KEY"],
|
||||
},
|
||||
),
|
||||
Provider(
|
||||
provider_id="code-interpreter",
|
||||
provider_type="inline::code-interpreter",
|
||||
config={},
|
||||
),
|
||||
],
|
||||
)
|
||||
|
||||
|
|
@ -221,6 +226,20 @@ async def agents_stack(request, inference_model, safety_shield):
|
|||
),
|
||||
provider_id="memory-runtime",
|
||||
),
|
||||
ToolGroupInput(
|
||||
tool_group_id="code_interpreter_group",
|
||||
tool_group=UserDefinedToolGroupDef(
|
||||
tools=[
|
||||
ToolDef(
|
||||
name="code_interpreter",
|
||||
description="code_interpreter",
|
||||
parameters=[],
|
||||
metadata={},
|
||||
)
|
||||
],
|
||||
),
|
||||
provider_id="code-interpreter",
|
||||
),
|
||||
]
|
||||
|
||||
test_stack = await construct_stack_for_test(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue