Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Chainlit/cookbook
/ functions
Functions
447 in github.com/Chainlit/cookbook
⨍
Functions
447
◇
Types & classes
65
↳
Endpoints
7
Function
ChainlitChat
()
react-native-chat/react-native-client/screens/ChainlitChat.tsx:11
Function
FollowUpSuggestions
()
suggestions/public/elements/FollowUpSuggestions.jsx:6
Function
GoogleMap
()
map-canvas/public/elements/Map.jsx:7
Function
PdfSelector
()
custom-element/public/elements/PdfSelector.jsx:6
Function
Playground
()
react-native-chat/react-native-client/components/playground/index.tsx:11
Function
Playground
()
custom-frontend/frontend/src/components/playground.tsx:28
Function
Separator
()
react-native-chat/react-native-client/components/playground/index.tsx:9
Function
TicketStatusCard
()
mcp-linear/public/elements/LinearTicket.jsx:6
Function
TicketStatusCard
()
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
Method
a_send
( self, message: Union[Dict, str], recipient: Agent, request_reply: Optional[b
pyautogen/async_app.py:80
Method
add_function
(self, func)
archive/openai-functions-codeinterpreter/functions/FunctionManager.py:16
Function
answer
(message: cl.Message)
archive/haystack/app.py:111
Function
auth
()
resume-chat/app_lean.py:13
Function
auth
()
resume-chat/app.py:37
Function
auth_callback
(provider_id: str, token: str, raw_user_data, default_app_user)
bigquery/app.py:130
Function
auth_callback
(username: str, password: str)
langgraph-memory/app.py:32
Function
calculator
Perform a basic arithmetic operation
anthropic-functions-streaming/app.py:25
Function
call_model
(state)
langgraph-tavily/app.py:52
Function
call_model
(state: MessagesState)
langgraph-memory/app.py:18
Function
call_tool
(state)
langgraph-tavily/app.py:60
Method
cancel_response
(self, id=None, sample_count=0)
realtime-assistant/realtime/__init__.py:623
Function
chat
(message: cl.Message)
anthropic-functions-streaming/app.py:150
Function
chat
(message: cl.Message)
anthropic-chat/app.py:36
Function
chat
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
Method
connect
(self)
realtime-assistant/realtime/__init__.py:522
Method
constructor
(message: string, detail?: string)
react-native-chat/react-native-client/libs/cl-sdk-1.2/api/index.tsx:27
Method
constructor
( 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
Method
create_conversation_item
(self, item)
realtime-assistant/realtime/__init__.py:582
Function
create_variant
(action: Action)
archive/agent-image-editing/app.py:13
Function
custom_auth
()
react-native-chat/backend/app.py:22
Function
custom_auth
(request: Request)
custom-frontend/backend/app.py:20
Method
deleteFeedback
( feedbackId: string, accessToken?: string )
react-native-chat/react-native-client/libs/cl-sdk-1.2/api/index.tsx:165
Method
deleteThread
(threadId: string, accessToken?: string)
react-native-chat/react-native-client/libs/cl-sdk-1.2/api/index.tsx:190
Method
delete_item
(self, id)
realtime-assistant/realtime/__init__.py:565
Method
dict
(self)
llava/app.py:184
Function
draw_plotly_chart_handler
(message: str, plotly_json_fig)
realtime-assistant/realtime/tools.py:62
Function
edit_image
(init_image_name: str, prompt: str)
archive/agent-image-editing/tools.py:93
Method
execute
(self, code: str)
archive/openai-functions-codeinterpreter/plugins/python/executor.py:22
Method
execute
(self, code: str)
archive/openai-functions-codeinterpreter/plugins/python/executor.py:67
Method
execute
(self, code: str)
archive/openai-functions-codeinterpreter/plugins/python/executor.py:82
Method
expand2square
(pil_img, background_color=(122, 116, 104))
llava/app.py:125
Function
factory
()
archive/groq-llama3-llamaindex-hf/app.py:25
Function
fetch_active_orders
Fetch active orders.
humanlayer-openai/app.py:19
Function
file_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
Function
format_docs
(docs)
chroma-qa-chat/app.py:72
Function
generate_image
(prompt: str)
archive/agent-image-editing/tools.py:88
Method
getLogoEndpoint
(theme: string)
react-native-chat/react-native-client/libs/cl-sdk-1.2/api/index.tsx:250
Method
getOAuthEndpoint
(provider: string)
react-native-chat/react-native-client/libs/cl-sdk-1.2/api/index.tsx:254
Function
get_current_weather
Get the current weather in a given location
openai-concurrent-functions/app.py:15
Function
get_current_weather
Get the current weather in a given location
anthropic-functions-streaming/app.py:11
Function
get_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
Function
get_docsearch
(file: AskFileResponse)
pdf-qa/app.py:48
Function
get_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
Method
get_human_input
(self, prompt: str)
pyautogen/app.py:39
Method
get_human_input
(self, prompt: str)
pyautogen/async_app.py:46
Method
get_items
(self)
realtime-assistant/realtime/__init__.py:196
Method
get_token
(self, code: str, url: str)
auth/azure_ad_b2c_oauth_provider.py:35
Method
get_user_info
(self, token: str)
auth/azure_ad_b2c_oauth_provider.py:58
Function
get_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
Function
handleSendMessage
()
react-native-chat/react-native-client/components/playground/index.tsx:17
Function
handle_conversation_interrupt
Used to cancel the client previous audio playback.
realtime-assistant/app.py:47
Function
handle_conversation_updated
(event)
realtime-assistant/app.py:20
Function
handle_error
(event)
realtime-assistant/app.py:52
Function
handle_file_selection
(action)
custom-element/app.py:5
Function
handle_item_completed
Used to populate the chat context with transcription once an item is completed.
realtime-assistant/app.py:42
Method
handler
(event)
realtime-assistant/realtime/__init__.py:73
Method
headerAuth
()
react-native-chat/react-native-client/libs/cl-sdk-1.2/api/index.tsx:142
Function
init
()
archive/haystack/app.py:98
Function
isLastMessage
(messages: IStep[], index: number)
react-native-chat/react-native-client/libs/cl-sdk-1.2/utils/message.ts:15
Method
listThreads
( pagination: IPagination, filter: IThreadFilters, accessToken?: string )
react-native-chat/react-native-client/libs/cl-sdk-1.2/api/index.tsx:173
Function
main
(message: cl.Message)
bigquery/app.py:120
Function
main
(message: cl.Message)
azure-openai-pinecone-pdf-qa/src/app.py:138
Function
main
(message: cl.Message)
openai-concurrent-streaming/app.py:54
Function
main
(msg: cl.Message)
extended-thinking-in-the-ui/app.py:38
Function
main
()
local-llm/llama2-chat.py:52
Function
main
()
local-llm/llama-cpp.py:36
← previous
next →
201–300 of 447, ranked by callers