Skip to content

Commit

Permalink
starts tests scaffolding
Browse files Browse the repository at this point in the history
  • Loading branch information
ajar98 committed Aug 10, 2023
1 parent 8f9f02f commit 38e81b8
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions tests/streaming/models/test_transcript.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@

import asyncio
from vocode.streaming.models.actions import ActionInput
from vocode.streaming.models.transcript import ActionStart, ActionFinish
from vocode.streaming.models.events import Sender
from vocode.streaming.models.transcript import Message
from vocode.streaming.models.transcript import Transcript
from vocode.streaming.action.nylas_send_email import NylasSendEmailActionConfig, NylasSendEmailParameters


def test_transcript_to_string():
transcript = Transcript(
event_logs=[
Message(
sender=Sender.BOT,
text="What up"
),
Message(
sender=Sender.HUMAN,
text="Send me an email you bot. My email is [email protected]"
),
ActionStart(
action_type="action_nylas_send_email",
action_input=TwilioPhoneCallActionOutput(
action_config=NylasSendEmailActionConfig(),
conversation_id="123",
params=NylasSendEmailParameters(
recipient_email="[email protected]",
body="What up",
subject="This is the bot"
),
user_message_tracker=asyncio.Event()
),
),
ActionFinish(
action_type="action_nylas_send_email",
action_output=ActionOutput(

)
)
]
)

0 comments on commit 38e81b8

Please sign in to comment.