Hello !! I have a question about strict mode in f...
# agents
m
Hello !! I have a question about strict mode in function calling (tool calls) do you always have strict mode set to true ? https://platform.openai.com/docs/guides/function-calling#strict-mode can we set it to false ? please tell me more how you treat the tool object. thank you in advance
l
Good question, I see it exposed for JS agents under https://github.com/livekit/agents-js/pull/816/files but unless I'm misunderstanding things (which I may well be), it looks like Python hardcodes it to True and doesn't expose it on the interface: https://github.com/livekit/agents/blob/main/livekit-agents/livekit/agents/inference/llm.py#L236. @bitter-ghost-46918 is that correct?
🙌 1
b
Yes, python defaults to True and didn't expose it. JS is defaulted to False mainly for compatibility. cc @jolly-air-155
✅ 2
m
Thanks @lively-winter-88668 and @bitter-ghost-46918, I am using python so its always taking it as true on your side even if it set it to false. I'm curious, will you later make it possible for us to set it as false in python?