MCPcopy Create free account

hub / github.com/ag2ai/ag2studio / functions

Functions312 in github.com/ag2ai/ag2studio

↓ 38 callersFunctionfetchJSON
( url: string | URL, payload: any = {}, onSuccess: (data: any) => void, onError: (error: IStatus) => v
frontend/src/components/utils.ts:71
↓ 20 callersFunctiontruncateText
(text: string, length = 50)
frontend/src/components/utils.ts:119
↓ 18 callersMethodget
List all entities
ag2studio/database/dbmanager.py:142
↓ 18 callersFunctiongetServerUrl
()
frontend/src/components/utils.ts:11
↓ 18 callersMethodlink
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 callersFunctiononControlChange
(value: any, key: string)
frontend/src/components/views/builder/utils/agentconfig.tsx:48
↓ 12 callersFunctiontimeAgo
( dateString: string, returnFormatted: boolean = false )
frontend/src/components/utils.ts:513
↓ 9 callersFunctionfetchTargetAgents
()
frontend/src/components/views/builder/utils/selectors.tsx:458
↓ 8 callersFunctionw
()
frontend/src/components/utils.ts:202
↓ 7 callersMethoddisconnect
Disconnects and removes a WebSocket connection from the active connections list. :param websocket: The WebSocket instance to remove.
ag2studio/chatmanager.py:203
↓ 7 callersFunctionlist_entity
List all entities for a user
ag2studio/web/app.py:134
↓ 5 callersFunctioncreate_entity
Create a new entity
ag2studio/web/app.py:118
↓ 5 callersFunctiondelete_entity
Delete an entity
ag2studio/web/app.py:146
↓ 5 callersMethodget_items
List all entities
ag2studio/database/dbmanager.py:94
↓ 5 callersFunctionupdateModelConfig
(key: string, value: string)
frontend/src/components/views/builder/utils/modelconfig.tsx:202
↓ 4 callersFunctionfetchAgents
()
frontend/src/components/views/builder/agents.tsx:86
↓ 4 callersFunctionfetchModels
()
frontend/src/components/views/builder/models.tsx:88
↓ 4 callersFunctionfetchWorkFlow
()
frontend/src/components/views/builder/workflow.tsx:49
↓ 4 callersMethodget_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 callersFunctionrunWorkflow
(query: string)
frontend/src/components/views/playground/chatbox.tsx:404
↓ 4 callersFunctionsampleWorkflowConfig
(type = "twoagents")
frontend/src/components/utils.ts:367
↓ 4 callersFunctionsanitizeConfig
( data: any, keys: string[] = ["api_key", "id", "created_at", "updated_at"] )
frontend/src/components/utils.ts:620
↓ 4 callersFunctionscrollChatBox
(element: any)
frontend/src/components/views/playground/chatbox.tsx:357
↓ 4 callersMethodsend
Sends a message by putting it into the message queue. :param message: The message string to be sent.
ag2studio/chatmanager.py:41
↓ 4 callersMethodunlink
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 callersMethod_serialize_agent
ag2studio/workflowmanager.py:64
↓ 3 callersFunctionfetchAgentModels
()
frontend/src/components/views/builder/utils/selectors.tsx:725
↓ 3 callersFunctionfetchAgentSkills
()
frontend/src/components/views/builder/utils/selectors.tsx:73
↓ 3 callersFunctionfetchGallery
(galleryId: string | null)
frontend/src/components/views/gallery/gallery.tsx:50
↓ 3 callersFunctionfetchSessions
()
frontend/src/components/views/playground/sessions.tsx:90
↓ 3 callersMethodrun
(self)
setup.py:13
↓ 3 callersMethodrun
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 callersMethodsend_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 callersFunctionupdateFlowConfig
(key: string, value: string)
frontend/src/components/views/builder/utils/workflowconfig.tsx:33
↓ 3 callersMethodupsert
Create a new entity
ag2studio/database/dbmanager.py:49
↓ 2 callersMethod__init__
Initializes the AutoGenFlow with agents specified in the config and optional message history. Args: config: The
ag2studio/workflowmanager.py:32
↓ 2 callersMethod_model_to_dict
(self, model_obj)
ag2studio/database/dbmanager.py:88
↓ 2 callersFunctioncloseModal
()
frontend/src/components/views/builder/models.tsx:248
↓ 2 callersFunctioncloseModal
()
frontend/src/components/views/builder/workflow.tsx:222
↓ 2 callersFunctioncloseModal
()
frontend/src/components/views/builder/agents.tsx:220
↓ 2 callersMethodconnect
Accepts a new WebSocket connection and appends it to the active connections list. :param websocket: The WebSocket instance represent
ag2studio/chatmanager.py:191
↓ 2 callersMethoddelete
Delete an entity
ag2studio/database/dbmanager.py:155
↓ 2 callersFunctionfetchAgents
()
frontend/src/components/views/builder/utils/selectors.tsx:430
↓ 2 callersFunctionfetchSkills
()
frontend/src/components/views/builder/skills.tsx:83
↓ 2 callersFunctionget_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 callersFunctionget_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 callersFunctionhandleRemoveAgent
(index: number)
frontend/src/components/views/builder/utils/selectors.tsx:580
↓ 2 callersFunctionlinkWorkflowAgent
( workflowId: number, targetAgentId: number, agentType: string )
frontend/src/components/views/builder/utils/selectors.tsx:1042
↓ 2 callersMethodload
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 callersFunctionlogout
()
frontend/src/hooks/provider.tsx:46
↓ 2 callersFunctiononError
(err: any)
frontend/src/components/views/playground/ra.tsx:49
↓ 2 callersFunctionprocessAgentResponse
(data: any)
frontend/src/components/views/playground/chatbox.tsx:366
↓ 2 callersFunctionrun_command
Run a command and return its result.
build_frontend.py:9
↓ 2 callersFunctionsanitize_model
Sanitize model dictionary to remove None values and empty strings and only keep valid keys.
ag2studio/utils/utils.py:405
↓ 2 callersFunctionsaveSkill
(skill: ISkill)
frontend/src/components/views/builder/skills.tsx:112
↓ 2 callersFunctionsetLocalStorage
( name: string, value: any, stringify: boolean = true )
frontend/src/components/utils.ts:42
↓ 2 callersFunctionshowWorkflow
(config: IWorkflow)
frontend/src/components/views/builder/workflow.tsx:321
↓ 2 callersFunctionstr_to_datetime
(dt_str: str)
ag2studio/utils/utils.py:46
↓ 1 callersMethod_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 callersMethod_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 callersFunctionbuild_frontend
Build the frontend assets.
build_frontend.py:17
↓ 1 callersMethodchat
Processes an incoming message according to the agent's workflow configuration and generates a response. :param message: An i
ag2studio/chatmanager.py:50
↓ 1 callersFunctioncheckAndSanitizeInput
( text: string )
frontend/src/components/utils.ts:647
↓ 1 callersFunctioncheck_and_cast_datetime_fields
(obj: Any)
ag2studio/utils/utils.py:36
↓ 1 callersFunctionclassNames
(...classes: string[])
frontend/src/components/header.tsx:18
↓ 1 callersFunctionclear_folder
Clear the contents of a folder. :param folder_path: The path to the folder to clear.
ag2studio/utils/utils.py:53
↓ 1 callersFunctioncloseMessage
()
frontend/src/components/atoms.tsx:282
↓ 1 callersFunctioncreateAgent
(agent: IAgent)
frontend/src/components/views/builder/utils/agentconfig.tsx:69
↓ 1 callersFunctioncreateModel
(model: IModelConfig)
frontend/src/components/views/builder/utils/modelconfig.tsx:168
↓ 1 callersFunctioncreateSession
(session: IChatSession)
frontend/src/components/views/playground/sessions.tsx:163
↓ 1 callersFunctioncreateWorkflow
(workflow: IWorkflow)
frontend/src/components/views/builder/utils/workflowconfig.tsx:42
↓ 1 callersMethodcreate_db_and_tables
Create a new database and tables
ag2studio/database/dbmanager.py:38
↓ 1 callersFunctiondeleteAgent
(agent: IAgent)
frontend/src/components/views/builder/agents.tsx:52
↓ 1 callersFunctiondeleteModel
(model: IModelConfig)
frontend/src/components/views/builder/models.tsx:60
↓ 1 callersFunctiondeleteSession
(session: IChatSession)
frontend/src/components/views/playground/sessions.tsx:54
↓ 1 callersFunctiondeleteSkill
(skill: ISkill)
frontend/src/components/views/builder/skills.tsx:50
↓ 1 callersFunctiondeleteWorkFlow
(workflow: IWorkflow)
frontend/src/components/views/builder/workflow.tsx:76
↓ 1 callersMethoddisconnect_all
Disconnects all active WebSocket connections.
ag2studio/chatmanager.py:218
↓ 1 callersFunctiondump_agent
(agent: Agent)
ag2studio/database/utils.py:43
↓ 1 callersFunctioneraseCookie
(name: string)
frontend/src/components/utils.ts:115
↓ 1 callersFunctionextract_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 callersFunctionfetchData
()
frontend/src/components/atoms.tsx:623
↓ 1 callersFunctionfetchMessages
()
frontend/src/components/views/playground/ra.tsx:31
↓ 1 callersFunctionfetchModels
()
frontend/src/components/views/builder/utils/selectors.tsx:698
↓ 1 callersFunctionfetchSkills
()
frontend/src/components/views/builder/utils/selectors.tsx:44
↓ 1 callersFunctionfetchVersion
()
frontend/src/components/utils.ts:600
↓ 1 callersFunctionfetchWorkFlow
(workflowId: number)
frontend/src/components/views/playground/chatbox.tsx:380
↓ 1 callersFunctionfetchWorkFlow
()
frontend/src/components/views/playground/utils/selectors.tsx:32
↓ 1 callersFunctionformatDuration
(seconds: number)
frontend/src/components/utils.ts:234
↓ 1 callersFunctiongetConnectionColor
(status: string)
frontend/src/components/views/playground/chatbox.tsx:501
↓ 1 callersFunctiongetLocalStorage
(name: string, stringify: boolean = true)
frontend/src/components/utils.ts:54
↓ 1 callersFunctiongetSampleSkill
()
frontend/src/components/utils.ts:451
↓ 1 callersFunctionget_agent
(agent_id)
ag2studio/database/utils.py:56
↓ 1 callersFunctionget_app_root
Get the root directory of the application. :return: The root directory of the application.
ag2studio/utils/utils.py:244
↓ 1 callersFunctionget_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 callersFunctionget_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 callersFunctionguid
()
frontend/src/components/utils.ts:201
↓ 1 callersFunctionhandleDarkModeChange
(mode: string)
frontend/src/hooks/provider.tsx:53
↓ 1 callersFunctionhandleRemoveModel
(index: number)
frontend/src/components/views/builder/utils/selectors.tsx:893
↓ 1 callersFunctionhandleRemoveSkill
(index: number)
frontend/src/components/views/builder/utils/selectors.tsx:190
next →1–100 of 312, ranked by callers