mirascope icon indicating copy to clipboard operation
mirascope copied to clipboard

Add improved support for chat history message insertion (namely tools) + documentation

Open willbakst opened this issue 9 months ago • 0 comments

Description

Right now users need to manually create the tools even though all of the information is generally already present in the tool. A method like tool.message_param would make this far more convenient (similar to how we can already to response.message.model_dump() for the assistant message.

We may also want to provide additional convenience, something like response.user_message_param, for inserting the user message back in. This one likely needs a little more thought than the tool call message feature.

willbakst avatar May 21 '24 00:05 willbakst