MCPcopy Create free account

hub / github.com/SqueezeAILab/TinyAgent / functions

Functions338 in github.com/SqueezeAILab/TinyAgent

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
Methodaapply_and_parse
Call apply and then parse the results.
src/chains/llm_chain.py:373
Methodainvoke
( self, input: Union[str, Dict], config: Optional[RunnableConfig] = None, **kw
src/tools/base.py:238
Methodainvoke
( self, input: Dict[str, Any], config: Optional[RunnableConfig] = None, **kwar
src/chains/chain.py:78
Functionappend_note_content
(name: str, content: str, folder: str)
src/tiny_agent/tiny_agent_tools.py:509
Methodapply
Call the chain on all inputs in the list.
src/chains/chain.py:644
Methodapply_and_parse
Call apply and then parse the results.
src/chains/llm_chain.py:351
Methodapredict_and_parse
Call apredict and then parse the results.
src/chains/llm_chain.py:337
Methodargs
The tool's input arguments.
src/tools/base.py:123
Methodargs
The tool's input arguments.
src/tools/base.py:255
Methodarun
(self, query: str)
src/tiny_agent/tiny_agent.py:129
Functionbuild_graph
(plan: list[PlanStep])
src/utils/graph_utils.py:18
Methodcached_summary_result
(self)
src/tiny_agent/sub_agents/pdf_summarizer_agent.py:13
Functioncompare_graphs_with_edit_distance
Calculates the graph edit distance between two graphs.
src/utils/graph_utils.py:138
Functioncompare_graphs_with_success_rate
Ouputs 1.0 if the graphs are isomorphic, 0.0 otherwise.
src/utils/graph_utils.py:131
Functioncompose_new_email
( recipients: list[str], cc: list[str], subject: str, context: str, at
src/tiny_agent/tiny_agent_tools.py:244
Functioncreate_calendar_event
( title: str, start_date: str, end_date: str, location: str, invitees:
src/tiny_agent/tiny_agent_tools.py:119
Functioncreate_new_note
(name: str, content: str, folder: str)
src/tiny_agent/tiny_agent_tools.py:462
Functioncreate_reminder
( name: str, due_date: str, notes: str, list_name: str, priority: int,
src/tiny_agent/tiny_agent_tools.py:542
Functioncustom_http_exception_handler
Custom error handling for logging the errors to the TinyAgent log file.
run_tiny_agent_server.py:52
Functionevaluate_join
Returns 1.0 if the predicted join step is correct, else 0.0.
src/utils/plan_utils.py:128
Functionevaluate_plan
Returns the accuracy of the predicted plan based on the tool names and the right ordering.
src/utils/plan_utils.py:103
Functionevaluate_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
Functionexecute_command
This is the main endpoint that calls the TinyAgent to generate a response to the given query.
run_tiny_agent_server.py:61
Methodfind_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
Functionflush_results
(save_path, results)
src/utils/logger_utils.py:92
Functionforward_email
( recipients: list[str], cc: list[str], context: str, attachments: list[str],
src/tiny_agent/tiny_agent_tools.py:357
Methodfrom_agent_and_tools
Create from agent and tools.
src/executors/agent_executor.py:103
Methodfrom_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
Methodfrom_llm_and_tools
Construct an agent from an LLM and tools.
src/agents/agent.py:217
Methodfrom_llm_and_tools
Construct an agent from an LLM and tools.
src/agents/structured_chat_agent.py:103
Methodfrom_string
Create LLMChain from LLM and template.
src/chains/llm_chain.py:389
Methodget_all_stats
(self)
src/llm_compiler/llm_compiler.py:120
Functionget_email_address
(name: str)
src/tiny_agent/tiny_agent_tools.py:94
Functionget_logger
()
src/utils/logger_utils.py:56
Functionget_parsed_joinner_output
(raw_answer: str)
src/utils/plan_utils.py:82
Functionget_parsed_planner_output_from_raw
(raw_answer: str)
src/utils/plan_utils.py:77
Functionget_phone_number
(name: str)
src/tiny_agent/tiny_agent_tools.py:65
Methodget_results
(self, key: str)
src/utils/logger_utils.py:41
Methodget_stats
(self)
src/callbacks/callbacks.py:93
Functionget_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
Functionget_zoom_meeting_link
( topic: str, start_time: str, duration: int, meeting_invitees: list[str],
src/tiny_agent/tiny_agent_tools.py:628
Functioninitialize_data_objects
(json_path: str)
src/utils/data_utils.py:165
Methodinput_keys
(self)
src/llm_compiler/llm_compiler.py:138
Methodinput_keys
Return the input keys. :meta private:
src/executors/agent_executor.py:177
Methodinput_keys
Keys expected to be in the chain input.
src/chains/chain.py:170
Methodinput_keys
Will be whatever keys the prompt expects. :meta private:
src/chains/llm_chain.py:76
Methodinput_keys
Return the input keys. :meta private:
src/agents/agent.py:171
Methodinvoke
( self, input: Dict[str, Any], config: Optional[RunnableConfig] = None, **kwar
src/chains/chain.py:62
Methoditer
Enables iteration over steps taken to reach final output.
src/executors/agent_executor.py:158
Methodlc_serializable
(self)
src/chains/llm_chain.py:52
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:27
Methodlookup_tool
Lookup tool by name.
src/executors/agent_executor.py:195
Functionmaps_open_location
(location: str)
src/tiny_agent/tiny_agent_tools.py:404
Functionmaps_show_directions
( start_location: str, end_location: str, transport: str )
src/tiny_agent/tiny_agent_tools.py:421
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:210
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_error
( self, error: BaseException, *, run_id: UUID, parent_run_id: Optional
src/llm_compiler/planner.py:224
Methodon_llm_new_token
( self, token: str, *, run_id: UUID, parent_run_id: Optional[UUID] = N
src/llm_compiler/planner.py:177
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:174
Functionopen_and_get_file_path
(file_name: str)
src/tiny_agent/tiny_agent_tools.py:195
← previousnext →201–300 of 338, ranked by callers