-
When defining a function, an explanation of its functionality is written in English for the model to use to determine when the function should be called. I think it would be beneficial, if the class FunctionCall also contains the English description the function has. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hmm, could you post a code/pseudocode snippet that shows what the desired behaviour looks like? I'm not sure I understand the question. |
Beta Was this translation helpful? Give feedback.
Oh, I think I see. You can access a mapping of function names to
AIFunction
objects through theKani.functions
attribute.For example, if you wanted to print the docstring of a function when the AI requested to call it, you could do: