add message types
This commit is contained in:
parent
9a0677e88d
commit
7c043ec800
1 changed files with 3 additions and 1 deletions
|
|
@ -1,5 +1,7 @@
|
||||||
from typing import Optional
|
from typing import Optional
|
||||||
from enum import Enum
|
from enum import Enum
|
||||||
|
|
||||||
|
from vocode.models.message import BaseMessage
|
||||||
from .model import TypedModel, BaseModel
|
from .model import TypedModel, BaseModel
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -15,7 +17,7 @@ class AgentType(str, Enum):
|
||||||
|
|
||||||
|
|
||||||
class AgentConfig(TypedModel, type=AgentType.BASE):
|
class AgentConfig(TypedModel, type=AgentType.BASE):
|
||||||
initial_message: Optional[str] = None
|
initial_message: Optional[BaseMessage] = None
|
||||||
generate_responses: bool = True
|
generate_responses: bool = True
|
||||||
allowed_idle_time_seconds: Optional[float] = None
|
allowed_idle_time_seconds: Optional[float] = None
|
||||||
end_conversation_on_goodbye: bool = False
|
end_conversation_on_goodbye: bool = False
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue