Add Code class to field_typing module

This commit is contained in:
Gabriel Luiz Freitas Almeida 2024-02-22 15:44:26 -03:00
commit c72ee729bf
2 changed files with 6 additions and 0 deletions

View file

@ -13,6 +13,7 @@ from .constants import (
Callable, Callable,
Chain, Chain,
ChatPromptTemplate, ChatPromptTemplate,
Code,
Data, Data,
Document, Document,
Embeddings, Embeddings,
@ -73,4 +74,5 @@ __all__ = [
"Prompt", "Prompt",
"RangeSpec", "RangeSpec",
"TemplateField", "TemplateField",
"Code",
] ]

View file

@ -34,6 +34,10 @@ class Prompt:
pass pass
class Code:
pass
LANGCHAIN_BASE_TYPES = { LANGCHAIN_BASE_TYPES = {
"Chain": Chain, "Chain": Chain,
"AgentExecutor": AgentExecutor, "AgentExecutor": AgentExecutor,