Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ag2ai/ag2studio
/ functions
Functions
312 in github.com/ag2ai/ag2studio
⨍
Functions
312
◇
Types & classes
47
↳
Endpoints
32
↓ 38 callers
Function
fetchJSON
( url: string | URL, payload: any = {}, onSuccess: (data: any) => void, onError: (error: IStatus) => v
frontend/src/components/utils.ts:71
↓ 20 callers
Function
truncateText
(text: string, length = 50)
frontend/src/components/utils.ts:119
↓ 18 callers
Method
get
List all entities
ag2studio/database/dbmanager.py:142
↓ 18 callers
Function
getServerUrl
()
frontend/src/components/utils.ts:11
↓ 18 callers
Method
link
Link two entities together. Args: link_type (str): The type of link to create, e.g., "agent_model". primary_
ag2studio/database/dbmanager.py:268
↓ 13 callers
Function
onControlChange
(value: any, key: string)
frontend/src/components/views/builder/utils/agentconfig.tsx:48
↓ 12 callers
Function
timeAgo
( dateString: string, returnFormatted: boolean = false )
frontend/src/components/utils.ts:513
↓ 9 callers
Function
fetchTargetAgents
()
frontend/src/components/views/builder/utils/selectors.tsx:458
↓ 8 callers
Function
w
()
frontend/src/components/utils.ts:202
↓ 7 callers
Method
disconnect
Disconnects and removes a WebSocket connection from the active connections list. :param websocket: The WebSocket instance to remove.
ag2studio/chatmanager.py:203
↓ 7 callers
Function
list_entity
List all entities for a user
ag2studio/web/app.py:134
↓ 5 callers
Function
create_entity
Create a new entity
ag2studio/web/app.py:118
↓ 5 callers
Function
delete_entity
Delete an entity
ag2studio/web/app.py:146
↓ 5 callers
Method
get_items
List all entities
ag2studio/database/dbmanager.py:94
↓ 5 callers
Function
updateModelConfig
(key: string, value: string)
frontend/src/components/views/builder/utils/modelconfig.tsx:202
↓ 4 callers
Function
fetchAgents
()
frontend/src/components/views/builder/agents.tsx:86
↓ 4 callers
Function
fetchModels
()
frontend/src/components/views/builder/models.tsx:88
↓ 4 callers
Function
fetchWorkFlow
()
frontend/src/components/views/builder/workflow.tsx:49
↓ 4 callers
Method
get_linked_entities
Get all entities linked to the primary entity. Args: link_type (str): The type of link to retrieve, e.g., "agent_model".
ag2studio/database/dbmanager.py:199
↓ 4 callers
Function
runWorkflow
(query: string)
frontend/src/components/views/playground/chatbox.tsx:404
↓ 4 callers
Function
sampleWorkflowConfig
(type = "twoagents")
frontend/src/components/utils.ts:367
↓ 4 callers
Function
sanitizeConfig
( data: any, keys: string[] = ["api_key", "id", "created_at", "updated_at"] )
frontend/src/components/utils.ts:620
↓ 4 callers
Function
scrollChatBox
(element: any)
frontend/src/components/views/playground/chatbox.tsx:357
↓ 4 callers
Method
send
Sends a message by putting it into the message queue. :param message: The message string to be sent.
ag2studio/chatmanager.py:41
↓ 4 callers
Method
unlink
Unlink two entities. Args: link_type (str): The type of link to remove, e.g., "agent_model". primary_id (int
ag2studio/database/dbmanager.py:441
↓ 3 callers
Method
_serialize_agent
ag2studio/workflowmanager.py:64
↓ 3 callers
Function
fetchAgentModels
()
frontend/src/components/views/builder/utils/selectors.tsx:725
↓ 3 callers
Function
fetchAgentSkills
()
frontend/src/components/views/builder/utils/selectors.tsx:73
↓ 3 callers
Function
fetchGallery
(galleryId: string | null)
frontend/src/components/views/gallery/gallery.tsx:50
↓ 3 callers
Function
fetchSessions
()
frontend/src/components/views/playground/sessions.tsx:90
↓ 3 callers
Method
run
(self)
setup.py:13
↓ 3 callers
Method
run
Initiates a chat between the sender and receiver agents with an initial message and an option to clear the history. Args:
ag2studio/workflowmanager.py:265
↓ 3 callers
Method
send_message
Sends a JSON message to a single WebSocket connection. :param message: A JSON serializable dictionary containing the message to send
ag2studio/chatmanager.py:225
↓ 3 callers
Function
updateFlowConfig
(key: string, value: string)
frontend/src/components/views/builder/utils/workflowconfig.tsx:33
↓ 3 callers
Method
upsert
Create a new entity
ag2studio/database/dbmanager.py:49
↓ 2 callers
Method
__init__
Initializes the AutoGenFlow with agents specified in the config and optional message history. Args: config: The
ag2studio/workflowmanager.py:32
↓ 2 callers
Method
_model_to_dict
(self, model_obj)
ag2studio/database/dbmanager.py:88
↓ 2 callers
Function
closeModal
()
frontend/src/components/views/builder/models.tsx:248
↓ 2 callers
Function
closeModal
()
frontend/src/components/views/builder/workflow.tsx:222
↓ 2 callers
Function
closeModal
()
frontend/src/components/views/builder/agents.tsx:220
↓ 2 callers
Method
connect
Accepts a new WebSocket connection and appends it to the active connections list. :param websocket: The WebSocket instance represent
ag2studio/chatmanager.py:191
↓ 2 callers
Method
delete
Delete an entity
ag2studio/database/dbmanager.py:155
↓ 2 callers
Function
fetchAgents
()
frontend/src/components/views/builder/utils/selectors.tsx:430
↓ 2 callers
Function
fetchSkills
()
frontend/src/components/views/builder/skills.tsx:83
↓ 2 callers
Function
get_db_uri
Get the default database URI for the application. :param app_root: The root directory of the application. :return: The default database
ag2studio/utils/utils.py:258
↓ 2 callers
Function
get_file_type
Get file type determined by the file extension. If the file extension is not recognized, 'unknown' will be used as the file type. :p
ag2studio/utils/utils.py:73
↓ 2 callers
Function
handleRemoveAgent
(index: number)
frontend/src/components/views/builder/utils/selectors.tsx:580
↓ 2 callers
Function
linkWorkflowAgent
( workflowId: number, targetAgentId: number, agentType: string )
frontend/src/components/views/builder/utils/selectors.tsx:1042
↓ 2 callers
Method
load
Loads an agent based on the provided agent specification. Args: agent_spec: The specification of the agent to be loaded.
ag2studio/workflowmanager.py:221
↓ 2 callers
Function
logout
()
frontend/src/hooks/provider.tsx:46
↓ 2 callers
Function
onError
(err: any)
frontend/src/components/views/playground/ra.tsx:49
↓ 2 callers
Function
processAgentResponse
(data: any)
frontend/src/components/views/playground/chatbox.tsx:366
↓ 2 callers
Function
run_command
Run a command and return its result.
build_frontend.py:9
↓ 2 callers
Function
sanitize_model
Sanitize model dictionary to remove None values and empty strings and only keep valid keys.
ag2studio/utils/utils.py:405
↓ 2 callers
Function
saveSkill
(skill: ISkill)
frontend/src/components/views/builder/skills.tsx:112
↓ 2 callers
Function
setLocalStorage
( name: string, value: any, stringify: boolean = true )
frontend/src/components/utils.ts:42
↓ 2 callers
Function
showWorkflow
(config: IWorkflow)
frontend/src/components/views/builder/workflow.tsx:321
↓ 2 callers
Function
str_to_datetime
(dt_str: str)
ag2studio/utils/utils.py:46
↓ 1 callers
Method
_generate_output
Generates the output response based on the workflow configuration and agent history. :param message_text: The text of the incoming m
ag2studio/chatmanager.py:118
↓ 1 callers
Method
_populate_history
Populates the agent message history from the provided list of messages. Args: history: A list of messages to populate th
ag2studio/workflowmanager.py:151
↓ 1 callers
Function
build_frontend
Build the frontend assets.
build_frontend.py:17
↓ 1 callers
Method
chat
Processes an incoming message according to the agent's workflow configuration and generates a response. :param message: An i
ag2studio/chatmanager.py:50
↓ 1 callers
Function
checkAndSanitizeInput
( text: string )
frontend/src/components/utils.ts:647
↓ 1 callers
Function
check_and_cast_datetime_fields
(obj: Any)
ag2studio/utils/utils.py:36
↓ 1 callers
Function
classNames
(...classes: string[])
frontend/src/components/header.tsx:18
↓ 1 callers
Function
clear_folder
Clear the contents of a folder. :param folder_path: The path to the folder to clear.
ag2studio/utils/utils.py:53
↓ 1 callers
Function
closeMessage
()
frontend/src/components/atoms.tsx:282
↓ 1 callers
Function
createAgent
(agent: IAgent)
frontend/src/components/views/builder/utils/agentconfig.tsx:69
↓ 1 callers
Function
createModel
(model: IModelConfig)
frontend/src/components/views/builder/utils/modelconfig.tsx:168
↓ 1 callers
Function
createSession
(session: IChatSession)
frontend/src/components/views/playground/sessions.tsx:163
↓ 1 callers
Function
createWorkflow
(workflow: IWorkflow)
frontend/src/components/views/builder/utils/workflowconfig.tsx:42
↓ 1 callers
Method
create_db_and_tables
Create a new database and tables
ag2studio/database/dbmanager.py:38
↓ 1 callers
Function
deleteAgent
(agent: IAgent)
frontend/src/components/views/builder/agents.tsx:52
↓ 1 callers
Function
deleteModel
(model: IModelConfig)
frontend/src/components/views/builder/models.tsx:60
↓ 1 callers
Function
deleteSession
(session: IChatSession)
frontend/src/components/views/playground/sessions.tsx:54
↓ 1 callers
Function
deleteSkill
(skill: ISkill)
frontend/src/components/views/builder/skills.tsx:50
↓ 1 callers
Function
deleteWorkFlow
(workflow: IWorkflow)
frontend/src/components/views/builder/workflow.tsx:76
↓ 1 callers
Method
disconnect_all
Disconnects all active WebSocket connections.
ag2studio/chatmanager.py:218
↓ 1 callers
Function
dump_agent
(agent: Agent)
ag2studio/database/utils.py:43
↓ 1 callers
Function
eraseCookie
(name: string)
frontend/src/components/utils.ts:115
↓ 1 callers
Function
extract_successful_code_blocks
Parses through a list of messages containing code blocks and execution statuses, returning the array of code blocks that executed successfull
ag2studio/utils/utils.py:376
↓ 1 callers
Function
fetchData
()
frontend/src/components/atoms.tsx:623
↓ 1 callers
Function
fetchMessages
()
frontend/src/components/views/playground/ra.tsx:31
↓ 1 callers
Function
fetchModels
()
frontend/src/components/views/builder/utils/selectors.tsx:698
↓ 1 callers
Function
fetchSkills
()
frontend/src/components/views/builder/utils/selectors.tsx:44
↓ 1 callers
Function
fetchVersion
()
frontend/src/components/utils.ts:600
↓ 1 callers
Function
fetchWorkFlow
(workflowId: number)
frontend/src/components/views/playground/chatbox.tsx:380
↓ 1 callers
Function
fetchWorkFlow
()
frontend/src/components/views/playground/utils/selectors.tsx:32
↓ 1 callers
Function
formatDuration
(seconds: number)
frontend/src/components/utils.ts:234
↓ 1 callers
Function
getConnectionColor
(status: string)
frontend/src/components/views/playground/chatbox.tsx:501
↓ 1 callers
Function
getLocalStorage
(name: string, stringify: boolean = true)
frontend/src/components/utils.ts:54
↓ 1 callers
Function
getSampleSkill
()
frontend/src/components/utils.ts:451
↓ 1 callers
Function
get_agent
(agent_id)
ag2studio/database/utils.py:56
↓ 1 callers
Function
get_app_root
Get the root directory of the application. :return: The root directory of the application.
ag2studio/utils/utils.py:244
↓ 1 callers
Function
get_modified_files
Identify files from source_dir that were modified within a specified timestamp range. The function excludes files with certain file extension
ag2studio/utils/utils.py:187
↓ 1 callers
Function
get_skills_from_prompt
Create a prompt with the content of all skills and write the skills to a file named skills.py in the work_dir. :param skills: A dictionary s
ag2studio/utils/utils.py:306
↓ 1 callers
Function
guid
()
frontend/src/components/utils.ts:201
↓ 1 callers
Function
handleDarkModeChange
(mode: string)
frontend/src/hooks/provider.tsx:53
↓ 1 callers
Function
handleRemoveModel
(index: number)
frontend/src/components/views/builder/utils/selectors.tsx:893
↓ 1 callers
Function
handleRemoveSkill
(index: number)
frontend/src/components/views/builder/utils/selectors.tsx:190
next →
1–100 of 312, ranked by callers