MCPcopy Create free account

hub / github.com/SqueezeAILab/LLMCompiler / functions

Functions245 in github.com/SqueezeAILab/LLMCompiler

Methodllm_prefix
Prefix to append the LLM call with.
src/react/base.py:39
Methodllm_prefix
Prefix to append the LLM call with.
src/agents/agent.py:203
Methodllm_prefix
Prefix to append the llm call with.
src/agents/structured_chat_agent.py:40
Methodlog
(self, latency: float, answer: str, label: str, key: str)
src/utils/logger_utils.py:17
Methodlookup
Lookup a term in document (if saved).
src/docstore/wikipedia.py:269
Methodlookup_tool
Lookup tool by name.
src/executors/agent_executor.py:196
Methodobservation_prefix
Prefix to append the observation with.
src/react/base.py:30
Methodobservation_prefix
Prefix to append the observation with.
src/agents/agent.py:198
Methodobservation_prefix
Prefix to append the observation with.
src/agents/structured_chat_agent.py:35
Methodon_chat_model_start
(self, serialized, prompts, **kwargs)
src/callbacks/callbacks.py:19
Methodon_chat_model_start
(self, serialized, prompts, **kwargs)
src/callbacks/callbacks.py:60
Methodon_llm_end
( self, response: LLMResult, *, run_id: UUID, parent_run_id: Optional[
src/llm_compiler/planner.py:176
Methodon_llm_end
(self, response, *args, **kwargs)
src/callbacks/callbacks.py:22
Methodon_llm_end
(self, response, *args, **kwargs)
src/callbacks/callbacks.py:76
Methodon_llm_new_token
( self, token: str, *, run_id: UUID, parent_run_id: Optional[UUID] = N
src/llm_compiler/planner.py:162
Methodon_llm_new_token
(self, token, *args, **kwargs)
src/callbacks/callbacks.py:69
Methodon_llm_start
Run when LLM starts running.
src/llm_compiler/planner.py:159
Methodoutput_keys
(self)
src/llm_compiler/llm_compiler.py:139
Methodoutput_keys
Return the singular output key. :meta private:
src/executors/agent_executor.py:186
Methodoutput_keys
Keys expected to be in the chain output.
src/chains/chain.py:177
Methodoutput_keys
Expect output key. :meta private:
src/chains/llm_math_chain.py:180
Methodoutput_keys
Will always return text key. :meta private:
src/chains/llm_chain.py:85
Methodparse
(self, text: str)
src/react/output_parser.py:12
Methodpredict_and_parse
Call predict and then parse the results.
src/chains/llm_chain.py:324
Functionprint_time_contexts
()
src/utils/time_utils.py:42
Methodraise_callback_manager_deprecation
Raise deprecation warning if callback_manager is used.
src/chains/chain.py:142
Methodraise_deprecation
(cls, values: Dict)
src/chains/llm_math_chain.py:160
Methodreset
(self)
src/callbacks/callbacks.py:86
Methodreturn_values
(self)
src/agents/agent.py:75
Functionrun_and_time
helper function to run and time a function. Since function can error, we catch the error and return "ERROR" as the result
src/utils/evaluation_utils.py:25
Functionrun_llm_math_chain
(question, context=None)
configs/parallelqa/tools.py:31
Functionrun_llm_math_chain
(args)
configs/parallelqa_react/tools.py:8
Methodsave
Save the chain. Expects `Chain._chain_type` property to be implemented and for memory to be null. Args: file
src/chains/chain.py:610
Methodsave
Save the agent. Args: file_path: Path to file to save the agent to. Example: .. code-block:: python
src/agents/agent.py:290
Methodsave_agent
Save the underlying agent.
src/executors/agent_executor.py:155
Methodsave_result
(self, key: str, path: str)
src/utils/logger_utils.py:40
Methodsearch
Search for a term in the docstore, and if found save.
src/docstore/wikipedia.py:241
Methodset_verbose
Set the chain verbosity. Defaults to the global setting if not specified by the user.
src/chains/chain.py:159
Functiontime_it
(verbose=False)
src/utils/time_utils.py:18
Functiontool
Make tools out of functions, can be used with or without arguments. Args: *args: The arguments to the tool. return_direct: Whethe
src/tools/base.py:378
Methodvalidate_prompt
Validate that prompt matches format.
src/agents/agent.py:179
Methodvalidate_return_direct_tool
Validate that tools are compatible with agent.
src/executors/agent_executor.py:134
Methodvalidate_tools
Validate that tools are compatible with agent.
src/executors/agent_executor.py:120
Methodvisit_Call
(self, node)
src/chains/llm_math_chain.py:91
Functionwrapper
(*args, **kwargs)
src/utils/time_utils.py:23
← previous201–245 of 245, ranked by callers