a
    ”˜ëjs  ã                Z   @   sü  U d Z ddddddddd	d
dddddddddddddddddddddd d!d"d#d$d%d&d'd(d)d*d+d,d-d.d/d0d)d1d2d3d4d5d6d7d8d9d:d;d<d=d>d?d@dAdBdCdDdEdFdGdHdIdJdKdLdMdNdOdPdQdRdSdTdUdVdWdXdYœYZeeedZf eedZf f ed[< ddddddd\d]œZeeedZf eedZf f ed^< ddddddddd	dddddddddddddddd d!d"d#d$d&d'd2d3d4d5d6d7d8dAdBdCdDdEdFdGdHdIdKdMdNdOdPdQdRdSdTdUdVd_œ:ZeeedZf eedZf f ed`< dddddd3dd5dd4dd6d	d7ddad1d+dadbœZeeedZf eedZf f edc< ddS )ea#  Serialization mapping.

This file contains a mapping between the `lc_namespace` path for a given
subclass that implements from `Serializable` to the namespace
where that class is actually located.

This mapping helps maintain the ability to serialize and deserialize
well-known LangChain objects even if they are moved around in the codebase
across different LangChain versions.

For example, the code for the `AIMessage` class is located in
`langchain_core.messages.ai.AIMessage`. This message is associated with the
`lc_namespace` of `["langchain", "schema", "messages", "AIMessage"]`,
because this code was originally in `langchain.schema.messages.AIMessage`.

The mapping allows us to deserialize an `AIMessage` created with an older
version of LangChain where the code was in a different location.
©Úlangchain_coreÚmessagesÚaiÚ	AIMessage©r   r   r   ÚAIMessageChunk©r   r   ÚbaseÚBaseMessage©r   r   r	   ÚBaseMessageChunk©r   r   ÚchatÚChatMessage©r   r   ÚfunctionÚFunctionMessage©r   r   ÚhumanÚHumanMessage©r   r   ÚsystemÚSystemMessage©r   r   ÚtoolÚToolMessage)r   r   ÚmodifierÚRemoveMessage©r   ÚagentsÚAgentAction©r   r   ÚAgentFinish©r   Úpromptsr	   ÚBasePromptTemplate©Ú	langchainZchainsZllmZLLMChain©r   r$   ÚpromptÚPromptTemplate©r   r$   r   ÚMessagesPlaceholder)Úlangchain_openaiÚllmsr	   ÚOpenAI©r   r$   r   ÚChatPromptTemplate©r   r$   r   ÚHumanMessagePromptTemplate©r   r$   r   ÚSystemMessagePromptTemplate©r   r$   ÚimageÚImagePromptTemplate©r   r   ÚAgentActionMessageLog)r'   r   Úoutput_parsersZtoolsÚToolAgentAction©r   r$   r   ÚBaseMessagePromptTemplate©r   ÚoutputsÚchat_generationÚChatGeneration©r   r@   Ú
generationÚ
Generation©r   Z	documentsr	   ÚDocument©r'   r;   ZfixZOutputFixingParser©r   r$   r   ÚAIMessagePromptTemplate©r'   r;   ÚregexZRegexParser©r   Ú	runnablesÚconfigurableÚDynamicRunnable©r   Úprompt_valuesÚPromptValue©r   rN   r	   ÚRunnableBinding©r   rN   ÚbranchÚRunnableBranch©r   rN   Z	fallbacksÚRunnableWithFallbacks©r   r;   ÚstringÚStrOutputParser)r-   Úchat_modelsr	   Ú
ChatOpenAI©r   r;   ÚlistÚCommaSeparatedListOutputParser©r   rN   r	   ÚRunnableParallel)r-   r^   ÚazureÚAzureChatOpenAI)Úlangchain_awsr^   ÚbedrockÚChatBedrock)Zlangchain_anthropicr^   ÚChatAnthropic©Zlangchain_groqr^   ÚChatGroq©Zlangchain_xair^   ZChatXAI)Úlangchain_fireworksr^   ÚChatFireworks©r'   r^   Úgoogle_palmZChatGooglePalm)Zlangchain_google_vertexair^   ÚChatVertexAI)Zlangchain_mistralair^   ÚChatMistralAI©Zlangchain_google_genair^   ÚChatGoogleGenerativeAI©r   r@   rA   ÚChatGenerationChunk©r   r   r   ÚChatMessageChunk©r   r   r   ÚHumanMessageChunk©r   r   r   ÚFunctionMessageChunk©r   r   r   ÚSystemMessageChunk©r   r   r   ÚToolMessageChunk©r   r@   rD   ÚGenerationChunk©r'   r.   ÚopenaiZ
BaseOpenAI)rg   r.   rh   Z
BedrockLLM)rn   r.   Ú	Fireworks©r'   r.   rq   Z
GooglePalm)r-   r.   re   ÚAzureOpenAI©r'   r.   Z	replicateZ	Replicate)Zlangchain_vertexair.   ÚVertexAI©r'   r;   Ú	combiningZCombiningOutputParser©r   r$   r   ÚBaseChatPromptTemplate©r   r$   r   ÚChatMessagePromptTemplate©r   r$   Úfew_shot_with_templatesÚFewShotPromptWithTemplates©r   r$   ÚpipelineÚPipelinePromptTemplate©r   r$   r\   ÚStringPromptTemplate©r   rR   ÚStringPromptValue©r   r$   r   ÚBaseStringMessagePromptTemplate©r   rR   ÚChatPromptValue©r   rR   ÚChatPromptValueConcrete)r'   rN   ZhubÚHubRunnable©r   rN   r	   ÚRunnableBindingBase)r'   rN   Zopenai_functionsÚOpenAIFunctionsRouter©r   rN   ZrouterÚRouterRunnable©r   rN   ÚpassthroughÚRunnablePassthrough©r   rN   r	   ÚRunnableSequence©r   rN   r	   ÚRunnableEach©r   rN   r	   ÚRunnableEachBase©r   rN   rO   Ú RunnableConfigurableAlternatives©r   rN   rO   ÚRunnableConfigurableFields©r   rN   ÚhistoryÚRunnableWithMessageHistory©r   rN   r¨   ÚRunnableAssign©r   rN   ÚretryÚRunnableRetry©r   r$   Z
structuredZStructuredPrompt)r   r$   ÚdictZDictPromptTemplate)Y)r'   Úschemar   r   )r'   r¾   r   r   )r'   r¾   r   r
   )r'   r¾   r   r   )r'   r¾   r   r   )r'   r¾   r   r   )r'   r¾   r   r   )r'   r¾   r   r   )r'   r¾   r   r   )r'   r¾   r   r   )r'   r¾   Úagentr    )r'   r¾   r¿   r"   )r'   r¾   Úprompt_templater%   r&   )r'   r$   r)   r*   )r'   r$   r   r,   )r'   r.   r…   r/   )r'   r$   r   r1   )r'   r$   r   r3   )r'   r$   r   r5   )r'   r$   r7   r8   )r'   r¾   r¿   r:   )r'   r¾   r¿   r<   )r'   r$   r   r>   )r'   r¾   ÚoutputrB   )r'   r¾   rÁ   rE   )r'   r¾   ÚdocumentrG   rH   )r'   r$   r   rJ   rK   )r'   r¾   ÚrunnablerP   )r'   r¾   r)   rS   )r'   r¾   rÃ   rU   )r'   r¾   rÃ   rX   )r'   r¾   rÃ   rZ   )r'   r¾   Zoutput_parserr]   )r'   r^   r…   r_   )r'   r;   ra   rb   )r'   r¾   rÃ   rd   )r'   r^   Zazure_openairf   ©r'   r^   rh   ZBedrockChat)r'   r^   Z	anthropicrj   rk   rm   )r'   r^   Ú	fireworksro   rp   )r'   r^   Úvertexairr   )r'   r^   Z	mistralairs   ©r'   r^   rh   ri   rt   )r'   r¾   rÁ   rw   )r'   r¾   r   ry   )r'   r¾   r   r{   )r'   r¾   r   r}   )r'   r¾   r   r   )r'   r¾   r   r�   )r'   r¾   rÁ   rƒ   r„   )r'   r.   rh   ZBedrock)r'   r.   rÅ   r†   r‡   )r'   r.   r…   rˆ   r‰   )r'   r.   rÆ   rŠ   r‹   )r'   r¾   rÀ   rŽ   )r'   r$   r   r�   )r'   r$   r’   r“   )r'   r$   r•   r–   )r'   r$   r	   r˜   )r'   r$   r	   rš   )r'   r$   r   rœ   )r'   r$   r   rž   )r'   r$   r   r    )r'   r¾   rÃ   r¡   )r'   r¾   rÃ   r£   )r'   r¾   rÃ   r¤   )r'   r¾   rÃ   r¦   )r'   r¾   rÃ   r©   )r'   r¾   rÃ   r«   )r'   r¾   rÃ   r­   )r'   r¾   rÃ   r¯   )r'   r¾   rÃ   r±   )r'   r¾   rÃ   r³   )r'   r¾   rÃ   r¶   )r'   r¾   rÃ   r¸   )r'   r¾   rÃ   r»   r¼   )r   r$   ÚmessageZ_DictMessagePromptTemplate.ÚSERIALIZABLE_MAPPING)r'   r   r;   Zopenai_toolsÚOpenAIToolAgentAction))r'   r¾   r   )r'   r¾   r   )r'   r¾   r   )r'   r¾   r   )r'   r¾   r   )r'   r¾   rÀ   r8   )r'   r¾   r¿   rÊ   Ú_OG_SERIALIZABLE_MAPPING):r   r   r   r   r   r   r   r   r   r   r!   r#   r(   r+   r0   r2   r4   r9   r=   r?   rC   rF   rI   rM   rQ   rT   rV   rY   r[   r`   rc   rv   rx   rz   r|   r~   r€   r‚   r�   r�   r‘   r”   r—   r™   r›   r�   rŸ   r¢   r¥   r§   rª   r¬   r®   r°   r²   r´   r·   r¹   ÚOLD_CORE_NAMESPACES_MAPPING)rg   r^   ri   ))r   r   r   )r   r   r   )r   r   r
   )r   r   r   )r   r   r   )r   r   ry   )r   r   r   )r   r   r}   )r   r   r   )r   r   r{   )r   r   r   )r   r   r   )r   r   r   )r   r   r�   r6   rÇ   )r'   r^   Zgoogle_genairu   )r'   r^   Zgroqrl   rÄ   Ú_JS_SERIALIZABLE_MAPPINGN)	Ú__doc__rÉ   r½   ÚtupleÚstrÚ__annotations__rË   rÌ   rÍ   © rÒ   rÒ   úZ/mnt/bigstor/www/usecases/.venv/lib/python3.9/site-packages/langchain_core/load/mapping.pyÚ<module>   sz  € € € € þ&    Û&1€ € ¦&  e–