Skip to content

Commit 19521cb

Browse files
committed
More doc updates
1 parent 2118f37 commit 19521cb

1 file changed

Lines changed: 5 additions & 15 deletions

File tree

docs/source/building_applications/agent_execution_loop.md

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -76,23 +76,13 @@ agent_config = AgentConfig(
7676
model="Llama3.2-3B-Instruct",
7777
instructions="You are a helpful assistant",
7878
# Enable both RAG and tool usage
79-
tools=[
80-
{
81-
"type": "memory",
82-
"memory_bank_configs": [{
83-
"type": "vector",
84-
"bank_id": "my_docs"
85-
}],
86-
"max_tokens_in_context": 4096
87-
},
88-
{
89-
"type": "code_interpreter",
90-
"enable_inline_code_execution": True
91-
}
79+
toolgroups=[
80+
{"name": "builtin::rag", "args": {"vector_db_ids": ["my_docs"]}}.
81+
"builtin::code_interpreter",
9282
],
9383
# Configure safety
94-
input_shields=["content_safety"],
95-
output_shields=["content_safety"],
84+
input_shields=["llama_guard"],
85+
output_shields=["llama_guard"],
9686
# Control the inference loop
9787
max_infer_iters=5,
9888
sampling_params={

0 commit comments

Comments
 (0)