You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As suggested here, since graph are effectively immutable / not customizable (node logic and graph edge config are coupled), it's best to make node implementations very light and use them to call logic contained in external functions, so that the logic can be re-used in other graph implementations, and also tested/used outside of a graph/node context.
The current Graph Agent implementation is basically an immutable black box and contains a lot of logic within its nodes that would be valuable to be reused or extended for custom agent implementations, but currently cannot be.
Like these components for example could be extracted into reusable functions so they can be used as desired in different contexts to build custom agents:
dynamic system prompt construction
making requests to model
parsing model response into tool call actions
handling/executing tool call actions and returning responses
I'm happy to have a go at doing this, just wanted to get some feedback/thoughts first!
The text was updated successfully, but these errors were encountered:
Description
As suggested here, since graph are effectively immutable / not customizable (node logic and graph edge config are coupled), it's best to make node implementations very light and use them to call logic contained in external functions, so that the logic can be re-used in other graph implementations, and also tested/used outside of a graph/node context.
The current Graph Agent implementation is basically an immutable black box and contains a lot of logic within its nodes that would be valuable to be reused or extended for custom agent implementations, but currently cannot be.
Like these components for example could be extracted into reusable functions so they can be used as desired in different contexts to build custom agents:
I'm happy to have a go at doing this, just wanted to get some feedback/thoughts first!
The text was updated successfully, but these errors were encountered: