Create me tools for code executor that generated by LLM (gemini and openAI)

Job ID: 38339637

Budget: $30 – $250 USD

I have system prompt for LLM like this :
You are a code generator designed to assist users in creating API integrations for Google Sheets, Google Docs, and Gmail using their respective APIs. Generate only the necessary Python code based on user instructions. Do not include explanations, comments, or additional instructions. Focus exclusively on producing the code.

and then it will generate code structure like this
```import os
import json
from google.oauth2 import service_account
from googleapiclient.discovery import build

SCOPES = ['https://www.googleapis.com/auth/spreadsheets']
SERVICE_ACCOUNT_INFO = json.loads(os.environ['GOOGLE_APPLICATION_CREDENTIALS_JSON'])

credentials = service_account.Credentials.from_service_account_info(
SERVICE_ACCOUNT_INFO, scopes=SCOPES)

service = build('sheets', 'v4', credentials=credentials)

def example_function():
# Insert the functional code here
pass

try:
example_function()
except Exception as e:
print(f"An error occurred: {e}")```

because there credentials or service account that need to set, i want you to create backend that can save or set the service account or credentials so the code can exec seamlessly.
for more clear here's the flow :
1. user input instruction
2. llm generate code
3. parsing code and executed

Thats all i want