MCPcopy Create free account

hub / github.com/chainlit/chainlit / functions

Functions973 in github.com/chainlit/chainlit

↓ 2 callersMethod__init__
( self, # Id of the session id: str, client_type: ClientType, # Thread
backend/chainlit/session.py:60
↓ 2 callersMethod_convert_message_role
(self, role: str)
backend/chainlit/langchain/callbacks.py:135
↓ 2 callersMethod_get_current_timestamp
(self)
backend/chainlit/data/dynamodb.py:60
↓ 2 callersMethod_get_session_property
Helper method to get a property from the session.
backend/chainlit/emitter.py:136
↓ 2 callersMethod_process_content
(self, content, set_language=False)
backend/chainlit/step.py:237
↓ 2 callersMethod_should_ignore_run
(self, run: Run)
backend/chainlit/langchain/callbacks.py:422
↓ 2 callersMethod_update_item
(self, key: Dict[str, Any], updates: Dict[str, Any])
backend/chainlit/data/dynamodb.py:74
↓ 2 callersMethodattachment_to_element_dict
(self, attachment: Attachment)
backend/chainlit/data/literalai.py:39
↓ 2 callersMethodcheckToken
(token: string)
libs/react-client/src/api/index.tsx:60
↓ 2 callersFunctioncheck_file
(target: str)
backend/chainlit/utils.py:96
↓ 2 callersFunctionclean_content
(message: discord.Message)
backend/chainlit/discord/app.py:210
↓ 2 callersFunctionconnect
(sid, environ)
backend/chainlit/socket.py:103
↓ 2 callersMethodcreate_step
(self, step_dict: "StepDict")
backend/chainlit/data/base.py:63
↓ 2 callersMethoddelete
(endpoint: string, data: Payload, token?: string)
libs/react-client/src/api/index.tsx:136
↓ 2 callersFunctiondescribeSyncAsync
( title: string, callback: (mode: ExecutionMode) => void )
cypress/support/testUtils.ts:39
↓ 2 callersMethodemit_call
Get the 'emit_call' property from the session.
backend/chainlit/emitter.py:152
↓ 2 callersFunctionensure_jwt_secret
()
backend/chainlit/auth.py:20
↓ 2 callersFunctionfetchThreads
( cursor?: string | number, isLoadingMore?: boolean )
frontend/src/components/organisms/sidebar/threadHistory/index.tsx:83
↓ 2 callersFunctionflatten_args_kwargs
(func, *args, **kwargs)
backend/chainlit/step.py:68
↓ 2 callersMethodget_all_user_threads
Fetch all user threads up to self.user_thread_limit, or one thread by id if thread_id is provided.
backend/chainlit/data/sql_alchemy.py:446
↓ 2 callersMethodget_current_timestamp
(self)
backend/chainlit/data/sql_alchemy.py:99
↓ 2 callersMethodget_thread
(self, thread_id: str)
backend/chainlit/data/base.py:91
↓ 2 callersMethodget_token
(self, code: str, url: str)
backend/chainlit/oauth_providers.py:23
↓ 2 callersMethodget_user
(self, identifier: str)
backend/chainlit/data/base.py:24
↓ 2 callersMethodget_user_info
(self, token: str)
backend/chainlit/oauth_providers.py:26
↓ 2 callersFunctionhandleFeedbackChanged
(feedback?: number, comment?: string)
frontend/src/components/molecules/messages/components/FeedbackButtons.tsx:54
↓ 2 callersFunctioni18nSetupLocalization
()
frontend/src/i18n/index.ts:9
↓ 2 callersFunctioninit_config
Initialize the configuration file if it doesn't exist.
backend/chainlit/config.py:387
↓ 2 callersFunctionis_oauth_enabled
()
backend/chainlit/auth.py:27
↓ 2 callersFunctionload_config
Load the configuration from the config file.
backend/chainlit/config.py:503
↓ 2 callersFunctionload_settings
()
backend/chainlit/config.py:454
↓ 2 callersFunctionmakeTheme
( variant: 'dark' | 'light', fontFamily?: string, breakpoints?: BreakpointsOptions )
frontend/src/theme/theme.tsx:124
↓ 2 callersFunctiononClick
()
frontend/src/pages/ResumeButton.tsx:44
↓ 2 callersFunctiononSubmit
()
frontend/src/components/molecules/auth/AuthVerifyEmail.tsx:31
↓ 2 callersFunctionoverrideTheme
(theme: Theme)
frontend/src/App.tsx:48
↓ 2 callersFunctionpersist_user_session
(thread_id: str, metadata: Dict)
backend/chainlit/socket.py:40
↓ 2 callersFunctionprocess_content
(content: Any)
backend/chainlit/langchain/callbacks.py:232
↓ 2 callersMethodprocess_message
(self, payload: MessagePayload)
backend/chainlit/emitter.py:213
↓ 2 callersFunctionprocess_slack_message
( event, say, thread_id: str, thread_name: Optional[str] = None, bind_thread_to_user=False
backend/chainlit/slack/app.py:243
↓ 2 callersFunctionremoveToken
()
libs/react-client/src/utils/token.ts:19
↓ 2 callersMethodrender
()
frontend/src/components/atoms/ErrorBoundary.tsx:31
↓ 2 callersFunctionrun_chainlit
(target: str)
backend/chainlit/cli/__init__.py:36
↓ 2 callersMethodsafely_send_steps
(self, steps)
backend/chainlit/data/literalai.py:181
↓ 2 callersMethodsend
(self)
backend/chainlit/element.py:289
↓ 2 callersMethodsend_action_response
( self, id: str, status: bool, response: Optional[str] = None )
backend/chainlit/emitter.py:364
↓ 2 callersFunctionsend_count
()
cypress/e2e/data_layer/main.py:202
↓ 2 callersMethodsend_element
(self, element_dict: ElementDict)
backend/chainlit/slack/app.py:40
↓ 2 callersMethodset_chat_settings
(self, settings: Dict[str, Any])
backend/chainlit/emitter.py:361
↓ 2 callersMethodupdate
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:274
↓ 2 callersFunctionuseFetch
(endpoint: string | null)
frontend/src/hooks/useFetch.tsx:20
↓ 1 callersMethod__init__
( self, session: Union["HTTPSession", "WebsocketSession"], emitter: Optional["BaseChai
backend/chainlit/context.py:40
↓ 1 callersMethod__init__
(self, step_id: str)
backend/chainlit/discord/app.py:30
↓ 1 callersMethod_append_to_last_tokens
(self, token: str)
backend/chainlit/langchain/callbacks.py:85
↓ 1 callersMethod_build_llm_settings
( self, serialized: Dict, invocation_params: Optional[Dict] = None, )
backend/chainlit/langchain/callbacks.py:197
↓ 1 callersMethod_check_if_answer_reached
(self)
backend/chainlit/langchain/callbacks.py:62
↓ 1 callersMethod_clean_content
Recursively checks and converts bytes objects in content.
backend/chainlit/step.py:219
↓ 1 callersMethod_compare_last_tokens
(self, last_tokens: List[str])
backend/chainlit/langchain/callbacks.py:68
↓ 1 callersMethod_convert_message
( self, message: Union[Dict, BaseMessage], )
backend/chainlit/langchain/callbacks.py:168
↓ 1 callersMethod_convert_message_dict
( self, message: Dict, )
backend/chainlit/langchain/callbacks.py:147
↓ 1 callersMethod_get_non_ignored_parent_id
(self, current_parent_id: Optional[str] = None)
backend/chainlit/langchain/callbacks.py:406
↓ 1 callersMethod_get_parent_id
(self, event_parent_id: Optional[str] = None)
backend/chainlit/llama_index/callbacks.py:40
↓ 1 callersMethod_get_run_parent_id
(self, run: Run)
backend/chainlit/langchain/callbacks.py:401
↓ 1 callersMethodacall
(self)
backend/chainlit/__init__.py:98
↓ 1 callersFunctionaddIndentMessage
( messages: IStep[], indent: number, newMessage: IStep, currentIndentation: number = 0 )
libs/react-client/src/utils/message.ts:45
↓ 1 callersFunctionaddMessageToParent
( messages: IStep[], parentId: string, newMessage: IStep )
libs/react-client/src/utils/message.ts:79
↓ 1 callersMethodadd_task
(self, task: Task)
backend/chainlit/element.py:283
↓ 1 callersFunctionanother_async_function
()
cypress/e2e/context/main.py:22
↓ 1 callersFunctionasync_function
()
cypress/e2e/context/main.py:18
↓ 1 callersFunctionasync_function_from_sync
()
cypress/e2e/context/main.py:7
↓ 1 callersFunctionauthenticate_user
(token: str = Depends(reuseable_oauth))
backend/chainlit/auth.py:62
↓ 1 callersFunctionbuildInputHistory
(userInputs: UserInput[])
frontend/src/components/organisms/chat/history/index.tsx:21
↓ 1 callersMethodbuild_debug_url
(self)
backend/chainlit/data/base.py:106
↓ 1 callersFunctioncapitalizeFirstLetter
(string: string)
frontend/src/components/molecules/auth/ProviderButton.tsx:15
↓ 1 callersFunctionclean_content
(message: str)
backend/chainlit/slack/app.py:163
↓ 1 callersFunctionclean_content
(activity: Activity)
backend/chainlit/teams/app.py:218
↓ 1 callersFunctionclean_metadata
(metadata: Dict, max_size: int = 1048576)
backend/chainlit/session.py:38
↓ 1 callersMethodclean_result
Recursively change UUID -> str and serialize dictionaries
backend/chainlit/data/sql_alchemy.py:102
↓ 1 callersFunctionclear_on_timeout
(_sid)
backend/chainlit/socket.py:234
↓ 1 callersFunctioncli
()
backend/chainlit/cli/__init__.py:31
↓ 1 callersFunctioncloseHistory
()
cypress/support/testUtils.ts:23
↓ 1 callersFunctioncompare_json_structures
Compare the structure of two deeply nested JSON objects. Args: truth (dict): The 'truth' JSON object. to_compare (dict): The
backend/chainlit/translations.py:6
↓ 1 callersMethodconfigure_tracer
(self)
backend/chainlit/telemetry.py:52
↓ 1 callersFunctioncontext_preserving_coroutine
()
backend/chainlit/sync.py:30
↓ 1 callersFunctioncontinueThread
()
cypress/e2e/data_layer/spec.cy.ts:88
↓ 1 callersFunctioncreate_chainlit_context
()
backend/tests/conftest.py:12
↓ 1 callersMethodcreate_element
(self, element: "Element")
backend/chainlit/data/base.py:47
↓ 1 callersMethodcreate_step
(self, step_dict: "StepDict")
backend/chainlit/data/literalai.py:249
↓ 1 callersMethodcreate_step
(self, step_dict: "StepDict")
backend/chainlit/data/sql_alchemy.py:294
↓ 1 callersFunctiondarkTheme
(fontFamily?: string, breakpoints?: BreakpointsOptions)
frontend/src/theme/theme.tsx:56
↓ 1 callersMethoddefault
(self, obj)
backend/chainlit/session.py:31
↓ 1 callersFunctiondeleteMessageById
(messages: IStep[], messageId: string)
libs/react-client/src/utils/message.ts:143
↓ 1 callersMethoddeleteThread
(threadId: string, accessToken?: string)
libs/react-client/src/api/index.tsx:190
↓ 1 callersMethoddelete_element
(self, element_id: str, thread_id: Optional[str] = None)
backend/chainlit/data/base.py:58
↓ 1 callersMethoddelete_feedback
( self, feedback_id: str, )
backend/chainlit/data/base.py:32
↓ 1 callersMethoddelete_thread
(self, thread_id: str)
backend/chainlit/data/base.py:81
↓ 1 callersFunctiondetectSound
()
libs/react-client/src/useAudio.ts:143
↓ 1 callersFunctiondownload_discord_file
(url: str)
backend/chainlit/discord/app.py:175
↓ 1 callersFunctiondownload_discord_files
( session: HTTPSession, attachments: List[discord.Attachment] )
backend/chainlit/discord/app.py:184
↓ 1 callersFunctiondownload_slack_file
(url, token)
backend/chainlit/slack/app.py:209
↓ 1 callersFunctiondownload_slack_files
(session: HTTPSession, files, token)
backend/chainlit/slack/app.py:219
← previousnext →101–200 of 973, ranked by callers