anthropics / anthropic-tools

271 stars 32 forks source link

Function Documentation Support for optional and nested parameters #16

Open Fanjia-Yan opened 9 months ago

Fanjia-Yan commented 9 months ago

Hi Anthropics!

Great work with the function calling support! We want to evaluate the function calling performance of Claude-3 and are wondering:

  1. In the current parsing schema from JSON, there isn't anywhere where we can specify whether the parameters are optional or not. Would this feature be supported in near future? Or we can actually specify in XML format now?
  2. When it comes to dictionary/Map and List/Array parameters. The current schema does not support specifying element types in dictionary or list. In another word, How are we able to formulate function parameters that require nested documentations.

Thank you!

Fanjia