Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
🚗 Add Tesla Vehicle Control to AGiXT! 🔌
This PR adds full Tesla vehicle integration to AGiXT, allowing agents to control Tesla vehicles through natural language! Now your AI agents can interact with Tesla vehicles using the official Fleet API.
✨ Highlights
🛡️ Security & Best Practices
🎯 Use Cases
This pull request introduces a new extension for controlling Tesla vehicles via the Fleet API and includes updates to the Single Sign-On (SSO) process for Tesla OAuth authentication. Additionally, environment variables for Tesla OAuth credentials have been added to the Docker configuration files.
Tesla Vehicle Control Extension:
agixt/extensions/tesla.py
: Added a newtesla
class that provides various commands for controlling Tesla vehicles, including locking/unlocking doors, controlling climate settings, managing charging, and sending navigation commands. The extension requires OAuth authentication with Tesla.Tesla OAuth SSO:
agixt/sso/tesla.py
: Implemented theTeslaSSO
class to handle OAuth authentication with Tesla, including obtaining access and refresh tokens, and retrieving user information. Added functions for handling the OAuth flow and generating authorization URLs.Docker Configuration:
docker-compose-dev.yml
: AddedTESLA_CLIENT_ID
andTESLA_CLIENT_SECRET
environment variables to support Tesla OAuth authentication in the development environment.docker-compose.yml
: AddedTESLA_CLIENT_ID
andTESLA_CLIENT_SECRET
environment variables to support Tesla OAuth authentication in the production environment.