Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] RunnableRails - passthough chat_history over guardrails #747

Open
snassimr opened this issue Sep 12, 2024 · 0 comments
Open

[Question] RunnableRails - passthough chat_history over guardrails #747

snassimr opened this issue Sep 12, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@snassimr
Copy link

Hi ,

I am using Langchain and need to pass a chat_history from prompt to subchain1 .

guardrails = RunnableRails(config)

chain = prompt | guardrails | subchain1

chain_with_history = RunnableWithMessageHistory(chain,
get_session_history,
input_messages_key='user',
history_messages_key='history',
output_messages_key="output",)

response = chain_with_history.invoke(
{'user': user_message},
config=config,
)

How it's possible in guardrials ?

I can't find it at here

@Pouyanpi Pouyanpi self-assigned this Sep 17, 2024
@Pouyanpi Pouyanpi added the status: needs triage New issues that have not yet been reviewed or categorized. label Sep 17, 2024
@Pouyanpi Pouyanpi added bug Something isn't working and removed status: needs triage New issues that have not yet been reviewed or categorized. labels Nov 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants