Skip to content

Commit

Permalink
Merge branch 'TransformerOptimus:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
sirajperson authored Jun 11, 2023
2 parents f133780 + e6cf271 commit 2c7ac53
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion superagi/jobs/agent_executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def execute_next_action(self, agent_execution_id):
else:
memory = VectorFactory.get_vector_storage("PineCone", "super-agent-index1", OpenAiEmbedding(model_api_key))
except:
print("Unable to setup the pincone connection...")
print("Unable to setup the pinecone connection...")
memory = None

user_tools = session.query(Tool).filter(Tool.id.in_(parsed_config["tools"])).all()
Expand Down
8 changes: 4 additions & 4 deletions superagi/tools/email/send_email_attachment.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ class SendEmailAttachmentInput(BaseModel):
to: str = Field(..., description="Email Address of the Receiver, default email address is 'example@example.com'")
subject: str = Field(..., description="Subject of the Email to be sent")
body: str = Field(..., description="Email Body to be sent")
filename: str = Field(..., description="Name of the file to be sent as an Attachement with Email")
filename: str = Field(..., description="Name of the file to be sent as an Attachment with Email")


class SendEmailAttachmentTool(BaseTool):
name: str = "Send Email with Attachement"
name: str = "Send Email with Attachment"
args_schema: Type[BaseModel] = SendEmailAttachmentInput
description: str = "Send an Email with a file attached to it"

Expand All @@ -32,9 +32,9 @@ def _execute(self, to: str, subject: str, body: str, filename: str) -> str:
base_path = base_path + filename
attachmentpath = base_path
attachment = os.path.basename(attachmentpath)
return self.send_email_with_attachement(to, subject, body, attachmentpath, attachment)
return self.send_email_with_attachment(to, subject, body, attachmentpath, attachment)

def send_email_with_attachement(self, to, subject, body, attachment_path, attachment) -> str:
def send_email_with_attachment(self, to, subject, body, attachment_path, attachment) -> str:
email_sender = get_config('EMAIL_ADDRESS')
email_password = get_config('EMAIL_PASSWORD')
if email_sender == "" or email_sender.isspace():
Expand Down

0 comments on commit 2c7ac53

Please sign in to comment.