However, I am not able to construct an instance of Tools because the fields are private and nor is there any Tools::new() function to use nor any ToolBuilder one can use.
To Reproduce
Try to make an instance of Tool from a different crate using this crate.
Describe the bug
Recently,
functions
field was marked as deprecated and we are told to usetools
instead.https://github.com/dongri/openai-api-rs/pull/54
However, I am not able to construct an instance of
Tools
because the fields are private and nor is there anyTools::new()
function to use nor anyToolBuilder
one can use.To Reproduce
Try to make an instance of
Tool
from a different crate using this crate.Code snippets
Can't do this because the fields in
Tool
are private.OS
Any
Rust version
cargo 1.75.0
Library version
openai-api-rs v2.1.7