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
↓ 1 callers
Function
call_tool
(tool_use)
mcp-linear/app.py:80
↓ 1 callers
Function
call_tool
(tool_use)
anthropic-functions-streaming/app.py:125
↓ 1 callers
Function
call_tool
(tool_use)
mcp/app.py:58
↓ 1 callers
Function
call_tool
(tool_call_id, name, arguments, message_history)
openai-functions-streaming/app.py:58
↓ 1 callers
Function
call_tool
(tool_use)
map-canvas/app.py:67
↓ 1 callers
Function
call_tool
(tool_call, message_history)
archive/openai-functions/app.py:62
↓ 1 callers
Function
chain
(human_query: str)
bigquery/app.py:112
↓ 1 callers
Function
changeLoginButtonText
(buttons)
auth/public/script.js:1
↓ 1 callers
Method
cleanup
Clean up - but now this just removes temp files, not the workspace
openai-responses-gpt5-functions-streaming-multi-modal-reasoning-super-advanced/tools.py:160
↓ 1 callers
Method
clear_event_handlers
(self)
realtime-assistant/realtime/__init__.py:60
↓ 1 callers
Function
construct_rsa_public_key
(n, e)
auth/validate_jwt.py:16
↓ 1 callers
Function
custom_oauth_enabled
()
auth/inject_custom_auth.py:13
↓ 1 callers
Function
decode_jwt
(token, public_key, audience, issuer)
auth/validate_jwt.py:51
↓ 1 callers
Function
deleteMessageById
(messages: IStep[], messageId: string)
react-native-chat/react-native-client/libs/cl-sdk-1.2/utils/message.ts:181
↓ 1 callers
Function
detectSound
()
react-native-chat/react-native-client/libs/cl-sdk-1.2/useAudio.ts:143
↓ 1 callers
Method
disconnect
(self)
realtime-assistant/realtime/__init__.py:536
↓ 1 callers
Function
display_execution_results_simple
Display Python execution results with minimal overhead Args: result_data: Execution result data processed_files: List of
openai-responses-gpt5-functions-streaming-multi-modal-reasoning-super-advanced/tools.py:605
↓ 1 callers
Function
display_generated_file
Display a generated file with appropriate preview Args: file_info: File information dictionary
openai-responses-gpt5-functions-streaming-multi-modal-reasoning-super-advanced/tools.py:635
↓ 1 callers
Method
execute
(self, code: str)
archive/openai-functions-codeinterpreter/plugins/python/executor.py:29
↓ 1 callers
Method
execute_code
Execute Python code locally and capture output, errors, and generated files Args: code: Python code to execute
openai-responses-gpt5-functions-streaming-multi-modal-reasoning-super-advanced/tools.py:32
↓ 1 callers
Function
execute_python_code
Execute Python code locally and return formatted results Args: code: Python code to execute Returns: Tuple
openai-responses-gpt5-functions-streaming-multi-modal-reasoning-super-advanced/tools.py:282
↓ 1 callers
Function
execute_query
(query)
bigquery/app.py:64
↓ 1 callers
Function
fetcher
( client: ChainlitAPI, endpoint: string, token?: string )
react-native-chat/react-native-client/libs/cl-sdk-1.2/api/hooks/api.ts:8
↓ 1 callers
Function
file_loader
This function processes the files uploaded by the user for further use by the chat application. The processed documents are then added to the
langchain-azure-agent/app.py:164
↓ 1 callers
Function
flatten
(xss)
mcp-linear/app.py:51
↓ 1 callers
Function
flatten
(xss)
mcp/app.py:40
↓ 1 callers
Function
flattenMessages
( messages: IStep[], condition: (node: IStep) => boolean )
custom-frontend/frontend/src/components/playground.tsx:11
↓ 1 callers
Function
float_to_16bit_pcm
Converts a numpy array of float32 amplitude data to a numpy array in int16 format. :param float32_array: numpy array of float32 :return:
realtime-assistant/realtime/__init__.py:17
↓ 1 callers
Function
gen_query
(human_query: str)
bigquery/app.py:39
↓ 1 callers
Function
generate_text_answer
(transcription)
openai-whisper/app.py:73
↓ 1 callers
Method
getElementUrl
(id: string, sessionId: string)
react-native-chat/react-native-client/libs/cl-sdk-1.2/api/index.tsx:245
↓ 1 callers
Function
getProgressValue
(status)
mcp-linear/public/elements/LinearTicket.jsx:7
↓ 1 callers
Function
getProgressValue
(status)
mcp/public/elements/LinearTicket.jsx:7
↓ 1 callers
Function
get_agent
(retriever)
archive/haystack/app.py:30
↓ 1 callers
Function
get_current_weather
(location, unit)
openai-responses-gpt5-functions-streaming/app.py:10
↓ 1 callers
Function
get_current_weather
(location, unit)
openai-functions-streaming/app.py:16
↓ 1 callers
Function
get_current_weather
Get the current weather in a given location
archive/openai-functions/app.py:18
↓ 1 callers
Function
get_image_name
()
archive/agent-image-editing/tools.py:14
↓ 1 callers
Method
get_item
(self, id)
realtime-assistant/realtime/__init__.py:193
↓ 1 callers
Function
get_memory
()
archive/agent-image-editing/app.py:30
↓ 1 callers
Method
get_prompt
(self)
llava/app.py:41
↓ 1 callers
Function
get_public_key
(jwks_uri, kid)
auth/validate_jwt.py:36
↓ 1 callers
Function
get_retriever
()
archive/haystack/app.py:20
↓ 1 callers
Function
get_rsa_public_key
(jwks, kid)
auth/validate_jwt.py:29
↓ 1 callers
Function
get_token_count
Get token count
archive/openai-functions-codeinterpreter/app.py:75
↓ 1 callers
Method
get_turn_detection_type
(self)
realtime-assistant/realtime/__init__.py:542
↓ 1 callers
Function
groupByDate
(data: IThread[])
react-native-chat/react-native-client/libs/cl-sdk-1.2/utils/group.ts:3
↓ 1 callers
Function
handleSelect
(file)
custom-element/public/elements/PdfSelector.jsx:10
↓ 1 callers
Function
handleSendMessage
()
custom-frontend/frontend/src/components/playground.tsx:37
↓ 1 callers
Function
handleSuggestionClick
(suggestion, index)
suggestions/public/elements/FollowUpSuggestions.jsx:16
↓ 1 callers
Function
instantiate_llm
()
local-llm/llama-cpp.py:14
↓ 1 callers
Function
list_workspace_files
List all files currently in the Python workspace Returns: JSON string with list of files and their info
openai-responses-gpt5-functions-streaming-multi-modal-reasoning-super-advanced/tools.py:191
↓ 1 callers
Function
load_context
()
llama-index-googledocs-qa/app.py:28
↓ 1 callers
Function
load_llama
()
local-llm/llama2-chat.py:21
↓ 1 callers
Method
logout
()
react-native-chat/react-native-client/libs/cl-sdk-1.2/api/index.tsx:152
↓ 1 callers
Function
main
(message: cl.Message)
archive/agent-image-editing/app.py:120
↓ 1 callers
Function
moveMapTo
(newLat, newLng, newZoom = 12)
map-canvas/public/elements/Map.jsx:73
↓ 1 callers
Function
on_message
(message: cl.Message)
archive/openai-functions-codeinterpreter/app.py:96
↓ 1 callers
Function
process_audio
()
openai-whisper/app.py:146
↓ 1 callers
Method
process_event
(self, event, *args)
realtime-assistant/realtime/__init__.py:187
↓ 1 callers
Function
process_file
(file: AskFileResponse)
pdf-qa/app.py:34
↓ 1 callers
Function
process_files
(files: List[Element])
openai-data-analyst/app.py:156
↓ 1 callers
Function
process_generated_file
Process a generated file and prepare it for attachment Args: file_path: Path to the generated file Returns:
openai-responses-gpt5-functions-streaming-multi-modal-reasoning-super-advanced/tools.py:322
↓ 1 callers
Function
process_new_delta
( new_delta, openai_message, content_ui_message, function_ui_message )
archive/openai-functions-codeinterpreter/app.py:176
↓ 1 callers
Function
process_pdfs
(pdf_storage_path: str)
chroma-qa-chat/app.py:27
↓ 1 callers
Function
process_pdfs
(pdf_storage_path: str)
azure-openai-pinecone-pdf-qa/src/app.py:61
↓ 1 callers
Function
process_tool_calls
Process tool calls made by the model Args: tool_calls: Dictionary of tool calls from the model context_messages: Conversatio
ai-web-search-linkup/app.py:119
↓ 1 callers
Function
provider_id_in_instance_list
(provider_id: str)
auth/inject_custom_auth.py:29
↓ 1 callers
Method
put
(endpoint: string, data: Payload, token?: string)
react-native-chat/react-native-client/libs/cl-sdk-1.2/api/index.tsx:128
↓ 1 callers
Method
queue_input_audio
(self, input_audio)
realtime-assistant/realtime/__init__.py:184
↓ 1 callers
Function
renderMessage
(message:IStep)
react-native-chat/react-native-client/components/playground/index.tsx:30
↓ 1 callers
Function
renderMessage
(message: IStep)
custom-frontend/frontend/src/components/playground.tsx:50
↓ 1 callers
Function
request
(conversation: Conversation, settings)
llava/app.py:223
↓ 1 callers
Function
run_chain
( messages: list[dict], tools_openai: list[dict], tools_map: dict )
humanlayer-openai/app.py:90
↓ 1 callers
Function
saveAndSetToken
(token: string | null | undefined)
react-native-chat/react-native-client/libs/cl-sdk-1.2/api/hooks/auth.ts:33
↓ 1 callers
Function
search_web
(query)
openai-responses-gpt5-functions-streaming/app.py:17
↓ 1 callers
Function
search_web
Search the web using Linkup SDK Args: query: The search query string depth: Search depth ("standard" or "deep") Returns
ai-web-search-linkup/app.py:89
↓ 1 callers
Function
send_animated_message
Display animated message with minimal resource usage
loader-animation/app.py:9
↓ 1 callers
Method
send_user_message_content
(self, content=[])
realtime-assistant/realtime/__init__.py:585
↓ 1 callers
Function
setToken
(token: string)
react-native-chat/react-native-client/libs/cl-sdk-1.2/utils/token.ts:11
↓ 1 callers
Function
setup_agent
(settings)
archive/agent-image-editing/app.py:95
↓ 1 callers
Function
setup_openai_realtime
Instantiate and configure the OpenAI Realtime Client
realtime-assistant/app.py:15
↓ 1 callers
Function
show_full_conversation
(current_message, full_history)
openai-responses-gpt5-functions-streaming/app.py:84
↓ 1 callers
Function
show_full_conversation
Display full conversation history for debugging Args: current_message: Current message that triggered this full_history:
openai-responses-gpt5-functions-streaming-multi-modal-reasoning-super-advanced/app.py:487
↓ 1 callers
Function
show_linear_ticket
(title, status, assignee, deadline, tags)
mcp-linear/app.py:35
↓ 1 callers
Function
show_linear_ticket
(title, status, assignee, deadline, tags)
mcp/app.py:26
↓ 1 callers
Function
show_reasoning_summary
Display model reasoning summary
openai-responses-gpt5-functions-streaming-multi-modal-reasoning-super-advanced/tools.py:736
↓ 1 callers
Function
simple_calculator
Simple calculator for testing function calls
openai-responses-gpt5-functions-streaming-multi-modal-reasoning-super-advanced/tools.py:166
↓ 1 callers
Function
speech_to_text
(audio_file)
openai-whisper/app.py:31
↓ 1 callers
Function
text_to_speech
(text: str, mime_type: str)
openai-whisper/app.py:40
↓ 1 callers
Function
thinking_step
(user_message: str)
extended-thinking-in-the-ui/app.py:13
↓ 1 callers
Function
truncate_messages
Truncate conversation messages to fit within token limit. Simply keeps the most recent messages that fit within the token budget. Ensures
ai-web-search-linkup/app.py:49
↓ 1 callers
Function
updateMessageContentById
( messages: IStep[], messageId: number | string, updatedContent: string, isSequence: boolean, isInpu
react-native-chat/react-native-client/libs/cl-sdk-1.2/utils/message.ts:201
↓ 1 callers
Method
uploadFile
( file: File, onProgress: (progress: number) => void, sessionId: string, token?: string )
react-native-chat/react-native-client/libs/cl-sdk-1.2/api/index.tsx:196
↓ 1 callers
Function
upload_file_to_workspace
Upload a file to the persistent workspace Args: filename: Name of the file to save content: File content as bytes
openai-responses-gpt5-functions-streaming-multi-modal-reasoning-super-advanced/tools.py:236
↓ 1 callers
Function
upload_files
(files: List[Element])
openai-data-analyst/app.py:146
↓ 1 callers
Function
useAuth
()
react-native-chat/react-native-client/libs/cl-sdk-1.2/api/hooks/auth.ts:11
↓ 1 callers
Function
uuidv4
()
react-native-chat/react-native-client/libs/cl-sdk-1.2/useChatInteract.ts:30
↓ 1 callers
Function
validate_jwt
(token, jwks_uri)
auth/validate_jwt.py:45
Function
App
()
custom-frontend/frontend/src/App.tsx:9
← previous
next →
101–200 of 447, ranked by callers