Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Forethought-Technologies/AutoChain
/ functions
Functions
232 in github.com/Forethought-Technologies/AutoChain
⨍
Functions
232
◇
Types & classes
68
↓ 16 callers
Method
save_message
(self, message: str, message_type: MessageType, **kwargs)
autochain/agent/message.py:74
↓ 14 callers
Method
format_message
(self)
autochain/agent/message.py:90
↓ 14 callers
Method
run
Run the tool.
autochain/tools/base.py:90
↓ 12 callers
Method
load_memory
Return history buffer by key or all memories.
autochain/memory/long_term_memory.py:30
↓ 11 callers
Function
get_args
Adding arguments for running test interactively or setting verbosity
autochain/utils.py:41
↓ 10 callers
Method
from_llm_and_tools
Construct an agent from an LLM and tools.
autochain/agent/base_agent.py:21
↓ 9 callers
Method
generate
( self, messages: List[BaseMessage], functions: Optional[List[Tool]] = None, s
autochain/models/base.py:132
↓ 9 callers
Function
print_with_color
(text: str, color: str)
autochain/utils.py:9
↓ 7 callers
Method
run_all_tests
(self)
autochain/workflows_evaluation/base_test.py:120
↓ 7 callers
Method
run_interactive
(self)
autochain/workflows_evaluation/base_test.py:124
↓ 6 callers
Method
_wait
* Helper function for animation delays, called with `await`. * @param {number} time - Timeout, in ms.
docs/js/termynal.js:212
↓ 6 callers
Method
clear
Clear memory contents.
autochain/memory/long_term_memory.py:67
↓ 6 callers
Method
load_conversation
Return history buffer and format it into a conversational string format.
autochain/memory/long_term_memory.py:45
↓ 6 callers
Method
save_conversation
Save context from this conversation to buffer.
autochain/memory/long_term_memory.py:59
↓ 6 callers
Method
save_memory
(self, key: str, value: Any)
autochain/memory/long_term_memory.py:49
↓ 5 callers
Function
convert_tool_to_dict
Convert tool into function parameter for openai
autochain/models/chat_openai.py:63
↓ 5 callers
Function
create_chain_from_test
Create Chain for running tests Args: tools: list of autochain tools memory: memory store for chain llm: model for age
autochain/workflows_evaluation/test_utils.py:17
↓ 5 callers
Method
encode
(self, texts: List[str])
autochain/models/base.py:140
↓ 5 callers
Function
saveBuffer
()
docs/js/custom.js:22
↓ 4 callers
Method
load_json_output
If the message contains a json response, try to parse it into dictionary
autochain/agent/structs.py:55
↓ 4 callers
Method
load_memory
Get the key's corresponding value from redis.
autochain/memory/redis_memory.py:31
↓ 4 callers
Method
plan
Plan the next step. either taking an action with AgentAction or respond to user with AgentFinish Args: history: entire co
autochain/agent/base_agent.py:40
↓ 4 callers
Method
run
Wrapper for _run function by formatting the input and outputs Args: user_query: user query return_only_outputs: boole
autochain/chain/base_chain.py:75
↓ 3 callers
Method
init
* Initialise the widget, get lines, clear container and start animation.
docs/js/termynal.js:74
↓ 3 callers
Method
is_generation_confident
Check if the generation is confident enough to take action
autochain/agent/base_agent.py:107
↓ 3 callers
Method
load_memory
Return history buffer by key or all memories.
autochain/memory/buffer_memory.py:13
↓ 3 callers
Method
save_conversation
Save the context of this model run to memory.
autochain/memory/base.py:35
↓ 2 callers
Method
_create_table
(self, docs: List[LanceDBDoc])
autochain/tools/internal_search/lancedb_tool.py:48
↓ 2 callers
Method
_docs_to_dataframe
(self, docs: List[LanceDBDoc])
autochain/tools/internal_search/lancedb_tool.py:58
↓ 2 callers
Method
_encode_docs
(self, docs: List[LanceDBDoc])
autochain/tools/internal_search/lancedb_tool.py:51
↓ 2 callers
Function
_format_property
(t: type, arg_desp: str)
autochain/models/chat_openai.py:83
↓ 2 callers
Method
_google_search_results
(self, search_term: str, **kwargs: Any)
autochain/tools/google_search/util.py:59
↓ 2 callers
Method
clear
Clear redis memory.
autochain/memory/redis_memory.py:76
↓ 2 callers
Method
clear
Clear memory contents.
autochain/memory/base.py:41
↓ 2 callers
Method
clear
Clear memory contents.
autochain/memory/buffer_memory.py:37
↓ 2 callers
Function
create_langchain_from_test
Create LangChainWrapperChain by instantiating LangChain agent Args: tools: list of langchain tool agent_type: LangChain Agent
autochain/workflows_evaluation/langchain_eval/langchain_test_utils.py:15
↓ 2 callers
Method
format_output
(self)
autochain/agent/structs.py:45
↓ 2 callers
Method
format_prompt
( template: JSONPromptTemplate, intermediate_steps: List[AgentAction], **kwargs: Any,
autochain/agent/conversational_agent/conversational_agent.py:107
↓ 2 callers
Method
generate
( self, messages: List[BaseMessage], functions: Optional[List[Tool]] = None, s
autochain/models/chat_openai.py:202
↓ 2 callers
Method
generateFinish
()
docs/js/termynal.js:142
↓ 2 callers
Method
generateRestart
()
docs/js/termynal.js:129
↓ 2 callers
Method
generate_with_retry
Use tenacity to retry the completion call.
autochain/models/base.py:121
↓ 2 callers
Function
get_from_dict_or_env
Get a value from a dictionary or an environment variable.
autochain/utils.py:17
↓ 2 callers
Method
get_prompt_template
Create prompt in the style of the zero shot agent. Args: template: message to be injected between prefix and suffix.
autochain/agent/conversational_agent/conversational_agent.py:128
↓ 2 callers
Method
load_conversation
Return chat message history.
autochain/memory/redis_memory.py:42
↓ 2 callers
Method
load_conversation
Return key-value pairs given the text input to the chain.
autochain/memory/base.py:27
↓ 2 callers
Method
load_conversation
Return history buffer and format it into a conversational string format.
autochain/memory/buffer_memory.py:22
↓ 2 callers
Method
load_memory
Return key-value pairs given the text input to the chain.
autochain/memory/base.py:21
↓ 2 callers
Method
query
(self, vector, *args, **kwargs)
test_utils/pinecone_mocks.py:19
↓ 2 callers
Method
save_conversation
Save context from this conversation to redis.
autochain/memory/redis_memory.py:54
↓ 2 callers
Method
save_conversation
Save context from this conversation to buffer.
autochain/memory/buffer_memory.py:29
↓ 2 callers
Method
save_memory
Save the key value pair to redis.
autochain/memory/redis_memory.py:47
↓ 2 callers
Method
save_memory
Save the context of this model run to memory.
autochain/memory/base.py:31
↓ 2 callers
Method
should_answer
Determine if agent should continue to answer user questions based on the latest user query
autochain/agent/conversational_agent/conversational_agent.py:73
↓ 1 callers
Method
_attributes
* Helper function for generating attributes string. * * @param {Object} line - Line data object. * @returns {string} - String of attrib
docs/js/termynal.js:238
↓ 1 callers
Method
_construct_prompt_from_message
(messages: List[BaseMessage])
autochain/models/huggingface_text_generation_model.py:100
↓ 1 callers
Method
_create_llm_result
( self, generation: List[Dict[str, Any]], prompt: str, stop: List[str] )
autochain/models/huggingface_text_generation_model.py:116
↓ 1 callers
Method
_create_llm_result
(self, response: Mapping[str, Any])
autochain/models/chat_openai.py:241
↓ 1 callers
Method
_create_message_dicts
( self, messages: List[BaseMessage], tools: Optional[List[Tool]], stop: Option
autochain/models/chat_openai.py:222
↓ 1 callers
Method
_create_retry_decorator
(self)
autochain/models/base.py:100
↓ 1 callers
Method
_encode
(self, doc: PineconeDoc)
autochain/tools/internal_search/pinecone_tool.py:42
↓ 1 callers
Method
_enforce_stop_tokens
Cut off the text as soon as any stop words occur.
autochain/models/huggingface_text_generation_model.py:107
↓ 1 callers
Method
_parse_input
Convert tool input to pydantic model.
autochain/tools/base.py:58
↓ 1 callers
Method
_run
( self, *args: Any, **kwargs: Any, )
autochain/tools/base.py:83
↓ 1 callers
Method
_run
Run inputs including user query and past conversation with agent and get response back calls take_next_step function to determine wha
autochain/chain/base_chain.py:99
↓ 1 callers
Method
_should_continue
(self, iterations: int, time_elapsed: float)
autochain/chain/base_chain.py:170
↓ 1 callers
Method
_to_args_and_kwargs
(self, tool_input: Union[str, Dict])
autochain/tools/base.py:75
↓ 1 callers
Function
_type_to_string
(t: type)
autochain/models/chat_openai.py:68
↓ 1 callers
Method
addFinish
()
docs/js/termynal.js:162
↓ 1 callers
Method
addRestart
()
docs/js/termynal.js:157
↓ 1 callers
Method
add_docs
(self, docs: List[LanceDBDoc], **kwargs)
autochain/tools/internal_search/lancedb_tool.py:81
↓ 1 callers
Method
add_docs
(self, docs: List[PineconeDoc], **kwargs)
autochain/tools/internal_search/pinecone_tool.py:75
↓ 1 callers
Method
add_docs
Add a list of documents to collection
autochain/tools/internal_search/chromadb_tool.py:66
↓ 1 callers
Method
clarify_args_for_agent_action
Ask clarifying question if needed. When agent is about to perform an action, we could use this function with different prompt to ask
autochain/agent/base_agent.py:57
↓ 1 callers
Method
clear_index
(self)
autochain/tools/internal_search/lancedb_tool.py:88
↓ 1 callers
Function
convert_dict_to_message
(_dict: dict)
autochain/models/chat_openai.py:30
↓ 1 callers
Function
convert_message_to_dict
(message: BaseMessage)
autochain/models/chat_openai.py:45
↓ 1 callers
Function
createTermynals
()
docs/js/custom.js:14
↓ 1 callers
Method
determine_if_agent_solved_problem
( self, conversation_history: List[Tuple[str, str]], expected_outcome: str )
autochain/workflows_evaluation/base_test.py:182
↓ 1 callers
Method
determine_if_conversation_ends
(self, last_utterance: str)
autochain/workflows_evaluation/base_test.py:134
↓ 1 callers
Method
encode
(self, texts: List[str])
autochain/models/ada_embedding.py:52
↓ 1 callers
Method
fix_action_input
If the tool failed due to error, what should be the fix for inputs
autochain/agent/base_agent.py:81
↓ 1 callers
Function
get_from_env
Get a value from a dictionary or an environment variable.
autochain/utils.py:27
↓ 1 callers
Method
get_latest_user_message
(self)
autochain/agent/message.py:110
↓ 1 callers
Method
get_next_user_query
( self, conversation_history: List[Tuple[str, str]], user_context: str )
autochain/workflows_evaluation/base_test.py:151
↓ 1 callers
Method
handle_repeated_action
(self, agent_action: AgentAction)
autochain/chain/chain.py:25
↓ 1 callers
Method
is_generation_confident
Estimate the confidence of the generation Args: history: history of the conversation agent_output: the output
autochain/agent/openai_functions_agent/openai_functions_agent.py:109
↓ 1 callers
Method
lineDataToElements
* Converts line data objects into line elements. * * @param {Object[]} lineData - Dynamically loaded lines. * @param {Object} line - Li
docs/js/termynal.js:223
↓ 1 callers
Method
loadLines
()
docs/js/termynal.js:52
↓ 1 callers
Function
loadVisibleTermynals
()
docs/js/custom.js:95
↓ 1 callers
Function
main
()
docs/js/custom.js:109
↓ 1 callers
Method
parse
(self, message: AIMessage)
autochain/agent/openai_functions_agent/output_parser.py:13
↓ 1 callers
Method
parse
(self, message: BaseMessage)
autochain/agent/conversational_agent/output_parser.py:13
↓ 1 callers
Method
parse_clarification
( self, message: BaseMessage, agent_action: AgentAction )
autochain/agent/conversational_agent/output_parser.py:37
↓ 1 callers
Method
parse_estimated_confidence
Parse estimated confidence from the message
autochain/agent/openai_functions_agent/output_parser.py:26
↓ 1 callers
Function
parse_evaluation_response
Parse the reason and rating from the call to determine if the conversation reaches the expected outcome
autochain/workflows_evaluation/test_utils.py:40
↓ 1 callers
Method
prep_inputs
Load conversation history from memory and prep inputs.
autochain/chain/base_chain.py:33
↓ 1 callers
Method
prep_output
Save conversation into memory and prep outputs.
autochain/chain/base_chain.py:54
↓ 1 callers
Method
progress
* Animate a progress bar. * @param {Node} line - The line element to render.
docs/js/termynal.js:187
↓ 1 callers
Method
results
Run query through GoogleSearch and return metadata. Args: query: The query to search for. num_results: The number of
autochain/tools/google_search/util.py:103
next →
1–100 of 232, ranked by callers