File tree 2 files changed +5
-1
lines changed
2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ llm_chain:
50
50
platform : ' llm_chain.platform.anthropic'
51
51
model :
52
52
name : ' Claude'
53
- tools : # Unconfigured all tools are injected into the chain, use "[]" to have no tools.
53
+ tools : # Unconfigured all tools are injected into the chain, use "[]" or "false" to have no tools.
54
54
- ' PhpLlm\LlmChain\Chain\ToolBox\Tool\Wikipedia'
55
55
store :
56
56
# also azure_search, mongodb and pinecone are supported as store type
Original file line number Diff line number Diff line change @@ -64,6 +64,10 @@ public function getConfigTreeBuilder(): TreeBuilder
64
64
->end ()
65
65
->end ()
66
66
->arrayNode ('tools ' )
67
+ ->beforeNormalization ()
68
+ ->ifTrue (fn ($ v ) => false === $ v )
69
+ ->then (fn () => [])
70
+ ->end ()
67
71
->scalarPrototype ()->end ()
68
72
->end ()
69
73
->end ()
You can’t perform that action at this time.
0 commit comments