-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Let the tool decide if the chain should be called again with the return value #168
Comments
A - #[AsTool(name: 'foo', description: 'returns foo')]
+ #[AsTool(name: 'foo', description: 'returns foo', directReturn: true)] naming to be discussed |
This also conflicts with the possibility of having multiple tool calls. so we would need to require the combination of this setting active with the option on the other hand i'd be more in favor of thinking of a generalized extension point here for intercepting the chain with custom logic. event dispatcher comes to my mind immediatley. |
As discussed we can go with this option and implement something with event dispatcher as a follow up |
okay, not as easy as i thought :D |
In my case I craft a dedicated response like:
and I don't want to feed it back to the LLM for another roundtrip.
That happens here (in Line 55):
llm-chain/src/Chain/ToolBox/ChainProcessor.php
Lines 46 to 55 in 8365e13
I think we should not make it configurable like "Tool A will always feed back to the API", because it can depend on runtime. Maybe a
ToolResponse
class as an additional allowed return type?Dummy-code
The text was updated successfully, but these errors were encountered: