Skip to content

Generating documents as a result of a chat #3949

Discussion options

You must be logged in to vote

Hey! It depends on exactly when you would want to create the document, but yes, you could absolutely do this with a tool. You can access the entire messages from any tool call and could perform a generateText or generateObject within the tool call. You could add system instructions to control when the model should run the tool if you want it to be run every x turns etc.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@revopscharlie
Comment options

Answer selected by revopscharlie
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants