File tree Expand file tree Collapse file tree
docs/source/building_applications Expand file tree Collapse file tree Original file line number Diff line number Diff 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 = {
You can’t perform that action at this time.
0 commit comments