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

Fix #719

Merged
merged 10 commits into from
Oct 17, 2024
Merged

Fix #719

merged 10 commits into from
Oct 17, 2024

Conversation

kaavee315
Copy link
Contributor

@kaavee315 kaavee315 commented Oct 17, 2024

Important

Adds RealtimeAgent for real-time OpenAI API interaction and enhances toolset.py with real-time tool wrapping.

  • New Feature:
    • Adds RealtimeAgent in main.py for real-time audio and text interaction with OpenAI API.
    • RealtimeAgent manages audio input/output, WebSocket connection, and function calls for emails and Slack messages.
  • Toolset Enhancements:
    • Adds get_realtime_tools() in toolset.py to wrap tools as OpenAI ChatCompletionToolParam objects for real-time use.
  • Misc:
    • Implements event handling for Gmail and Slack messages in main.py.

This description was created by Ellipsis for 74e3413. It will automatically update as commits are pushed.

Copy link

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❌ Changes requested. Reviewed everything up to 6ddcc53 in 33 seconds

More details
  • Looked at 562 lines of code in 2 files
  • Skipped 0 files when reviewing.
  • Skipped posting 1 drafted comments based on config settings.
1. python/examples/advanced_agents/Siri_tools/openai/main.py:332
  • Draft comment:
    Remove the print(function_call) statement to clean up the code.
  • Reason this comment was not posted:
    Confidence changes required: 50%
    The print(function_call) statement in handle_function_call is unnecessary and should be removed to clean up the code.

Workflow ID: wflow_GJzB59FreOVbBi1S


Want Ellipsis to fix these issues? Tag @ellipsis-dev in a comment. You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

tags: t.Optional[t.List[TagType]] = None,
) -> t.List[t.Dict]:
"""
Get composio tools wrapped as OpenAI `ChatCompletionToolParam` objects.
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The get_realtime_tools function is documented to return ChatCompletionToolParam objects but returns a list of dictionaries instead. Consider updating the return type or the function implementation to match the documentation.

context = f"New email from {sender} with subject: {subject}"
asyncio.run(agent.handle_event(context))

def get_slack_channel_name(channel_id):
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider adding exception handling for the execute_action calls in get_slack_channel_name, get_slack_user_name, and get_current_user_info to handle potential API call failures.

Copy link

github-actions bot commented Oct 17, 2024

This comment was generated by github-actions[bot]!

JS SDK Coverage Report

📊 Coverage report for JS SDK can be found at the following URL:
https://pub-92e668239ab84bfd80ee07d61e9d2f40.r2.dev/coverage-11378114153/coverage/index.html

📁 Test report folder can be found at the following URL:
https://pub-92e668239ab84bfd80ee07d61e9d2f40.r2.dev/html-report-11378114153/html-report/report.html

Copy link

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Looks good to me! Incremental review on 74e3413 in 15 seconds

More details
  • Looked at 35 lines of code in 1 files
  • Skipped 0 files when reviewing.
  • Skipped posting 1 drafted comments based on config settings.
1. python/plugins/openai/composio_openai/toolset.py:142
  • Draft comment:
    The docstring incorrectly states that the function returns ChatCompletionToolParam objects. It should be updated to reflect that it returns a list of dictionaries.
  • Reason this comment was not posted:
    Comment was on unchanged code.

Workflow ID: wflow_hmPzBaFf7ee1GC35


You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

@kaavee315 kaavee315 merged commit 5d1aa49 into master Oct 17, 2024
6 of 7 checks passed
@kaavee315 kaavee315 deleted the kaavee/siri_gmail_slack branch October 17, 2024 04:31
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

Successfully merging this pull request may close these issues.

2 participants