Skip to content

Commit 2a4304a

Browse files
committed
push
1 parent b6fc42c commit 2a4304a

2 files changed

Lines changed: 30 additions & 0 deletions

File tree

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# This file was auto-generated by Fern from our API Definition.
2+
3+
import typing
4+
5+
from ...core import enum
6+
7+
T_Result = typing.TypeVar("T_Result")
8+
9+
10+
class ChatMessageType(enum.StrEnum):
11+
CHATMESSAGE = "chatmessage"
12+
13+
def visit(self, chatmessage: typing.Callable[[], T_Result]) -> T_Result:
14+
if self is ChatMessageType.CHATMESSAGE:
15+
return chatmessage()
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# This file was auto-generated by Fern from our API Definition.
2+
3+
import typing
4+
5+
from ...core import enum
6+
7+
T_Result = typing.TypeVar("T_Result")
8+
9+
10+
class PlaceholderMessageType(enum.StrEnum):
11+
PLACEHOLDER = "placeholder"
12+
13+
def visit(self, placeholder: typing.Callable[[], T_Result]) -> T_Result:
14+
if self is PlaceholderMessageType.PLACEHOLDER:
15+
return placeholder()

0 commit comments

Comments
 (0)