MCPcopy Create free account

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

Functions232 in github.com/Forethought-Technologies/AutoChain

↓ 1 callersMethodrun
Run query through GoogleSearch and parse result.
autochain/tools/google_search/util.py:91
↓ 1 callersMethodrun_test
(self, test)
autochain/workflows_evaluation/base_test.py:81
↓ 1 callersMethodsave_memory
(self, key: str, value: Any)
autochain/memory/buffer_memory.py:26
↓ 1 callersFunctionsetupTermynal
()
docs/js/custom.js:1
↓ 1 callersMethodshould_answer
Let agent determines if it should continue to answer questions or that is the end of the conversation Args: input
autochain/chain/base_chain.py:181
↓ 1 callersMethodstart
* Start the animation and rener the lines depending on their data attributes.
docs/js/termynal.js:96
↓ 1 callersMethodtake_next_step
How agent determines the next step after observing the inputs and intermediate steps
autochain/chain/base_chain.py:162
↓ 1 callersMethodtest_each_case
(self, test_case: TestCase)
autochain/workflows_evaluation/base_test.py:52
↓ 1 callersMethodtype
* Animate a typed line. * @param {Node} line - The line element to render.
docs/js/termynal.js:171
↓ 1 callersMethodupsert
(self, id_vectors, *args, **kwargs)
test_utils/pinecone_mocks.py:15
Method__init__
(self)
test_utils/pinecone_mocks.py:12
Method__init__
(self, message)
autochain/errors.py:16
Method__init__
(self, **kwargs)
autochain/tools/internal_search/lancedb_tool.py:41
Method__init__
(self, **kwargs)
autochain/tools/internal_search/pinecone_tool.py:33
Method__init__
(self, docs: List[ChromaDoc], **kwargs)
autochain/tools/internal_search/chromadb_tool.py:34
Method__init__
(self, tests: List[BaseTest], output_dir: str)
autochain/workflows_evaluation/base_test.py:46
Method__init__
(self, langchain: LangChain, *args, **kwargs)
autochain/chain/langchain_wrapper_chain.py:20
Method__init__
(self, *args, **kwargs)
autochain/models/huggingface_text_generation_model.py:70
Method_construct_scratchpad
( actions: List[AgentAction], )
autochain/agent/conversational_agent/conversational_agent.py:112
Method_default_params
Get the default parameters for calling OpenAI API.
autochain/models/base.py:89
Method_format_assistant_message
(action_output: Union[AgentAction, AgentFinish])
autochain/agent/openai_functions_agent/openai_functions_agent.py:123
Method_format_output
Only return the document since they are likely to be passed to prompt
autochain/tools/internal_search/pinecone_tool.py:55
Method_format_output
Only return the document since they are likely to be passed to prompt
autochain/tools/internal_search/chromadb_tool.py:51
Method_format_response
(texts, resp)
autochain/models/ada_embedding.py:53
Method_generate_with_retry
(**kwargs: Any)
autochain/models/base.py:126
Method_parse_response
(res: str)
autochain/agent/conversational_agent/conversational_agent.py:89
Method_run
(self, *args: Any, **kwargs: Any)
autochain/tools/simple_handoff/tool.py:11
Method_run
( self, query: str, top_k: int = 2, *args: Any, **kwargs: Any, )
autochain/tools/internal_search/lancedb_tool.py:66
Method_run
( self, query: str, top_k: int = 2, include_values: bool = False, *arg
autochain/tools/internal_search/pinecone_tool.py:47
Method_run
( self, query: str, top_k: int = 2, *args: Any, **kwargs: Any, )
autochain/tools/internal_search/chromadb_tool.py:44
Method_run
( self, query: str, top_k: int = 2, *args: Any, **kwargs: Any, )
autochain/tools/internal_search/base_search_tool.py:15
Method_run
Use the tool.
autochain/tools/google_search/tool.py:17
Method_type
(self)
autochain/workflows_evaluation/langchain_eval/custom_langchain_output_parser.py:32
Functionada_encoding_fixture
()
tests/models/test_openai_ada_encoder.py:11
Methodadd_docs
(self, docs: List[Any], **kwargs)
autochain/tools/internal_search/base_search_tool.py:25
Methodchain
Chain to test with, which support run(<user_query>) function
autochain/workflows_evaluation/base_test.py:31
Methodclarify_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/conversational_agent/conversational_agent.py:193
Methodclear
(self)
autochain/agent/message.py:116
Methodclear_index
(self)
autochain/tools/internal_search/pinecone_tool.py:85
Methodclear_index
(self)
autochain/tools/internal_search/chromadb_tool.py:77
Methodclear_index
(self)
autochain/tools/internal_search/base_search_tool.py:29
Methodconstructor
* Construct the widget's settings. * @param {(string|Node)=} container - Query selector or container element. * @param {Object=} options - C
docs/js/termynal.js:30
Methodencode
(self, texts: List[str])
test_utils/pinecone_mocks.py:44
Methodfind_first_integer
(input_string)
autochain/agent/openai_functions_agent/output_parser.py:29
Methodfix_action_input
If the tool failed due to error, what should be the fix for inputs
autochain/agent/conversational_agent/conversational_agent.py:240
Methodformat_prompt
(self, **kwargs: Any)
autochain/agent/prompt_formatter.py:26
Methodfrom_llm_and_tools
( cls, llm: BaseLanguageModel, tools: Optional[List[Tool]] = None, output_pars
autochain/agent/openai_functions_agent/openai_functions_agent.py:37
Methodfrom_llm_and_tools
Construct an agent from an LLM and tools.
autochain/agent/conversational_agent/conversational_agent.py:43
Methodgenerate
( self, messages: List[BaseMessage], functions: Optional[List[Tool]] = None, s
test_utils/pinecone_mocks.py:36
Methodgenerate
( self, messages: List[BaseMessage], functions: Optional[List[Tool]] = None, s
autochain/models/huggingface_text_generation_model.py:79
Methodgenerate
( self, messages: List[BaseMessage], functions: Optional[List[Tool]] = None, s
autochain/models/ada_embedding.py:44
Functionget_current_weather
Get the current weather in a given location
autochain/workflows_evaluation/openai_function_agent_eval/get_weather_test.py:15
Functionget_current_weather
Get the current weather in a given location
autochain/examples/get_weather_with_openai_function_agent.py:16
Methodget_format_instructions
(self)
autochain/workflows_evaluation/langchain_eval/custom_langchain_output_parser.py:12
Functionget_item_spec
(item_name: str, **kwargs)
autochain/workflows_evaluation/conversational_agent_eval/generate_ads_test.py:9
Functionget_item_spec
(item_name: str, **kwargs)
autochain/workflows_evaluation/openai_function_agent_eval/generate_ads_test.py:13
Functionget_item_spec
(item_name: str, **kwargs)
autochain/workflows_evaluation/langchain_eval/generate_ads_test.py:11
Functionget_menu
Changes the shipping address for unshipped orders. Requires the order_id and the new_address inputs
autochain/workflows_evaluation/conversational_agent_eval/find_food_near_me_test.py:23
Functionget_menu
Changes the shipping address for unshipped orders. Requires the order_id and the new_address inputs
autochain/workflows_evaluation/openai_function_agent_eval/find_food_near_me_test.py:27
Functionget_menu
Changes the shipping address for unshipped orders. Requires the order_id and the new_address inputs
autochain/workflows_evaluation/langchain_eval/find_food_near_me_test.py:25
Methodget_prompt_template
Create prompt in the style of the zero shot agent. Args: prompt: message to be injected between prefix and suffix. in
autochain/agent/base_agent.py:88
Functiongoogle_search_fixture
()
tests/tools/test_google_search.py:10
Functionis_generation_confident_fixture
()
tests/agent/test_openai_functions_agent.py:77
Functionopenai_completion_fixture
()
tests/models/test_chat_openai.py:25
Functionopenai_estimate_confidence_fixture
()
tests/agent/test_openai_functions_agent.py:58
Functionopenai_function_calling_fixture
()
tests/agent/test_openai_functions_agent.py:16
Functionopenai_response_fixture
()
tests/agent/test_openai_functions_agent.py:39
Functionopenai_response_fixture
()
tests/agent/test_conversational_agent.py:59
Functionopenai_should_answer_fixture
()
tests/agent/test_conversational_agent.py:21
Methodparse
(self, text: str)
autochain/workflows_evaluation/langchain_eval/custom_langchain_output_parser.py:15
Methodparse
Parse text into agent action/finish.
autochain/agent/structs.py:80
Methodparse_clarification
Parse clarification outputs
autochain/agent/structs.py:83
Methodparse_estimated_confidence
Parse estimated confidence from the message
autochain/agent/structs.py:89
Functionpinecone_index_fixture
()
test_utils/pinecone_mocks.py:54
Methodplan
( self, history: ChatMessageHistory, intermediate_steps: List[AgentAction], re
autochain/agent/openai_functions_agent/openai_functions_agent.py:60
Methodplan
Plan the next step. either taking an action with AgentAction or respond to user with AgentFinish Args: history: entire ch
autochain/agent/conversational_agent/conversational_agent.py:147
Methodresponse
message to be stored in memory and shared with next prompt
autochain/agent/structs.py:27
Methodrun
( self, user_query: str, **kwargs, )
autochain/chain/langchain_wrapper_chain.py:25
Functionsample_tool_func
(k, *arg, **kwargs)
tests/tools/test_base_tool.py:6
Functionsample_tool_func_no_type
(k, *arg, **kwargs)
tests/models/test_chat_openai.py:12
Functionsample_tool_func_with_type
(k: int, *arg, **kwargs)
tests/models/test_chat_openai.py:16
Functionsample_tool_func_with_type_default
(k: int, d: int = 1, *arg, **kwargs)
tests/models/test_chat_openai.py:20
Functionsearch_image_path_for_item
(item_name: str)
autochain/workflows_evaluation/conversational_agent_eval/generate_ads_test.py:23
Functionsearch_image_path_for_item
(item_name: str)
autochain/workflows_evaluation/openai_function_agent_eval/generate_ads_test.py:27
Functionsearch_image_path_for_item
(item_name: str)
autochain/workflows_evaluation/langchain_eval/generate_ads_test.py:25
Functionsearch_restaurant
Returns order information as a dictionary, where order_status can be "shipped" or "not_shipped"
autochain/workflows_evaluation/conversational_agent_eval/find_food_near_me_test.py:9
Functionsearch_restaurant
Returns order information as a dictionary, where order_status can be "shipped" or "not_shipped"
autochain/workflows_evaluation/openai_function_agent_eval/find_food_near_me_test.py:13
Functionsearch_restaurant
Returns order information as a dictionary, where order_status can be "shipped" or "not_shipped"
autochain/workflows_evaluation/langchain_eval/find_food_near_me_test.py:11
Methodshould_answer
Determine if agent should continue to answer user questions based on the latest user query
autochain/agent/base_agent.py:32
Functionside_effect
(*args, **kwargs)
tests/agent/test_conversational_agent.py:29
Methodtake_next_step
( self, name_to_tool_map: Dict[str, Tool], inputs: Dict[str, str], )
autochain/chain/langchain_wrapper_chain.py:34
Methodtake_next_step
How agent determines the next step after observing the inputs and intermediate steps Args: name_to_tool_map: map of tool
autochain/chain/chain.py:43
Functiontest_ada_encoder
(ada_encoding_fixture)
tests/models/test_openai_ada_encoder.py:34
Functiontest_arg_description
()
tests/tools/test_base_tool.py:31
Functiontest_buffer_conversation_memory
()
tests/memory/test_buffer_memory.py:18
Functiontest_buffer_conversation_memory
()
tests/memory/test_long_term_memory.py:24
Functiontest_buffer_conversation_memory_lancedb
()
tests/memory/test_long_term_memory.py:115
Functiontest_buffer_conversation_memory_pinecone
(pinecone_index_fixture)
tests/memory/test_long_term_memory.py:67
Functiontest_buffer_kv_memory
()
tests/memory/test_buffer_memory.py:5
Methodtest_cases
(self)
autochain/workflows_evaluation/base_test.py:41
← previousnext →101–200 of 232, ranked by callers