Skip to content

Commit

Permalink
Merge branch 'master' of github.com:SamparkAI/composio_sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
sohamganatra committed Mar 25, 2024
2 parents 095b17b + 76ee6cd commit bda7747
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 15 deletions.
6 changes: 1 addition & 5 deletions core/composio/composio_cli.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
#!/usr/bin/env python3

import argparse
import json
import os
import sys
import time
from beaupy.spinners import Spinner, BARS, DOTS
from beaupy.spinners import Spinner, DOTS
from rich.console import Console
import termcolor
import requests
from uuid import getnode as get_mac
from .sdk.storage import save_user_connection
from .sdk.core import ComposioCore
Expand Down
5 changes: 1 addition & 4 deletions core/composio/sdk/core.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
import time
from typing import Union
import requests
from pydantic import BaseModel

from .sdk import ConnectionRequest, ConnectedAccount
from .storage import get_user_connection, get_api_key, save_api_key, save_user_connection
from uuid import getnode as get_mac
from .storage import get_user_connection, get_api_key, save_api_key
from .sdk import Composio
from .enums import TestIntegration, Action

Expand Down
8 changes: 2 additions & 6 deletions core/composio/sdk/sdk.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
from enum import Enum
from json import tool
import time
from typing import Optional, Union, Tuple
from numpy import append
import requests
from pydantic import BaseModel, ConfigDict
from sqlalchemy import func
from sympy import false

from .enums import Action, App, TestIntegration
from openai.types.chat.chat_completion import ChatCompletion
Expand Down Expand Up @@ -309,7 +305,7 @@ def get_connection(self, tool_name: str) -> ConnectedAccount:
return account

def handle_tools_calls(
self, tool_calls: ChatCompletion, verbose: bool = false
self, tool_calls: ChatCompletion, verbose: bool = False
) -> list[any]:
output = []
try:
Expand All @@ -331,7 +327,7 @@ def handle_tools_calls(

return output

def handle_run_tool_calls(self, run_object: run, verbose: bool = false):
def handle_run_tool_calls(self, run_object: run, verbose: bool = False):
outputs = []
require_action = run_object.required_action.submit_tool_outputs
try:
Expand Down

0 comments on commit bda7747

Please sign in to comment.