open_ai_rust_fn_call_extension

Crates.ioopen_ai_rust_fn_call_extension
lib.rsopen_ai_rust_fn_call_extension
version0.2.17
sourcesrc
created_at2024-08-08 04:36:43.078727
updated_at2024-08-12 10:58:58.01092
descriptionMacros for Open AI function calling to be used with the open_ai_rust crate for syntactic sugar.
homepage
repository
max_upload_size
id1329065
size8,581
(Lenard-0)

documentation

README

open_ai_rust_fn_extensions

Macros for Open AI function calling. Designed specifically to be used with the open_ai_rust crate for syntactic sugar which I also developed.

That crate uses this internally and so you can use it in a far more optimal way through there.

Example: #[function_call("This function changes the light state.")] fn change_light(on: bool, extra_data: Arg) { // Function body }

Becomes this: FUNCTION_CALL FunctionCall { name: "change_light", description: "This function changes the light state.", parameters: ["on: bool", "extra_data: Arg", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", ""] }

I am currently working on this overtime to make it fully comprehensive and impressive.

Commit count: 0

cargo fmt