Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/SqueezeAILab/LLMCompiler
/ functions
Functions
245 in github.com/SqueezeAILab/LLMCompiler
⨍
Functions
245
◇
Types & classes
38
Method
llm_prefix
Prefix to append the LLM call with.
src/react/base.py:39
Method
llm_prefix
Prefix to append the LLM call with.
src/agents/agent.py:203
Method
llm_prefix
Prefix to append the llm call with.
src/agents/structured_chat_agent.py:40
Method
log
(self, latency: float, answer: str, label: str, key: str)
src/utils/logger_utils.py:17
Method
lookup
Lookup a term in document (if saved).
src/docstore/wikipedia.py:269
Method
lookup_tool
Lookup tool by name.
src/executors/agent_executor.py:196
Method
observation_prefix
Prefix to append the observation with.
src/react/base.py:30
Method
observation_prefix
Prefix to append the observation with.
src/agents/agent.py:198
Method
observation_prefix
Prefix to append the observation with.
src/agents/structured_chat_agent.py:35
Method
on_chat_model_start
(self, serialized, prompts, **kwargs)
src/callbacks/callbacks.py:19
Method
on_chat_model_start
(self, serialized, prompts, **kwargs)
src/callbacks/callbacks.py:60
Method
on_llm_end
( self, response: LLMResult, *, run_id: UUID, parent_run_id: Optional[
src/llm_compiler/planner.py:176
Method
on_llm_end
(self, response, *args, **kwargs)
src/callbacks/callbacks.py:22
Method
on_llm_end
(self, response, *args, **kwargs)
src/callbacks/callbacks.py:76
Method
on_llm_new_token
( self, token: str, *, run_id: UUID, parent_run_id: Optional[UUID] = N
src/llm_compiler/planner.py:162
Method
on_llm_new_token
(self, token, *args, **kwargs)
src/callbacks/callbacks.py:69
Method
on_llm_start
Run when LLM starts running.
src/llm_compiler/planner.py:159
Method
output_keys
(self)
src/llm_compiler/llm_compiler.py:139
Method
output_keys
Return the singular output key. :meta private:
src/executors/agent_executor.py:186
Method
output_keys
Keys expected to be in the chain output.
src/chains/chain.py:177
Method
output_keys
Expect output key. :meta private:
src/chains/llm_math_chain.py:180
Method
output_keys
Will always return text key. :meta private:
src/chains/llm_chain.py:85
Method
parse
(self, text: str)
src/react/output_parser.py:12
Method
predict_and_parse
Call predict and then parse the results.
src/chains/llm_chain.py:324
Function
print_time_contexts
()
src/utils/time_utils.py:42
Method
raise_callback_manager_deprecation
Raise deprecation warning if callback_manager is used.
src/chains/chain.py:142
Method
raise_deprecation
(cls, values: Dict)
src/chains/llm_math_chain.py:160
Method
reset
(self)
src/callbacks/callbacks.py:86
Method
return_values
(self)
src/agents/agent.py:75
Function
run_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
Function
run_llm_math_chain
(question, context=None)
configs/parallelqa/tools.py:31
Function
run_llm_math_chain
(args)
configs/parallelqa_react/tools.py:8
Method
save
Save the chain. Expects `Chain._chain_type` property to be implemented and for memory to be null. Args: file
src/chains/chain.py:610
Method
save
Save the agent. Args: file_path: Path to file to save the agent to. Example: .. code-block:: python
src/agents/agent.py:290
Method
save_agent
Save the underlying agent.
src/executors/agent_executor.py:155
Method
save_result
(self, key: str, path: str)
src/utils/logger_utils.py:40
Method
search
Search for a term in the docstore, and if found save.
src/docstore/wikipedia.py:241
Method
set_verbose
Set the chain verbosity. Defaults to the global setting if not specified by the user.
src/chains/chain.py:159
Function
time_it
(verbose=False)
src/utils/time_utils.py:18
Function
tool
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
Method
validate_prompt
Validate that prompt matches format.
src/agents/agent.py:179
Method
validate_return_direct_tool
Validate that tools are compatible with agent.
src/executors/agent_executor.py:134
Method
validate_tools
Validate that tools are compatible with agent.
src/executors/agent_executor.py:120
Method
visit_Call
(self, node)
src/chains/llm_math_chain.py:91
Function
wrapper
(*args, **kwargs)
src/utils/time_utils.py:23
← previous
201–245 of 245, ranked by callers