MCPcopy Create free account

hub / github.com/chainlit/chainlit / functions

Functions973 in github.com/chainlit/chainlit

↓ 128 callersMethodget
(self)
backend/chainlit/chat_context.py:12
↓ 67 callersMethodget
(endpoint: string, token?: string)
libs/react-client/src/api/index.tsx:115
↓ 58 callersMethodsend
(self)
backend/chainlit/step.py:352
↓ 40 callersFunctionget_data_layer
()
backend/chainlit/data/__init__.py:19
↓ 35 callersFunctionrunTestServer
( mode: ExecutionMode = undefined, env?: Record<string, string> )
cypress/support/testUtils.ts:27
↓ 29 callersFunctiontrace_event
(event_name)
backend/chainlit/telemetry.py:87
↓ 27 callersFunctionuseConfig
(accessToken?: string)
libs/react-client/src/useConfig.ts:8
↓ 23 callersMethodemit
Get the 'emit' property from the session.
backend/chainlit/emitter.py:146
↓ 22 callersMethodset
(self, key, value)
backend/chainlit/user_session.py:38
↓ 20 callersFunctionuseChatInteract
()
libs/react-client/src/useChatInteract.ts:29
↓ 17 callersMethodupdate
Update a step already sent to the UI.
backend/chainlit/step.py:301
↓ 16 callersFunctionuseTranslation
()
frontend/src/components/i18n/Translator.tsx:30
↓ 16 callersFunctionwrap_user_function
Wraps a user-defined function to accept arguments as a dictionary. Args: user_function (Callable): The user-defined function to wrap
backend/chainlit/utils.py:17
↓ 15 callersMethodto_dict
(self)
backend/chainlit/step.py:279
↓ 14 callersFunctionsubmitMessage
(message: string)
cypress/support/testUtils.ts:5
↓ 14 callersFunctionuseAuth
()
libs/react-client/src/api/hooks/auth.ts:16
↓ 13 callersMethodpost
( endpoint: string, data: Payload, token?: string, signal?: AbortSignal )
libs/react-client/src/api/index.tsx:119
↓ 13 callersMethodpush
(self, item: T)
backend/chainlit/haystack/callbacks.py:23
↓ 13 callersFunctionuseChatMessages
()
libs/react-client/src/useChatMessages.ts:9
↓ 12 callersMethodexecute_sql
( self, query: str, parameters: dict )
backend/chainlit/data/sql_alchemy.py:75
↓ 11 callersMethodpop
(self)
backend/chainlit/haystack/callbacks.py:26
↓ 11 callersFunctionuseChatData
()
libs/react-client/src/useChatData.ts:23
↓ 10 callersMethodbuildEndpoint
(path: string)
libs/react-client/src/api/index.tsx:51
↓ 10 callersFunctioninit_ws_context
(session_or_sid: Union[WebsocketSession, str])
backend/chainlit/context.py:64
↓ 10 callersMethodsend
Send the message to the UI and persist it in the cloud if a project ID is configured. Return the ID of the message.
backend/chainlit/message.py:257
↓ 10 callersMethodtoString
()
libs/react-client/src/api/index.tsx:32
↓ 10 callersFunctionuseChatSession
()
libs/react-client/src/useChatSession.ts:46
↓ 9 callersFunctionuseLayoutMaxWidth
()
frontend/src/hooks/useLayoutMaxWidth.tsx:1
↓ 8 callersMethodcreate_user
(self, user: "User")
backend/chainlit/data/base.py:28
↓ 8 callersMethodremove
Remove a step already sent to the UI.
backend/chainlit/step.py:331
↓ 7 callersMethodfrom_dict
(cls, page_info_dict: Dict)
backend/chainlit/types.py:67
↓ 7 callersFunctionrun_sync
Run the coroutine synchronously.
backend/chainlit/sync.py:23
↓ 7 callersMethodtask_end
Send a task end signal to the UI.
backend/chainlit/emitter.py:343
↓ 6 callersMethodclear
(self, event: Literal["clear_ask", "clear_call_fn"])
backend/chainlit/emitter.py:179
↓ 6 callersMethodtask_start
Send a task start signal to the UI.
backend/chainlit/emitter.py:337
↓ 6 callersMethodupdate_thread
( self, thread_id: str, name: Optional[str] = None, user_id: Optional[str] = N
backend/chainlit/data/base.py:95
↓ 6 callersMethodupsert_feedback
( self, feedback: Feedback, )
backend/chainlit/data/base.py:39
↓ 6 callersFunctionuseApi
( path?: string | null, { token, ...swrConfig }: SWRConfiguration & { token?: string } = {} )
libs/react-client/src/api/hooks/api.ts:17
↓ 6 callersFunctionuseIsDarkMode
()
frontend/src/hooks/useIsDarkMode.tsx:3
↓ 5 callersMethod__post_init__
(self)
backend/chainlit/message.py:47
↓ 5 callersMethod_serialize_item
(self, item: Dict[str, Any])
backend/chainlit/data/dynamodb.py:63
↓ 5 callersMethodadd
(self, message: "Message")
backend/chainlit/chat_context.py:22
↓ 5 callersFunctioncheck_module_version
Check the version of a module. Args: name (str): A module name. version (str): Minimum version. Returns: (bool)
backend/chainlit/utils.py:77
↓ 5 callersMethodfetch
( method: string, path: string, token?: string, data?: Payload, signal?: AbortSignal )
libs/react-client/src/api/index.tsx:69
↓ 5 callersMethodpersist_file
( self, name: str, mime: str, path: Optional[str] = None, content: Opt
backend/chainlit/session.py:101
↓ 5 callersMethodrequire
Throws an exception if the session is not found.
backend/chainlit/session.py:297
↓ 5 callersMethodsend_step
(self, step_dict: StepDict)
backend/chainlit/slack/app.py:65
↓ 5 callersMethodto_persistable
(self)
backend/chainlit/session.py:150
↓ 4 callersMethod_create
(self)
backend/chainlit/message.py:143
↓ 4 callersMethod_deserialize_item
(self, item: Dict[str, Any])
backend/chainlit/data/dynamodb.py:68
↓ 4 callersMethod_run_sync
(self, co)
backend/chainlit/langchain/callbacks.py:394
↓ 4 callersFunctioncheck_add_step_in_cot
(step: "Step")
backend/chainlit/step.py:22
↓ 4 callersFunctionclear
()
frontend/src/components/organisms/sidebar/threadHistory/filters/SearchBar.tsx:30
↓ 4 callersFunctionclear
(_sid)
backend/chainlit/socket.py:222
↓ 4 callersFunctioncreate_jwt
(data: User)
backend/chainlit/auth.py:51
↓ 4 callersMethoddelete
Delete the session.
backend/chainlit/session.py:190
↓ 4 callersFunctiongetRouterBasename
()
frontend/src/utils/router.ts:1
↓ 4 callersFunctionhasMessageById
(messages: IStep[], messageId: string)
libs/react-client/src/utils/message.ts:118
↓ 4 callersMethodinit_thread
(self, interaction: str)
backend/chainlit/emitter.py:203
↓ 4 callersFunctionis_path_inside
Check if the child path is inside the parent path.
backend/chainlit/_utils.py:6
↓ 4 callersFunctionrequire_login
()
backend/chainlit/auth.py:31
↓ 4 callersFunctionstub_step
(step: "Step")
backend/chainlit/step.py:33
↓ 4 callersMethodto_dict
(self)
backend/chainlit/message.py:74
↓ 4 callersFunctionupdateMessageById
( messages: IStep[], messageId: string, updatedMessage: IStep )
libs/react-client/src/utils/message.ts:122
↓ 4 callersFunctionuseUpload
({ onError, onResolved, options, spec }: useUploadProps)
frontend/src/hooks/useUpload.tsx:18
↓ 3 callersMethod__post_init__
(self)
backend/chainlit/element.py:232
↓ 3 callersMethod_create
(self)
backend/chainlit/element.py:140
↓ 3 callersFunctionaddMessage
(messages: IStep[], message: IStep)
libs/react-client/src/utils/message.ts:33
↓ 3 callersMethoddeleteFeedback
( feedbackId: string, accessToken?: string )
libs/react-client/src/api/index.tsx:165
↓ 3 callersMethoddelete_step
Delete a message in the UI.
backend/chainlit/emitter.py:172
↓ 3 callersMethodget
Get session by socket id.
backend/chainlit/session.py:287
↓ 3 callersMethodget_authorization_server_path
(self)
backend/chainlit/oauth_providers.py:330
↓ 3 callersMethodget_by_id
Get session by session id.
backend/chainlit/session.py:292
↓ 3 callersFunctionget_configured_oauth_providers
()
backend/chainlit/oauth_providers.py:644
↓ 3 callersFunctionget_context
()
backend/chainlit/context.py:105
↓ 3 callersFunctionget_jwt_secret
()
backend/chainlit/auth.py:16
↓ 3 callersFunctionget_oauth_provider
(provider: str)
backend/chainlit/oauth_providers.py:637
↓ 3 callersFunctionget_user_facing_url
Return the user facing URL for a given URL. Handles deployment with proxies (like cloud run).
backend/chainlit/server.py:335
↓ 3 callersFunctioninit_http_context
( thread_id: Optional[str] = None, user: Optional[Union["User", "PersistedUser"]] = None, auth_tok
backend/chainlit/context.py:74
↓ 3 callersFunctionis_thread_author
(username: str, thread_id: str)
backend/chainlit/data/acl.py:5
↓ 3 callersFunctionload_module
Load the specified module.
backend/chainlit/config.py:415
↓ 3 callersFunctiononError
(error: ClientError)
frontend/src/api/index.ts:21
↓ 3 callersFunctionon_chat_end
Hook to react to the user websocket disconnect event. Args: func (Callable[], Any]): The disconnect hook to execute. Returns:
backend/chainlit/callbacks.py:197
↓ 3 callersFunctionon_chat_start
Hook to react to the user websocket connection event. Args: func (Callable[], Any]): The connection hook to execute. Returns:
backend/chainlit/callbacks.py:127
↓ 3 callersMethodon_event_end
Run when an event ends.
backend/chainlit/llama_index/callbacks.py:89
↓ 3 callersMethodon_event_start
Run when an event starts and return id of event.
backend/chainlit/llama_index/callbacks.py:48
↓ 3 callersFunctionon_message
(message: discord.Message)
backend/chainlit/discord/app.py:291
↓ 3 callersFunctionrandom_secret
(length: int = 64)
backend/chainlit/secret.py:8
↓ 3 callersMethodremove
Remove a message already sent to the UI.
backend/chainlit/message.py:123
↓ 3 callersMethodsend_ask_user
Send a prompt to the UI and wait for a response.
backend/chainlit/emitter.py:247
↓ 3 callersMethodsend_timeout
(self, event: Literal["ask_timeout", "call_fn_timeout"])
backend/chainlit/emitter.py:176
↓ 3 callersMethodsend_token
Send a message token to the UI.
backend/chainlit/emitter.py:354
↓ 3 callersMethodsetFeedback
( feedback: IFeedback, accessToken?: string )
libs/react-client/src/api/index.tsx:157
↓ 3 callersFunctionstep
Step decorator for async and sync functions.
backend/chainlit/step.py:75
↓ 3 callersMethodstream_start
Send a stream start signal to the UI.
backend/chainlit/emitter.py:347
↓ 3 callersMethodstream_token
Sends a token to the UI. Once all tokens have been streamed, call .send() to end the stream and persist the step if persistence is en
backend/chainlit/step.py:385
↓ 3 callersMethodupdate_step
(self, step_dict: StepDict)
backend/chainlit/slack/app.py:114
↓ 3 callersMethodupload_file
( self, object_key: str, data: Union[bytes, str], mime: str = "application/oct
backend/chainlit/data/base.py:114
↓ 3 callersFunctionuseQuery
()
frontend/src/hooks/query.ts:4
↓ 2 callersFunctionAttachment
({ name, mime, children }: Props)
frontend/src/components/atoms/Attachment.tsx:13
next →1–100 of 973, ranked by callers