MCPcopy Create free account

hub / github.com/Chainlit/cookbook / functions

Functions447 in github.com/Chainlit/cookbook

FunctionChainlitChat
()
react-native-chat/react-native-client/screens/ChainlitChat.tsx:11
FunctionFollowUpSuggestions
()
suggestions/public/elements/FollowUpSuggestions.jsx:6
FunctionGoogleMap
()
map-canvas/public/elements/Map.jsx:7
FunctionPdfSelector
()
custom-element/public/elements/PdfSelector.jsx:6
FunctionPlayground
()
react-native-chat/react-native-client/components/playground/index.tsx:11
FunctionPlayground
()
custom-frontend/frontend/src/components/playground.tsx:28
FunctionSeparator
()
react-native-chat/react-native-client/components/playground/index.tsx:9
FunctionTicketStatusCard
()
mcp-linear/public/elements/LinearTicket.jsx:6
FunctionTicketStatusCard
()
mcp/public/elements/LinearTicket.jsx:6
Method__init__
(self, msg: cl.Message)
chroma-qa-chat/app.py:98
Method__init__
(self)
auth/azure_ad_b2c_oauth_provider.py:25
Method__init__
(self)
realtime-assistant/realtime/__init__.py:54
Method__init__
(self)
realtime-assistant/realtime/__init__.py:172
Method__init__
(self, url=None, api_key=None)
realtime-assistant/realtime/__init__.py:381
Method__init__
(self)
openai-responses-gpt5-functions-streaming-multi-modal-reasoning-super-advanced/tools.py:20
Method__init__
(self, functions=None)
archive/openai-functions-codeinterpreter/functions/FunctionManager.py:9
Method__init__
(self)
langchain-azure-agent/app.py:77
Method__init__
(self)
langchain-azure-agent/services/document_loader.py:19
Method__init__
(self)
langchain-azure-agent/services/azure_services.py:17
Method__init__
(self, assistant_name: str)
openai-data-analyst/app.py:28
Method_arun
Use the Human input tool.
archive/langchain-ask-human/app.py:47
Function_cleanup
()
openai-responses-gpt5-functions-streaming-multi-modal-reasoning-super-advanced/app.py:118
Method_log_event
(self, event)
realtime-assistant/realtime/__init__.py:444
Method_on_item_created
(self, event)
realtime-assistant/realtime/__init__.py:468
Function_on_msg
(m: cl.Message)
openai-responses-gpt5-functions-streaming/app.py:233
Function_on_msg
Handle incoming messages with support for text, images, and file uploads Args: m: Chainlit message object
openai-responses-gpt5-functions-streaming-multi-modal-reasoning-super-advanced/app.py:312
Method_on_output_item_done
(self, event)
realtime-assistant/realtime/__init__.py:474
Method_on_session_created
(self, event)
realtime-assistant/realtime/__init__.py:452
Method_on_speech_started
(self, event)
realtime-assistant/realtime/__init__.py:461
Method_on_speech_stopped
(self, event)
realtime-assistant/realtime/__init__.py:465
Method_run
Use the Human input tool.
archive/langchain-ask-human/app.py:37
Function_start
()
openai-responses-gpt5-functions-streaming/app.py:75
Function_start
Initialize chat session with settings and optional file upload
openai-responses-gpt5-functions-streaming-multi-modal-reasoning-super-advanced/app.py:33
Methoda_send
( self, message: Union[Dict, str], recipient: Agent, request_reply: Optional[b
pyautogen/async_app.py:80
Methodadd_function
(self, func)
archive/openai-functions-codeinterpreter/functions/FunctionManager.py:16
Functionanswer
(message: cl.Message)
archive/haystack/app.py:111
Functionauth
()
resume-chat/app_lean.py:13
Functionauth
()
resume-chat/app.py:37
Functionauth_callback
(provider_id: str, token: str, raw_user_data, default_app_user)
bigquery/app.py:130
Functionauth_callback
(username: str, password: str)
langgraph-memory/app.py:32
Functioncalculator
Perform a basic arithmetic operation
anthropic-functions-streaming/app.py:25
Functioncall_model
(state)
langgraph-tavily/app.py:52
Functioncall_model
(state: MessagesState)
langgraph-memory/app.py:18
Functioncall_tool
(state)
langgraph-tavily/app.py:60
Methodcancel_response
(self, id=None, sample_count=0)
realtime-assistant/realtime/__init__.py:623
Functionchat
(message: cl.Message)
anthropic-functions-streaming/app.py:150
Functionchat
(message: cl.Message)
anthropic-chat/app.py:36
Functionchat
Handler for the main message event. This function is the main entry point for processing user messages in the chat application. It handle
langchain-azure-agent/app.py:134
Methodconnect
(self)
realtime-assistant/realtime/__init__.py:522
Methodconstructor
(message: string, detail?: string)
react-native-chat/react-native-client/libs/cl-sdk-1.2/api/index.tsx:27
Methodconstructor
( public httpEndpoint: string, public type: 'webapp' | 'copilot' | 'teams' | 'slack' | 'discord',
react-native-chat/react-native-client/libs/cl-sdk-1.2/api/index.tsx:44
Methodcreate_conversation_item
(self, item)
realtime-assistant/realtime/__init__.py:582
Functioncreate_variant
(action: Action)
archive/agent-image-editing/app.py:13
Functioncustom_auth
()
react-native-chat/backend/app.py:22
Functioncustom_auth
(request: Request)
custom-frontend/backend/app.py:20
MethoddeleteFeedback
( feedbackId: string, accessToken?: string )
react-native-chat/react-native-client/libs/cl-sdk-1.2/api/index.tsx:165
MethoddeleteThread
(threadId: string, accessToken?: string)
react-native-chat/react-native-client/libs/cl-sdk-1.2/api/index.tsx:190
Methoddelete_item
(self, id)
realtime-assistant/realtime/__init__.py:565
Methoddict
(self)
llava/app.py:184
Functiondraw_plotly_chart_handler
(message: str, plotly_json_fig)
realtime-assistant/realtime/tools.py:62
Functionedit_image
(init_image_name: str, prompt: str)
archive/agent-image-editing/tools.py:93
Methodexecute
(self, code: str)
archive/openai-functions-codeinterpreter/plugins/python/executor.py:22
Methodexecute
(self, code: str)
archive/openai-functions-codeinterpreter/plugins/python/executor.py:67
Methodexecute
(self, code: str)
archive/openai-functions-codeinterpreter/plugins/python/executor.py:82
Methodexpand2square
(pil_img, background_color=(122, 116, 104))
llava/app.py:125
Functionfactory
()
archive/groq-llama3-llamaindex-hf/app.py:25
Functionfetch_active_orders
Fetch active orders.
humanlayer-openai/app.py:19
Functionfile_search
Use this tool, the uploaded files search tool, to retrieve relevant information from uploaded files. Relevant parts of uploaded documents will be in
langchain-azure-agent/tools/file_search.py:17
Functionformat_docs
(docs)
chroma-qa-chat/app.py:72
Functiongenerate_image
(prompt: str)
archive/agent-image-editing/tools.py:88
MethodgetLogoEndpoint
(theme: string)
react-native-chat/react-native-client/libs/cl-sdk-1.2/api/index.tsx:250
MethodgetOAuthEndpoint
(provider: string)
react-native-chat/react-native-client/libs/cl-sdk-1.2/api/index.tsx:254
Functionget_current_weather
Get the current weather in a given location
openai-concurrent-functions/app.py:15
Functionget_current_weather
Get the current weather in a given location
anthropic-functions-streaming/app.py:11
Functionget_current_weather
Get the current weather in a given location. Parameters: - location: The city and state, e.g. San Francisco, CA - unit: The
archive/openai-functions-codeinterpreter/functions/FunctionManager.py:109
Functionget_docsearch
(file: AskFileResponse)
pdf-qa/app.py:48
Functionget_html
Get the html content of the url.if user provide the url,then return the html content of the url. Parameters: url: The url of the webs
archive/openai-functions-codeinterpreter/functions/FunctionManager.py:121
Methodget_human_input
(self, prompt: str)
pyautogen/app.py:39
Methodget_human_input
(self, prompt: str)
pyautogen/async_app.py:46
Methodget_items
(self)
realtime-assistant/realtime/__init__.py:196
Methodget_token
(self, code: str, url: str)
auth/azure_ad_b2c_oauth_provider.py:35
Methodget_user_info
(self, token: str)
auth/azure_ad_b2c_oauth_provider.py:58
Functionget_vue_project_file_content
This function is used to get the content of a file in the Vue project. Parameters: path : The path of the file you want to write to.
archive/openai-functions-codeinterpreter/plugins/vue/functions.py:73
FunctionhandleSendMessage
()
react-native-chat/react-native-client/components/playground/index.tsx:17
Functionhandle_conversation_interrupt
Used to cancel the client previous audio playback.
realtime-assistant/app.py:47
Functionhandle_conversation_updated
(event)
realtime-assistant/app.py:20
Functionhandle_error
(event)
realtime-assistant/app.py:52
Functionhandle_file_selection
(action)
custom-element/app.py:5
Functionhandle_item_completed
Used to populate the chat context with transcription once an item is completed.
realtime-assistant/app.py:42
Methodhandler
(event)
realtime-assistant/realtime/__init__.py:73
MethodheaderAuth
()
react-native-chat/react-native-client/libs/cl-sdk-1.2/api/index.tsx:142
Functioninit
()
archive/haystack/app.py:98
FunctionisLastMessage
(messages: IStep[], index: number)
react-native-chat/react-native-client/libs/cl-sdk-1.2/utils/message.ts:15
MethodlistThreads
( pagination: IPagination, filter: IThreadFilters, accessToken?: string )
react-native-chat/react-native-client/libs/cl-sdk-1.2/api/index.tsx:173
Functionmain
(message: cl.Message)
bigquery/app.py:120
Functionmain
(message: cl.Message)
azure-openai-pinecone-pdf-qa/src/app.py:138
Functionmain
(message: cl.Message)
openai-concurrent-streaming/app.py:54
Functionmain
(msg: cl.Message)
extended-thinking-in-the-ui/app.py:38
Functionmain
()
local-llm/llama2-chat.py:52
Functionmain
()
local-llm/llama-cpp.py:36
← previousnext →201–300 of 447, ranked by callers