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

Added Function Call feature and Rendering quations for File Search #6

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

renyuantime
Copy link

Summary

This PR adds the "Function Call" feature to the assistant. It allows users to register and implement custom functions in the OpenAI system.

Changes Implemented:

  1. Function Call Logic:

    • Implemented logic for retrieving function calls from the system.
    • Submitting function call results back to the agents for processing.
    • Displays function call inputs and outputs within the system interface.
  2. File Search Tool Enhancements:

    • Implemented rendering quotations for file search tool.
  3. README Update:

    • Updated the README to document how the function call feature works.

How to Test

  1. Register a new function in OpenAI’s Playground.
  2. Map the function in the function_map attribute.
  3. Implement the function in the EventHandler class.

Related Issues:

@renyuantime
Copy link
Author

Hi @willydouhard, could you review my pull request? I added function call feature.

@rajavemuri
Copy link

Hi @renyuantime thanks for this. It was really helpful. I see it is missing handling or error in the on_event. Maybe handling thread.run.step.failed and thread.run.failed events and raising an error would be useful

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants