MCPcopy Create free account

hub / github.com/Forethought-Technologies/AutoChain / functions

Functions232 in github.com/Forethought-Technologies/AutoChain

↓ 16 callersMethodsave_message
(self, message: str, message_type: MessageType, **kwargs)
autochain/agent/message.py:74
↓ 14 callersMethodformat_message
(self)
autochain/agent/message.py:90
↓ 14 callersMethodrun
Run the tool.
autochain/tools/base.py:90
↓ 12 callersMethodload_memory
Return history buffer by key or all memories.
autochain/memory/long_term_memory.py:30
↓ 11 callersFunctionget_args
Adding arguments for running test interactively or setting verbosity
autochain/utils.py:41
↓ 10 callersMethodfrom_llm_and_tools
Construct an agent from an LLM and tools.
autochain/agent/base_agent.py:21
↓ 9 callersMethodgenerate
( self, messages: List[BaseMessage], functions: Optional[List[Tool]] = None, s
autochain/models/base.py:132
↓ 9 callersFunctionprint_with_color
(text: str, color: str)
autochain/utils.py:9
↓ 7 callersMethodrun_all_tests
(self)
autochain/workflows_evaluation/base_test.py:120
↓ 7 callersMethodrun_interactive
(self)
autochain/workflows_evaluation/base_test.py:124
↓ 6 callersMethod_wait
* Helper function for animation delays, called with `await`. * @param {number} time - Timeout, in ms.
docs/js/termynal.js:212
↓ 6 callersMethodclear
Clear memory contents.
autochain/memory/long_term_memory.py:67
↓ 6 callersMethodload_conversation
Return history buffer and format it into a conversational string format.
autochain/memory/long_term_memory.py:45
↓ 6 callersMethodsave_conversation
Save context from this conversation to buffer.
autochain/memory/long_term_memory.py:59
↓ 6 callersMethodsave_memory
(self, key: str, value: Any)
autochain/memory/long_term_memory.py:49
↓ 5 callersFunctionconvert_tool_to_dict
Convert tool into function parameter for openai
autochain/models/chat_openai.py:63
↓ 5 callersFunctioncreate_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 callersMethodencode
(self, texts: List[str])
autochain/models/base.py:140
↓ 5 callersFunctionsaveBuffer
()
docs/js/custom.js:22
↓ 4 callersMethodload_json_output
If the message contains a json response, try to parse it into dictionary
autochain/agent/structs.py:55
↓ 4 callersMethodload_memory
Get the key's corresponding value from redis.
autochain/memory/redis_memory.py:31
↓ 4 callersMethodplan
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 callersMethodrun
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 callersMethodinit
* Initialise the widget, get lines, clear container and start animation.
docs/js/termynal.js:74
↓ 3 callersMethodis_generation_confident
Check if the generation is confident enough to take action
autochain/agent/base_agent.py:107
↓ 3 callersMethodload_memory
Return history buffer by key or all memories.
autochain/memory/buffer_memory.py:13
↓ 3 callersMethodsave_conversation
Save the context of this model run to memory.
autochain/memory/base.py:35
↓ 2 callersMethod_create_table
(self, docs: List[LanceDBDoc])
autochain/tools/internal_search/lancedb_tool.py:48
↓ 2 callersMethod_docs_to_dataframe
(self, docs: List[LanceDBDoc])
autochain/tools/internal_search/lancedb_tool.py:58
↓ 2 callersMethod_encode_docs
(self, docs: List[LanceDBDoc])
autochain/tools/internal_search/lancedb_tool.py:51
↓ 2 callersFunction_format_property
(t: type, arg_desp: str)
autochain/models/chat_openai.py:83
↓ 2 callersMethod_google_search_results
(self, search_term: str, **kwargs: Any)
autochain/tools/google_search/util.py:59
↓ 2 callersMethodclear
Clear redis memory.
autochain/memory/redis_memory.py:76
↓ 2 callersMethodclear
Clear memory contents.
autochain/memory/base.py:41
↓ 2 callersMethodclear
Clear memory contents.
autochain/memory/buffer_memory.py:37
↓ 2 callersFunctioncreate_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 callersMethodformat_output
(self)
autochain/agent/structs.py:45
↓ 2 callersMethodformat_prompt
( template: JSONPromptTemplate, intermediate_steps: List[AgentAction], **kwargs: Any,
autochain/agent/conversational_agent/conversational_agent.py:107
↓ 2 callersMethodgenerate
( self, messages: List[BaseMessage], functions: Optional[List[Tool]] = None, s
autochain/models/chat_openai.py:202
↓ 2 callersMethodgenerateFinish
()
docs/js/termynal.js:142
↓ 2 callersMethodgenerateRestart
()
docs/js/termynal.js:129
↓ 2 callersMethodgenerate_with_retry
Use tenacity to retry the completion call.
autochain/models/base.py:121
↓ 2 callersFunctionget_from_dict_or_env
Get a value from a dictionary or an environment variable.
autochain/utils.py:17
↓ 2 callersMethodget_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 callersMethodload_conversation
Return chat message history.
autochain/memory/redis_memory.py:42
↓ 2 callersMethodload_conversation
Return key-value pairs given the text input to the chain.
autochain/memory/base.py:27
↓ 2 callersMethodload_conversation
Return history buffer and format it into a conversational string format.
autochain/memory/buffer_memory.py:22
↓ 2 callersMethodload_memory
Return key-value pairs given the text input to the chain.
autochain/memory/base.py:21
↓ 2 callersMethodquery
(self, vector, *args, **kwargs)
test_utils/pinecone_mocks.py:19
↓ 2 callersMethodsave_conversation
Save context from this conversation to redis.
autochain/memory/redis_memory.py:54
↓ 2 callersMethodsave_conversation
Save context from this conversation to buffer.
autochain/memory/buffer_memory.py:29
↓ 2 callersMethodsave_memory
Save the key value pair to redis.
autochain/memory/redis_memory.py:47
↓ 2 callersMethodsave_memory
Save the context of this model run to memory.
autochain/memory/base.py:31
↓ 2 callersMethodshould_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 callersMethod_attributes
* Helper function for generating attributes string. * * @param {Object} line - Line data object. * @returns {string} - String of attrib
docs/js/termynal.js:238
↓ 1 callersMethod_construct_prompt_from_message
(messages: List[BaseMessage])
autochain/models/huggingface_text_generation_model.py:100
↓ 1 callersMethod_create_llm_result
( self, generation: List[Dict[str, Any]], prompt: str, stop: List[str] )
autochain/models/huggingface_text_generation_model.py:116
↓ 1 callersMethod_create_llm_result
(self, response: Mapping[str, Any])
autochain/models/chat_openai.py:241
↓ 1 callersMethod_create_message_dicts
( self, messages: List[BaseMessage], tools: Optional[List[Tool]], stop: Option
autochain/models/chat_openai.py:222
↓ 1 callersMethod_create_retry_decorator
(self)
autochain/models/base.py:100
↓ 1 callersMethod_encode
(self, doc: PineconeDoc)
autochain/tools/internal_search/pinecone_tool.py:42
↓ 1 callersMethod_enforce_stop_tokens
Cut off the text as soon as any stop words occur.
autochain/models/huggingface_text_generation_model.py:107
↓ 1 callersMethod_parse_input
Convert tool input to pydantic model.
autochain/tools/base.py:58
↓ 1 callersMethod_run
( self, *args: Any, **kwargs: Any, )
autochain/tools/base.py:83
↓ 1 callersMethod_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 callersMethod_should_continue
(self, iterations: int, time_elapsed: float)
autochain/chain/base_chain.py:170
↓ 1 callersMethod_to_args_and_kwargs
(self, tool_input: Union[str, Dict])
autochain/tools/base.py:75
↓ 1 callersFunction_type_to_string
(t: type)
autochain/models/chat_openai.py:68
↓ 1 callersMethodaddFinish
()
docs/js/termynal.js:162
↓ 1 callersMethodaddRestart
()
docs/js/termynal.js:157
↓ 1 callersMethodadd_docs
(self, docs: List[LanceDBDoc], **kwargs)
autochain/tools/internal_search/lancedb_tool.py:81
↓ 1 callersMethodadd_docs
(self, docs: List[PineconeDoc], **kwargs)
autochain/tools/internal_search/pinecone_tool.py:75
↓ 1 callersMethodadd_docs
Add a list of documents to collection
autochain/tools/internal_search/chromadb_tool.py:66
↓ 1 callersMethodclarify_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 callersMethodclear_index
(self)
autochain/tools/internal_search/lancedb_tool.py:88
↓ 1 callersFunctionconvert_dict_to_message
(_dict: dict)
autochain/models/chat_openai.py:30
↓ 1 callersFunctionconvert_message_to_dict
(message: BaseMessage)
autochain/models/chat_openai.py:45
↓ 1 callersFunctioncreateTermynals
()
docs/js/custom.js:14
↓ 1 callersMethoddetermine_if_agent_solved_problem
( self, conversation_history: List[Tuple[str, str]], expected_outcome: str )
autochain/workflows_evaluation/base_test.py:182
↓ 1 callersMethoddetermine_if_conversation_ends
(self, last_utterance: str)
autochain/workflows_evaluation/base_test.py:134
↓ 1 callersMethodencode
(self, texts: List[str])
autochain/models/ada_embedding.py:52
↓ 1 callersMethodfix_action_input
If the tool failed due to error, what should be the fix for inputs
autochain/agent/base_agent.py:81
↓ 1 callersFunctionget_from_env
Get a value from a dictionary or an environment variable.
autochain/utils.py:27
↓ 1 callersMethodget_latest_user_message
(self)
autochain/agent/message.py:110
↓ 1 callersMethodget_next_user_query
( self, conversation_history: List[Tuple[str, str]], user_context: str )
autochain/workflows_evaluation/base_test.py:151
↓ 1 callersMethodhandle_repeated_action
(self, agent_action: AgentAction)
autochain/chain/chain.py:25
↓ 1 callersMethodis_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 callersMethodlineDataToElements
* Converts line data objects into line elements. * * @param {Object[]} lineData - Dynamically loaded lines. * @param {Object} line - Li
docs/js/termynal.js:223
↓ 1 callersMethodloadLines
()
docs/js/termynal.js:52
↓ 1 callersFunctionloadVisibleTermynals
()
docs/js/custom.js:95
↓ 1 callersFunctionmain
()
docs/js/custom.js:109
↓ 1 callersMethodparse
(self, message: AIMessage)
autochain/agent/openai_functions_agent/output_parser.py:13
↓ 1 callersMethodparse
(self, message: BaseMessage)
autochain/agent/conversational_agent/output_parser.py:13
↓ 1 callersMethodparse_clarification
( self, message: BaseMessage, agent_action: AgentAction )
autochain/agent/conversational_agent/output_parser.py:37
↓ 1 callersMethodparse_estimated_confidence
Parse estimated confidence from the message
autochain/agent/openai_functions_agent/output_parser.py:26
↓ 1 callersFunctionparse_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 callersMethodprep_inputs
Load conversation history from memory and prep inputs.
autochain/chain/base_chain.py:33
↓ 1 callersMethodprep_output
Save conversation into memory and prep outputs.
autochain/chain/base_chain.py:54
↓ 1 callersMethodprogress
* Animate a progress bar. * @param {Node} line - The line element to render.
docs/js/termynal.js:187
↓ 1 callersMethodresults
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