Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/chainlit/chainlit
/ functions
Functions
973 in github.com/chainlit/chainlit
⨍
Functions
973
◇
Types & classes
248
↳
Endpoints
28
↓ 128 callers
Method
get
(self)
backend/chainlit/chat_context.py:12
↓ 67 callers
Method
get
(endpoint: string, token?: string)
libs/react-client/src/api/index.tsx:115
↓ 58 callers
Method
send
(self)
backend/chainlit/step.py:352
↓ 40 callers
Function
get_data_layer
()
backend/chainlit/data/__init__.py:19
↓ 35 callers
Function
runTestServer
( mode: ExecutionMode = undefined, env?: Record<string, string> )
cypress/support/testUtils.ts:27
↓ 29 callers
Function
trace_event
(event_name)
backend/chainlit/telemetry.py:87
↓ 27 callers
Function
useConfig
(accessToken?: string)
libs/react-client/src/useConfig.ts:8
↓ 23 callers
Method
emit
Get the 'emit' property from the session.
backend/chainlit/emitter.py:146
↓ 22 callers
Method
set
(self, key, value)
backend/chainlit/user_session.py:38
↓ 20 callers
Function
useChatInteract
()
libs/react-client/src/useChatInteract.ts:29
↓ 17 callers
Method
update
Update a step already sent to the UI.
backend/chainlit/step.py:301
↓ 16 callers
Function
useTranslation
()
frontend/src/components/i18n/Translator.tsx:30
↓ 16 callers
Function
wrap_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 callers
Method
to_dict
(self)
backend/chainlit/step.py:279
↓ 14 callers
Function
submitMessage
(message: string)
cypress/support/testUtils.ts:5
↓ 14 callers
Function
useAuth
()
libs/react-client/src/api/hooks/auth.ts:16
↓ 13 callers
Method
post
( endpoint: string, data: Payload, token?: string, signal?: AbortSignal )
libs/react-client/src/api/index.tsx:119
↓ 13 callers
Method
push
(self, item: T)
backend/chainlit/haystack/callbacks.py:23
↓ 13 callers
Function
useChatMessages
()
libs/react-client/src/useChatMessages.ts:9
↓ 12 callers
Method
execute_sql
( self, query: str, parameters: dict )
backend/chainlit/data/sql_alchemy.py:75
↓ 11 callers
Method
pop
(self)
backend/chainlit/haystack/callbacks.py:26
↓ 11 callers
Function
useChatData
()
libs/react-client/src/useChatData.ts:23
↓ 10 callers
Method
buildEndpoint
(path: string)
libs/react-client/src/api/index.tsx:51
↓ 10 callers
Function
init_ws_context
(session_or_sid: Union[WebsocketSession, str])
backend/chainlit/context.py:64
↓ 10 callers
Method
send
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 callers
Method
toString
()
libs/react-client/src/api/index.tsx:32
↓ 10 callers
Function
useChatSession
()
libs/react-client/src/useChatSession.ts:46
↓ 9 callers
Function
useLayoutMaxWidth
()
frontend/src/hooks/useLayoutMaxWidth.tsx:1
↓ 8 callers
Method
create_user
(self, user: "User")
backend/chainlit/data/base.py:28
↓ 8 callers
Method
remove
Remove a step already sent to the UI.
backend/chainlit/step.py:331
↓ 7 callers
Method
from_dict
(cls, page_info_dict: Dict)
backend/chainlit/types.py:67
↓ 7 callers
Function
run_sync
Run the coroutine synchronously.
backend/chainlit/sync.py:23
↓ 7 callers
Method
task_end
Send a task end signal to the UI.
backend/chainlit/emitter.py:343
↓ 6 callers
Method
clear
(self, event: Literal["clear_ask", "clear_call_fn"])
backend/chainlit/emitter.py:179
↓ 6 callers
Method
task_start
Send a task start signal to the UI.
backend/chainlit/emitter.py:337
↓ 6 callers
Method
update_thread
( self, thread_id: str, name: Optional[str] = None, user_id: Optional[str] = N
backend/chainlit/data/base.py:95
↓ 6 callers
Method
upsert_feedback
( self, feedback: Feedback, )
backend/chainlit/data/base.py:39
↓ 6 callers
Function
useApi
( path?: string | null, { token, ...swrConfig }: SWRConfiguration & { token?: string } = {} )
libs/react-client/src/api/hooks/api.ts:17
↓ 6 callers
Function
useIsDarkMode
()
frontend/src/hooks/useIsDarkMode.tsx:3
↓ 5 callers
Method
__post_init__
(self)
backend/chainlit/message.py:47
↓ 5 callers
Method
_serialize_item
(self, item: Dict[str, Any])
backend/chainlit/data/dynamodb.py:63
↓ 5 callers
Method
add
(self, message: "Message")
backend/chainlit/chat_context.py:22
↓ 5 callers
Function
check_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 callers
Method
fetch
( method: string, path: string, token?: string, data?: Payload, signal?: AbortSignal )
libs/react-client/src/api/index.tsx:69
↓ 5 callers
Method
persist_file
( self, name: str, mime: str, path: Optional[str] = None, content: Opt
backend/chainlit/session.py:101
↓ 5 callers
Method
require
Throws an exception if the session is not found.
backend/chainlit/session.py:297
↓ 5 callers
Method
send_step
(self, step_dict: StepDict)
backend/chainlit/slack/app.py:65
↓ 5 callers
Method
to_persistable
(self)
backend/chainlit/session.py:150
↓ 4 callers
Method
_create
(self)
backend/chainlit/message.py:143
↓ 4 callers
Method
_deserialize_item
(self, item: Dict[str, Any])
backend/chainlit/data/dynamodb.py:68
↓ 4 callers
Method
_run_sync
(self, co)
backend/chainlit/langchain/callbacks.py:394
↓ 4 callers
Function
check_add_step_in_cot
(step: "Step")
backend/chainlit/step.py:22
↓ 4 callers
Function
clear
()
frontend/src/components/organisms/sidebar/threadHistory/filters/SearchBar.tsx:30
↓ 4 callers
Function
clear
(_sid)
backend/chainlit/socket.py:222
↓ 4 callers
Function
create_jwt
(data: User)
backend/chainlit/auth.py:51
↓ 4 callers
Method
delete
Delete the session.
backend/chainlit/session.py:190
↓ 4 callers
Function
getRouterBasename
()
frontend/src/utils/router.ts:1
↓ 4 callers
Function
hasMessageById
(messages: IStep[], messageId: string)
libs/react-client/src/utils/message.ts:118
↓ 4 callers
Method
init_thread
(self, interaction: str)
backend/chainlit/emitter.py:203
↓ 4 callers
Function
is_path_inside
Check if the child path is inside the parent path.
backend/chainlit/_utils.py:6
↓ 4 callers
Function
require_login
()
backend/chainlit/auth.py:31
↓ 4 callers
Function
stub_step
(step: "Step")
backend/chainlit/step.py:33
↓ 4 callers
Method
to_dict
(self)
backend/chainlit/message.py:74
↓ 4 callers
Function
updateMessageById
( messages: IStep[], messageId: string, updatedMessage: IStep )
libs/react-client/src/utils/message.ts:122
↓ 4 callers
Function
useUpload
({ onError, onResolved, options, spec }: useUploadProps)
frontend/src/hooks/useUpload.tsx:18
↓ 3 callers
Method
__post_init__
(self)
backend/chainlit/element.py:232
↓ 3 callers
Method
_create
(self)
backend/chainlit/element.py:140
↓ 3 callers
Function
addMessage
(messages: IStep[], message: IStep)
libs/react-client/src/utils/message.ts:33
↓ 3 callers
Method
deleteFeedback
( feedbackId: string, accessToken?: string )
libs/react-client/src/api/index.tsx:165
↓ 3 callers
Method
delete_step
Delete a message in the UI.
backend/chainlit/emitter.py:172
↓ 3 callers
Method
get
Get session by socket id.
backend/chainlit/session.py:287
↓ 3 callers
Method
get_authorization_server_path
(self)
backend/chainlit/oauth_providers.py:330
↓ 3 callers
Method
get_by_id
Get session by session id.
backend/chainlit/session.py:292
↓ 3 callers
Function
get_configured_oauth_providers
()
backend/chainlit/oauth_providers.py:644
↓ 3 callers
Function
get_context
()
backend/chainlit/context.py:105
↓ 3 callers
Function
get_jwt_secret
()
backend/chainlit/auth.py:16
↓ 3 callers
Function
get_oauth_provider
(provider: str)
backend/chainlit/oauth_providers.py:637
↓ 3 callers
Function
get_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 callers
Function
init_http_context
( thread_id: Optional[str] = None, user: Optional[Union["User", "PersistedUser"]] = None, auth_tok
backend/chainlit/context.py:74
↓ 3 callers
Function
is_thread_author
(username: str, thread_id: str)
backend/chainlit/data/acl.py:5
↓ 3 callers
Function
load_module
Load the specified module.
backend/chainlit/config.py:415
↓ 3 callers
Function
onError
(error: ClientError)
frontend/src/api/index.ts:21
↓ 3 callers
Function
on_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 callers
Function
on_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 callers
Method
on_event_end
Run when an event ends.
backend/chainlit/llama_index/callbacks.py:89
↓ 3 callers
Method
on_event_start
Run when an event starts and return id of event.
backend/chainlit/llama_index/callbacks.py:48
↓ 3 callers
Function
on_message
(message: discord.Message)
backend/chainlit/discord/app.py:291
↓ 3 callers
Function
random_secret
(length: int = 64)
backend/chainlit/secret.py:8
↓ 3 callers
Method
remove
Remove a message already sent to the UI.
backend/chainlit/message.py:123
↓ 3 callers
Method
send_ask_user
Send a prompt to the UI and wait for a response.
backend/chainlit/emitter.py:247
↓ 3 callers
Method
send_timeout
(self, event: Literal["ask_timeout", "call_fn_timeout"])
backend/chainlit/emitter.py:176
↓ 3 callers
Method
send_token
Send a message token to the UI.
backend/chainlit/emitter.py:354
↓ 3 callers
Method
setFeedback
( feedback: IFeedback, accessToken?: string )
libs/react-client/src/api/index.tsx:157
↓ 3 callers
Function
step
Step decorator for async and sync functions.
backend/chainlit/step.py:75
↓ 3 callers
Method
stream_start
Send a stream start signal to the UI.
backend/chainlit/emitter.py:347
↓ 3 callers
Method
stream_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 callers
Method
update_step
(self, step_dict: StepDict)
backend/chainlit/slack/app.py:114
↓ 3 callers
Method
upload_file
( self, object_key: str, data: Union[bytes, str], mime: str = "application/oct
backend/chainlit/data/base.py:114
↓ 3 callers
Function
useQuery
()
frontend/src/hooks/query.ts:4
↓ 2 callers
Function
Attachment
({ name, mime, children }: Props)
frontend/src/components/atoms/Attachment.tsx:13
next →
1–100 of 973, ranked by callers