File tree Expand file tree Collapse file tree
langfuse/api/resources/prompts/types Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1414 CreatePromptRequest_Chat ,
1515 CreatePromptRequest_Text ,
1616)
17-
1817from .create_text_prompt_request import CreateTextPromptRequest
1918from .placeholder_message import PlaceholderMessage
2019from .prompt import Prompt , Prompt_Chat , Prompt_Text
Original file line number Diff line number Diff line change 66from ....core .datetime_utils import serialize_datetime
77from ....core .pydantic_utilities import deep_union_pydantic_dicts , pydantic_v1
88from .base_prompt import BasePrompt
9- from .chat_message import ChatMessage
9+ from .chat_message_with_placeholders import ChatMessageWithPlaceholders
1010
1111
1212class ChatPrompt (BasePrompt ):
13- prompt : typing .List [ChatMessage ]
13+ prompt : typing .List [ChatMessageWithPlaceholders ]
1414
1515 def json (self , ** kwargs : typing .Any ) -> str :
1616 kwargs_with_defaults : typing .Any = {
Original file line number Diff line number Diff line change 77
88from ....core .datetime_utils import serialize_datetime
99from ....core .pydantic_utilities import deep_union_pydantic_dicts , pydantic_v1
10- from .chat_message import ChatMessage
10+ from .chat_message_with_placeholders import ChatMessageWithPlaceholders
1111
1212
1313class Prompt_Chat (pydantic_v1 .BaseModel ):
14- prompt : typing .List [ChatMessage ]
14+ prompt : typing .List [ChatMessageWithPlaceholders ]
1515 name : str
1616 version : int
1717 config : typing .Any
You can’t perform that action at this time.
0 commit comments