Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Find a generic way to let a tool using LLM agent know which module a function is from #258

Open
mengerj opened this issue Dec 13, 2024 · 0 comments

Comments

@mengerj
Copy link
Contributor

mengerj commented Dec 13, 2024

When passing tools to bind_tools() with pydantic classes, the method name can be included as 'title', which is ensured by using pydantics create_model method to build the pydantic class (See #245).
But when trying to pass the method name, including the module it is called from, eg. io.read_h5ad, there is an error thrown by open_ais bind_tools method. It seems, "." can not be included in the function name.

Generally it would be good to ensure the module is also returned by the LLM so the user can directly use a function.

Ideas:

  • Add it to the functions description by passing the names as strings to create_model(doc="This is a function that does xyz, it is callable from package.modulename.submodule ...")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant