Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/SqueezeAILab/TinyAgent
/ functions
Functions
338 in github.com/SqueezeAILab/TinyAgent
⨍
Functions
338
◇
Types & classes
74
↳
Endpoints
4
Method
__init__
( self, llm: BaseLLM, config: ModelConfig, custom_instructions: str | None,
src/tiny_agent/sub_agents/sub_agent.py:20
Method
__init__
( self, embedding_model: ( AzureOpenAIEmbeddings | OpenAIEmbeddings | HuggingFaceE
src/tiny_agent/tool_rag/classifier_tool_rag.py:46
Method
__init__
( self, embedding_model: ( AzureOpenAIEmbeddings | OpenAIEmbeddings | HuggingFaceE
src/tiny_agent/tool_rag/base_tool_rag.py:46
Method
__init__
( self, embedding_model: ( AzureOpenAIEmbeddings | OpenAIEmbeddings | HuggingFaceE
src/tiny_agent/tool_rag/simple_tool_rag.py:12
Method
_acall
( self, inputs: Dict[str, Any], run_manager: Optional[AsyncCallbackManagerForChainRun]
src/llm_compiler/llm_compiler.py:243
Method
_acall
Run text through and get agent response.
src/executors/agent_executor.py:486
Method
_acall
( self, inputs: Dict[str, Any], run_manager: Optional[AsyncCallbackManagerForChainRun]
src/chains/llm_chain.py:281
Method
_agent_type
Return Identifier of agent type.
src/agents/agent.py:56
Method
_agent_type
(self)
src/agents/structured_chat_agent.py:143
Method
_aperform_agent_action
( agent_action: AgentAction, )
src/executors/agent_executor.py:394
Method
_arun
Use the tool asynchronously.
src/tools/base.py:163
Method
_arun
Use the tool asynchronously.
src/tools/base.py:279
Method
_arun
( self, query: str, run_manager: Optional[AsyncCallbackManagerForToolRun] = None,
src/executors/agent_executor.py:48
Method
_arun
Use the tool asynchronously.
src/agents/tools.py:31
Method
_call
( self, inputs: Dict[str, Any], run_manager: Optional[CallbackManagerForChainRun] = No
src/llm_compiler/llm_compiler.py:236
Method
_call
Run text through and get agent response.
src/executors/agent_executor.py:438
Method
_call
( self, inputs: Dict[str, Any], run_manager: Optional[CallbackManagerForChainRun] = No
src/chains/llm_chain.py:94
Method
_chain_type
(self)
src/chains/chain.py:137
Method
_chain_type
(self)
src/chains/llm_chain.py:385
Method
_construct_scratchpad
( self, intermediate_steps: List[Tuple[AgentAction, str]] )
src/agents/structured_chat_agent.py:44
Method
_fix_text
Fix the text.
src/agents/agent.py:78
Function
_make_tool
(dec_func: Callable)
src/tools/base.py:413
Function
_partial
(func: Callable[[str], str])
src/tools/base.py:458
Method
_run
Use the tool.
src/tools/base.py:143
Method
_run
Use the tool.
src/tools/base.py:259
Method
_run
( self, query: str, run_manager: Optional[CallbackManagerForToolRun] = None, )
src/executors/agent_executor.py:41
Method
_run
Use the tool.
src/agents/tools.py:18
Method
_run_output_key
(self)
src/chains/chain.py:435
Method
_run_output_key
(self)
src/chains/llm_chain.py:264
Method
_stop
(self)
src/agents/agent.py:83
Method
_stop
(self)
src/agents/structured_chat_agent.py:70
Method
_to_args_and_kwargs
Convert tool input to pydantic model.
src/tools/base.py:131
Method
aapply_and_parse
Call apply and then parse the results.
src/chains/llm_chain.py:373
Method
ainvoke
( self, input: Union[str, Dict], config: Optional[RunnableConfig] = None, **kw
src/tools/base.py:238
Method
ainvoke
( self, input: Dict[str, Any], config: Optional[RunnableConfig] = None, **kwar
src/chains/chain.py:78
Function
append_note_content
(name: str, content: str, folder: str)
src/tiny_agent/tiny_agent_tools.py:509
Method
apply
Call the chain on all inputs in the list.
src/chains/chain.py:644
Method
apply_and_parse
Call apply and then parse the results.
src/chains/llm_chain.py:351
Method
apredict_and_parse
Call apredict and then parse the results.
src/chains/llm_chain.py:337
Method
args
The tool's input arguments.
src/tools/base.py:123
Method
args
The tool's input arguments.
src/tools/base.py:255
Method
arun
(self, query: str)
src/tiny_agent/tiny_agent.py:129
Function
build_graph
(plan: list[PlanStep])
src/utils/graph_utils.py:18
Method
cached_summary_result
(self)
src/tiny_agent/sub_agents/pdf_summarizer_agent.py:13
Function
compare_graphs_with_edit_distance
Calculates the graph edit distance between two graphs.
src/utils/graph_utils.py:138
Function
compare_graphs_with_success_rate
Ouputs 1.0 if the graphs are isomorphic, 0.0 otherwise.
src/utils/graph_utils.py:131
Function
compose_new_email
( recipients: list[str], cc: list[str], subject: str, context: str, at
src/tiny_agent/tiny_agent_tools.py:244
Function
create_calendar_event
( title: str, start_date: str, end_date: str, location: str, invitees:
src/tiny_agent/tiny_agent_tools.py:119
Function
create_new_note
(name: str, content: str, folder: str)
src/tiny_agent/tiny_agent_tools.py:462
Function
create_reminder
( name: str, due_date: str, notes: str, list_name: str, priority: int,
src/tiny_agent/tiny_agent_tools.py:542
Function
custom_http_exception_handler
Custom error handling for logging the errors to the TinyAgent log file.
run_tiny_agent_server.py:52
Function
evaluate_join
Returns 1.0 if the predicted join step is correct, else 0.0.
src/utils/plan_utils.py:128
Function
evaluate_plan
Returns the accuracy of the predicted plan based on the tool names and the right ordering.
src/utils/plan_utils.py:103
Function
evaluate_tool_recall
Instead of determining the score based on the correct function call in the plan, determines the score based on the correct set of function ca
src/utils/plan_utils.py:113
Function
execute_command
This is the main endpoint that calls the TinyAgent to generate a response to the given query.
run_tiny_agent_server.py:61
Method
find_and_select_first_email_from
Finds and selects an email in Mail based on the sender's name.
src/tiny_agent/tools/mail.py:162
Function
flush_results
(save_path, results)
src/utils/logger_utils.py:92
Function
forward_email
( recipients: list[str], cc: list[str], context: str, attachments: list[str],
src/tiny_agent/tiny_agent_tools.py:357
Method
from_agent_and_tools
Create from agent and tools.
src/executors/agent_executor.py:103
Method
from_function
Create tool from a given function. A classmethod that helps to create a tool from a function. Args: func: The function f
src/tools/base.py:307
Method
from_llm_and_tools
Construct an agent from an LLM and tools.
src/agents/agent.py:217
Method
from_llm_and_tools
Construct an agent from an LLM and tools.
src/agents/structured_chat_agent.py:103
Method
from_string
Create LLMChain from LLM and template.
src/chains/llm_chain.py:389
Method
get_all_stats
(self)
src/llm_compiler/llm_compiler.py:120
Function
get_email_address
(name: str)
src/tiny_agent/tiny_agent_tools.py:94
Function
get_logger
()
src/utils/logger_utils.py:56
Function
get_parsed_joinner_output
(raw_answer: str)
src/utils/plan_utils.py:82
Function
get_parsed_planner_output_from_raw
(raw_answer: str)
src/utils/plan_utils.py:77
Function
get_phone_number
(name: str)
src/tiny_agent/tiny_agent_tools.py:65
Method
get_results
(self, key: str)
src/utils/logger_utils.py:41
Method
get_stats
(self)
src/callbacks/callbacks.py:93
Function
get_voice_transcription
This endpoint call whisper to get voice transcription. It takes in bytes of audio returns the transcription in plain text.
run_tiny_agent_server.py:125
Function
get_zoom_meeting_link
( topic: str, start_time: str, duration: int, meeting_invitees: list[str],
src/tiny_agent/tiny_agent_tools.py:628
Function
initialize_data_objects
(json_path: str)
src/utils/data_utils.py:165
Method
input_keys
(self)
src/llm_compiler/llm_compiler.py:138
Method
input_keys
Return the input keys. :meta private:
src/executors/agent_executor.py:177
Method
input_keys
Keys expected to be in the chain input.
src/chains/chain.py:170
Method
input_keys
Will be whatever keys the prompt expects. :meta private:
src/chains/llm_chain.py:76
Method
input_keys
Return the input keys. :meta private:
src/agents/agent.py:171
Method
invoke
( self, input: Dict[str, Any], config: Optional[RunnableConfig] = None, **kwar
src/chains/chain.py:62
Method
iter
Enables iteration over steps taken to reach final output.
src/executors/agent_executor.py:158
Method
lc_serializable
(self)
src/chains/llm_chain.py:52
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:27
Method
lookup_tool
Lookup tool by name.
src/executors/agent_executor.py:195
Function
maps_open_location
(location: str)
src/tiny_agent/tiny_agent_tools.py:404
Function
maps_show_directions
( start_location: str, end_location: str, transport: str )
src/tiny_agent/tiny_agent_tools.py:421
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:210
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_error
( self, error: BaseException, *, run_id: UUID, parent_run_id: Optional
src/llm_compiler/planner.py:224
Method
on_llm_new_token
( self, token: str, *, run_id: UUID, parent_run_id: Optional[UUID] = N
src/llm_compiler/planner.py:177
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:174
Function
open_and_get_file_path
(file_name: str)
src/tiny_agent/tiny_agent_tools.py:195
← previous
next →
201–300 of 338, ranked by callers