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
↓ 1 callers
Function
add_dependencies
(dependencies: list[Any], node_name: str)
src/utils/graph_utils.py:34
↓ 1 callers
Method
ainvoke
( self, input: Union[str, Dict], config: Optional[RunnableConfig] = None, **kw
src/tools/base.py:106
↓ 1 callers
Method
aplan
Given input, asynchronously decide what to do.
src/llm_compiler/planner.py:334
↓ 1 callers
Method
aplan
Given input, decided what to do. Args: intermediate_steps: Steps the LLM has taken to date, along with observatio
src/agents/agent.py:127
↓ 1 callers
Method
append_to_note
Appends content to an existing note by its name. If the exact name is not found, attempts fuzzy matching to find the closest note.
src/tiny_agent/tools/notes.py:127
↓ 1 callers
Method
apply
Utilize the LLM generate method for speed gains.
src/chains/llm_chain.py:223
↓ 1 callers
Method
aprep_prompts
Prepare prompts from inputs.
src/chains/llm_chain.py:197
↓ 1 callers
Method
arun
(self, prompt: str, callbacks=None)
src/llm_compiler/llm_compiler.py:29
↓ 1 callers
Method
aschedule
Asynchronously listen to task_queue and schedule tasks as they arrive.
src/llm_compiler/task_fetching_unit.py:149
↓ 1 callers
Function
compare_dependencies
(d1, d2)
src/utils/graph_utils.py:114
↓ 1 callers
Method
compose_email
Composes a new email with the given recipients, subject, content, and attaches files from the given paths. Adds cc recipients if prov
src/tiny_agent/tools/mail.py:11
↓ 1 callers
Method
create_event
Creates a new event with the given title, start date, end date, location, and notes.
src/tiny_agent/tools/calendar.py:12
↓ 1 callers
Method
create_note
Creates a new note with the given content and focuses on it. If a folder is specified, the note is created in that folder; otherwise,
src/tiny_agent/tools/notes.py:16
↓ 1 callers
Method
create_prompt
( cls, tools: Sequence[BaseTool], prefix: str = PREFIX, suffix: str = SUFFIX,
src/agents/structured_chat_agent.py:74
↓ 1 callers
Method
create_reminder
( self, name: str, due_date: datetime.datetime | None = None, notes: str = "",
src/tiny_agent/tools/reminders.py:12
↓ 1 callers
Function
create_schema_from_function
Create a pydantic schema from a function's signature. Args: model_name: Name to assign to the generated pydandic schema func: Func
src/tools/base.py:57
↓ 1 callers
Function
default_dependency_rule
(idx, args: str)
src/llm_compiler/output_parser.py:19
↓ 1 callers
Function
deserialize_data
(data_json: dict[str, Any])
src/utils/data_utils.py:106
↓ 1 callers
Method
dict
Dictionary representation of chain. Expects `Chain._chain_type` property to be implemented and for memory to be null. Ar
src/chains/chain.py:584
↓ 1 callers
Method
dict
Return dictionary representation of agent.
src/agents/agent.py:60
↓ 1 callers
Function
empty_queue
(q: asyncio.Queue)
run_tiny_agent_server.py:37
↓ 1 callers
Function
enable_logging
Toggle logging on or off based on the given argument.
src/utils/logger_utils.py:63
↓ 1 callers
Function
enable_logging_to_file
Toggle logging on or off based on the given argument.
src/utils/logger_utils.py:69
↓ 1 callers
Function
ensure_phone_number_formatting
( phone_numbers: Sequence[str], computer: Computer )
src/tiny_agent/tiny_agent_tools.py:30
↓ 1 callers
Method
finalize
(self)
src/llm_compiler/planner.py:146
↓ 1 callers
Method
forward_email
Forwards the currently selected email in Mail to the given recipients with the given content.
src/tiny_agent/tools/mail.py:93
↓ 1 callers
Method
from_function
Initialize tool from a function.
src/tools/base.py:198
↓ 1 callers
Function
generate
()
run_tiny_agent_server.py:86
↓ 1 callers
Method
get_allowed_tools
(self)
src/agents/agent.py:71
↓ 1 callers
Function
get_append_note_content_tool
(computer: Computer, notes_agent: NotesAgent)
src/tiny_agent/tiny_agent_tools.py:508
↓ 1 callers
Function
get_compose_new_email_tool
( computer: Computer, compose_email_agent: ComposeEmailAgent )
src/tiny_agent/tiny_agent_tools.py:241
↓ 1 callers
Function
get_create_calendar_event_tool
(computer: Computer)
src/tiny_agent/tiny_agent_tools.py:118
↓ 1 callers
Function
get_create_note_tool
(computer: Computer, notes_agent: NotesAgent)
src/tiny_agent/tiny_agent_tools.py:461
↓ 1 callers
Function
get_create_reminder_tool
(computer: Computer)
src/tiny_agent/tiny_agent_tools.py:541
↓ 1 callers
Function
get_email_address_tool
(computer: Computer)
src/tiny_agent/tiny_agent_tools.py:93
↓ 1 callers
Method
get_email_content
Gets the content of the currently viewed email in Mail.
src/tiny_agent/tools/mail.py:135
↓ 1 callers
Function
get_embedding_model
( model_type: str, model_name: str, api_key: str, azure_embedding_deployment: str, azure_e
src/utils/model_utils.py:83
↓ 1 callers
Function
get_forward_email_tool
(computer: Computer)
src/tiny_agent/tiny_agent_tools.py:356
↓ 1 callers
Function
get_maps_open_location_tool
(computer: Computer)
src/tiny_agent/tiny_agent_tools.py:403
↓ 1 callers
Function
get_maps_show_directions_tool
(computer: Computer)
src/tiny_agent/tiny_agent_tools.py:420
↓ 1 callers
Method
get_meeting_link
Create a new Zoom meeting and return the join URL.
src/tiny_agent/tools/zoom.py:25
↓ 1 callers
Function
get_open_and_get_file_path_tool
(computer: Computer)
src/tiny_agent/tiny_agent_tools.py:194
↓ 1 callers
Function
get_open_note_tool
(computer: Computer)
src/tiny_agent/tiny_agent_tools.py:491
↓ 1 callers
Function
get_parsed_planner_output
(tasks: dict[int, Any])
src/utils/plan_utils.py:62
↓ 1 callers
Function
get_phone_number_tool
(computer: Computer)
src/tiny_agent/tiny_agent_tools.py:64
↓ 1 callers
Function
get_reply_to_email_tool
( computer: Computer, compose_email_agent: ComposeEmailAgent )
src/tiny_agent/tiny_agent_tools.py:304
↓ 1 callers
Function
get_send_sms_tool
(computer: Computer)
src/tiny_agent/tiny_agent_tools.py:596
↓ 1 callers
Function
get_summarize_pdf_tool
( computer: Computer, pdf_summarizer_agent: PDFSummarizerAgent )
src/tiny_agent/tiny_agent_tools.py:209
↓ 1 callers
Function
get_tool_names_from_apps
(apps: Collection[App])
src/tiny_agent/tiny_agent_tools.py:707
↓ 1 callers
Function
get_whisper_config
(config: dict[str, Any], provider: str)
src/tiny_agent/config.py:120
↓ 1 callers
Function
get_zoom_meeting_link_tool
( computer: Computer, zoom_access_token: str | None )
src/tiny_agent/tiny_agent_tools.py:617
↓ 1 callers
Method
ingest_token
(self, token: str)
src/llm_compiler/planner.py:132
↓ 1 callers
Function
load_config
(config_path: str)
src/tiny_agent/config.py:44
↓ 1 callers
Function
node_match
(n1: dict, n2: dict)
src/utils/graph_utils.py:109
↓ 1 callers
Method
open_location
Opens the specified location in Apple Maps. The query can be a place name, address, or coordinates.
src/tiny_agent/tools/maps.py:11
↓ 1 callers
Method
parse
(self, text: str)
src/llm_compiler/output_parser.py:32
↓ 1 callers
Function
parse_plan
(plan: str)
src/utils/plan_utils.py:29
↓ 1 callers
Method
plan
( self, inputs: dict, is_replan: bool, callbacks: Callbacks = None, **kwargs: Any )
src/llm_compiler/planner.py:325
↓ 1 callers
Method
plan
Given input, decided what to do. Args: intermediate_steps: Steps the LLM has taken to date, along with observatio
src/agents/agent.py:99
↓ 1 callers
Method
prep_prompts
Prepare prompts from inputs.
src/chains/llm_chain.py:171
↓ 1 callers
Method
reply_to_email
Replies to the currently selected email in Mail with the given content.
src/tiny_agent/tools/mail.py:54
↓ 1 callers
Method
resample_audio
Resample the audio to the target sample rate which the Whisper server expects
src/tiny_agent/transcription.py:33
↓ 1 callers
Method
retrieve_examples_and_tools
Returns the in-context examples as a formatted prompt and the tools that are relevant to the query.
src/tiny_agent/tool_rag/base_tool_rag.py:71
↓ 1 callers
Method
save
Raise error - saving not supported for Agent Executors.
src/executors/agent_executor.py:146
↓ 1 callers
Method
schedule
Run all tasks in self.tasks in parallel, respecting dependencies.
src/llm_compiler/task_fetching_unit.py:136
↓ 1 callers
Method
send
Opens an SMS draft to the specified recipient using the Messages app, without sending it, by simulating keystrokes.
src/tiny_agent/tools/sms.py:11
↓ 1 callers
Method
show_directions
Shows directions from a start location to an end location in Apple Maps. The transport parameter defaults to 'd' (driving), but can a
src/tiny_agent/tools/maps.py:22
↓ 1 callers
Method
transcribe
Transcribe the audio to text using Whisper.
src/tiny_agent/transcription.py:27
↓ 1 callers
Method
transcribe
This method transcribes the audio data to text using Whisper.
src/tiny_agent/transcription.py:112
Method
__call__
(self)
src/llm_compiler/task_fetching_unit.py:53
Method
__call__
Execute the chain. Args: inputs: Dictionary of inputs, or single input if chain expects only one param. Should co
src/chains/chain.py:238
Method
__call__
( self, name: str, content: str, prev_content: str = "", mode: NotesMo
src/tiny_agent/sub_agents/notes_agent.py:12
Method
__call__
( self, context: str, email_thread: str = "", mode: ComposeEmailMode = Compose
src/tiny_agent/sub_agents/compose_email_agent.py:21
Method
__call__
(self, pdf_path: str)
src/tiny_agent/sub_agents/pdf_summarizer_agent.py:16
Method
__call__
(self, *args, **kwargs)
src/tiny_agent/sub_agents/sub_agent.py:35
Method
__init__
Initialize tool.
src/tools/base.py:189
Method
__init__
(self)
src/utils/logger_utils.py:22
Method
__init__
(self, tools: Sequence[Union[Tool, StructuredTool]])
src/llm_compiler/planner.py:98
Method
__init__
( self, queue: asyncio.Queue[Optional[str]], tools: Sequence[Union[Tool, StructuredToo
src/llm_compiler/planner.py:164
Method
__init__
( self, llm: BaseChatModel | BaseLLM, custom_instructions: str | None, example
src/llm_compiler/planner.py:251
Method
__init__
(self, llm: BaseLLM)
src/llm_compiler/llm_compiler.py:26
Method
__init__
Args: tools: List of tools to use. max_replans: Maximum number of replans to do. benchmark: Whether to co
src/llm_compiler/llm_compiler.py:51
Method
__init__
(self, tools: Sequence[Union[Tool, StructuredTool]], **kwargs)
src/llm_compiler/output_parser.py:28
Method
__init__
(self)
src/llm_compiler/task_fetching_unit.py:87
Method
__init__
(self, stream: bool = False)
src/callbacks/callbacks.py:48
Method
__init__
(self, config: TinyAgentConfig)
src/tiny_agent/transcription.py:23
Method
__init__
(self, config: TinyAgentConfig)
src/tiny_agent/transcription.py:40
Method
__init__
(self, config: TinyAgentConfig)
src/tiny_agent/transcription.py:69
Method
__init__
(self, client: WhisperClient)
src/tiny_agent/transcription.py:109
Method
__init__
(self, config: TinyAgentConfig)
src/tiny_agent/tiny_agent.py:36
Method
__init__
(self)
src/tiny_agent/computer.py:23
Method
__init__
(self)
src/tiny_agent/tools/calendar.py:9
Method
__init__
(self)
src/tiny_agent/tools/notes.py:13
Method
__init__
(self, access_token: str)
src/tiny_agent/tools/zoom.py:22
Method
__init__
(self)
src/tiny_agent/tools/sms.py:8
Method
__init__
(self)
src/tiny_agent/tools/reminders.py:9
Method
__init__
(self)
src/tiny_agent/tools/spotlight_search.py:10
Method
__init__
(self)
src/tiny_agent/tools/contacts.py:7
Method
__init__
(self)
src/tiny_agent/tools/mail.py:8
Method
__init__
(self)
src/tiny_agent/tools/maps.py:8
← previous
next →
101–200 of 338, ranked by callers