Skip to content

Commit

Permalink
export ChatPromptBuilder and add it to pydoc config (#7796)
Browse files Browse the repository at this point in the history
  • Loading branch information
anakin87 authored Jun 4, 2024
1 parent 26b263e commit 55a657b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/pydoc/config/builders_api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ loaders:
"prompt_builder",
"dynamic_prompt_builder",
"dynamic_chat_prompt_builder",
"chat_prompt_builder",
]
ignore_when_discovered: ["__init__"]
processors:
Expand Down
3 changes: 2 additions & 1 deletion haystack/components/builders/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
# SPDX-License-Identifier: Apache-2.0

from haystack.components.builders.answer_builder import AnswerBuilder
from haystack.components.builders.chat_prompt_builder import ChatPromptBuilder
from haystack.components.builders.dynamic_chat_prompt_builder import DynamicChatPromptBuilder
from haystack.components.builders.dynamic_prompt_builder import DynamicPromptBuilder
from haystack.components.builders.prompt_builder import PromptBuilder

__all__ = ["AnswerBuilder", "PromptBuilder", "DynamicPromptBuilder", "DynamicChatPromptBuilder"]
__all__ = ["AnswerBuilder", "PromptBuilder", "DynamicPromptBuilder", "DynamicChatPromptBuilder", "ChatPromptBuilder"]

0 comments on commit 55a657b

Please sign in to comment.