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

Nebula AI .NET Integration (Beta) #122

Merged
merged 8 commits into from
Jan 24, 2025
Merged

Nebula AI .NET Integration (Beta) #122

merged 8 commits into from
Jan 24, 2025

Conversation

0xFirekeeper
Copy link
Member

@0xFirekeeper 0xFirekeeper commented Jan 16, 2025

Closes TOOL-3098


PR-Codex overview

This PR introduces a new Thirdweb.AI namespace, implementing various client classes for handling chat and execution functionalities with the Nebula API. It also adds new models for session management, feedback submission, and response handling.

Detailed summary

  • Added FeedbackClient, ChatClient, ExecutionClient, and SessionManager classes.
  • Implemented methods for submitting feedback, sending chat messages, executing commands, and managing sessions.
  • Created new data models: ResponseModel<T>, AgentAction, ChatMessage, ChatParamsMultiMessages, ChatParamsSingleMessage, Feedback, FeedbackParams, Session, CreateSessionParams, UpdateSessionParams, and SessionDeleteResponse.
  • Updated ThirdwebNebula class to include chat and execution functionalities.
  • Enhanced Program.cs with examples of using the new AI features.
  • Added unit tests for session creation, chat responses, and execution handling in Thirdweb.AI.Tests.

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

Copy link

linear bot commented Jan 16, 2025

@0xFirekeeper 0xFirekeeper self-assigned this Jan 16, 2025
@codecov-commenter
Copy link

codecov-commenter commented Jan 24, 2025

Codecov Report

Attention: Patch coverage is 63.91185% with 131 lines in your changes missing coverage. Please review.

Project coverage is 75.88%. Comparing base (a6afc39) to head (fd20217).

Files with missing lines Patch % Lines
Thirdweb/Thirdweb.AI/ThirdwebNebula.cs 68.22% 46 Missing and 15 partials ⚠️
Thirdweb/Thirdweb.AI/SessionManager.cs 26.19% 31 Missing ⚠️
Thirdweb/Thirdweb.AI/ThirdwebNebula.Types.cs 69.13% 25 Missing ⚠️
Thirdweb/Thirdweb.AI/ExecutionClient.cs 61.11% 7 Missing ⚠️
Thirdweb/Thirdweb.AI/FeedbackClient.cs 36.36% 7 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #122      +/-   ##
==========================================
- Coverage   76.86%   75.88%   -0.98%     
==========================================
  Files          28       34       +6     
  Lines        4863     5226     +363     
  Branches      666      690      +24     
==========================================
+ Hits         3738     3966     +228     
- Misses        953     1072     +119     
- Partials      172      188      +16     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@0xFirekeeper 0xFirekeeper merged commit 1e59bf6 into main Jan 24, 2025
1 check passed
@0xFirekeeper 0xFirekeeper deleted the firekeeper/nebula branch January 24, 2025 21:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants