MCPcopy Create free account

hub / github.com/Chainlit/cookbook / functions

Functions447 in github.com/Chainlit/cookbook

↓ 1 callersFunctioncall_tool
(tool_use)
mcp-linear/app.py:80
↓ 1 callersFunctioncall_tool
(tool_use)
anthropic-functions-streaming/app.py:125
↓ 1 callersFunctioncall_tool
(tool_use)
mcp/app.py:58
↓ 1 callersFunctioncall_tool
(tool_call_id, name, arguments, message_history)
openai-functions-streaming/app.py:58
↓ 1 callersFunctioncall_tool
(tool_use)
map-canvas/app.py:67
↓ 1 callersFunctioncall_tool
(tool_call, message_history)
archive/openai-functions/app.py:62
↓ 1 callersFunctionchain
(human_query: str)
bigquery/app.py:112
↓ 1 callersFunctionchangeLoginButtonText
(buttons)
auth/public/script.js:1
↓ 1 callersMethodcleanup
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 callersMethodclear_event_handlers
(self)
realtime-assistant/realtime/__init__.py:60
↓ 1 callersFunctionconstruct_rsa_public_key
(n, e)
auth/validate_jwt.py:16
↓ 1 callersFunctioncustom_oauth_enabled
()
auth/inject_custom_auth.py:13
↓ 1 callersFunctiondecode_jwt
(token, public_key, audience, issuer)
auth/validate_jwt.py:51
↓ 1 callersFunctiondeleteMessageById
(messages: IStep[], messageId: string)
react-native-chat/react-native-client/libs/cl-sdk-1.2/utils/message.ts:181
↓ 1 callersFunctiondetectSound
()
react-native-chat/react-native-client/libs/cl-sdk-1.2/useAudio.ts:143
↓ 1 callersMethoddisconnect
(self)
realtime-assistant/realtime/__init__.py:536
↓ 1 callersFunctiondisplay_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 callersFunctiondisplay_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 callersMethodexecute
(self, code: str)
archive/openai-functions-codeinterpreter/plugins/python/executor.py:29
↓ 1 callersMethodexecute_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 callersFunctionexecute_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 callersFunctionexecute_query
(query)
bigquery/app.py:64
↓ 1 callersFunctionfetcher
( client: ChainlitAPI, endpoint: string, token?: string )
react-native-chat/react-native-client/libs/cl-sdk-1.2/api/hooks/api.ts:8
↓ 1 callersFunctionfile_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 callersFunctionflatten
(xss)
mcp-linear/app.py:51
↓ 1 callersFunctionflatten
(xss)
mcp/app.py:40
↓ 1 callersFunctionflattenMessages
( messages: IStep[], condition: (node: IStep) => boolean )
custom-frontend/frontend/src/components/playground.tsx:11
↓ 1 callersFunctionfloat_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 callersFunctiongen_query
(human_query: str)
bigquery/app.py:39
↓ 1 callersFunctiongenerate_text_answer
(transcription)
openai-whisper/app.py:73
↓ 1 callersMethodgetElementUrl
(id: string, sessionId: string)
react-native-chat/react-native-client/libs/cl-sdk-1.2/api/index.tsx:245
↓ 1 callersFunctiongetProgressValue
(status)
mcp-linear/public/elements/LinearTicket.jsx:7
↓ 1 callersFunctiongetProgressValue
(status)
mcp/public/elements/LinearTicket.jsx:7
↓ 1 callersFunctionget_agent
(retriever)
archive/haystack/app.py:30
↓ 1 callersFunctionget_current_weather
(location, unit)
openai-responses-gpt5-functions-streaming/app.py:10
↓ 1 callersFunctionget_current_weather
(location, unit)
openai-functions-streaming/app.py:16
↓ 1 callersFunctionget_current_weather
Get the current weather in a given location
archive/openai-functions/app.py:18
↓ 1 callersFunctionget_image_name
()
archive/agent-image-editing/tools.py:14
↓ 1 callersMethodget_item
(self, id)
realtime-assistant/realtime/__init__.py:193
↓ 1 callersFunctionget_memory
()
archive/agent-image-editing/app.py:30
↓ 1 callersMethodget_prompt
(self)
llava/app.py:41
↓ 1 callersFunctionget_public_key
(jwks_uri, kid)
auth/validate_jwt.py:36
↓ 1 callersFunctionget_retriever
()
archive/haystack/app.py:20
↓ 1 callersFunctionget_rsa_public_key
(jwks, kid)
auth/validate_jwt.py:29
↓ 1 callersFunctionget_token_count
Get token count
archive/openai-functions-codeinterpreter/app.py:75
↓ 1 callersMethodget_turn_detection_type
(self)
realtime-assistant/realtime/__init__.py:542
↓ 1 callersFunctiongroupByDate
(data: IThread[])
react-native-chat/react-native-client/libs/cl-sdk-1.2/utils/group.ts:3
↓ 1 callersFunctionhandleSelect
(file)
custom-element/public/elements/PdfSelector.jsx:10
↓ 1 callersFunctionhandleSendMessage
()
custom-frontend/frontend/src/components/playground.tsx:37
↓ 1 callersFunctionhandleSuggestionClick
(suggestion, index)
suggestions/public/elements/FollowUpSuggestions.jsx:16
↓ 1 callersFunctioninstantiate_llm
()
local-llm/llama-cpp.py:14
↓ 1 callersFunctionlist_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 callersFunctionload_context
()
llama-index-googledocs-qa/app.py:28
↓ 1 callersFunctionload_llama
()
local-llm/llama2-chat.py:21
↓ 1 callersMethodlogout
()
react-native-chat/react-native-client/libs/cl-sdk-1.2/api/index.tsx:152
↓ 1 callersFunctionmain
(message: cl.Message)
archive/agent-image-editing/app.py:120
↓ 1 callersFunctionmoveMapTo
(newLat, newLng, newZoom = 12)
map-canvas/public/elements/Map.jsx:73
↓ 1 callersFunctionon_message
(message: cl.Message)
archive/openai-functions-codeinterpreter/app.py:96
↓ 1 callersFunctionprocess_audio
()
openai-whisper/app.py:146
↓ 1 callersMethodprocess_event
(self, event, *args)
realtime-assistant/realtime/__init__.py:187
↓ 1 callersFunctionprocess_file
(file: AskFileResponse)
pdf-qa/app.py:34
↓ 1 callersFunctionprocess_files
(files: List[Element])
openai-data-analyst/app.py:156
↓ 1 callersFunctionprocess_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 callersFunctionprocess_new_delta
( new_delta, openai_message, content_ui_message, function_ui_message )
archive/openai-functions-codeinterpreter/app.py:176
↓ 1 callersFunctionprocess_pdfs
(pdf_storage_path: str)
chroma-qa-chat/app.py:27
↓ 1 callersFunctionprocess_pdfs
(pdf_storage_path: str)
azure-openai-pinecone-pdf-qa/src/app.py:61
↓ 1 callersFunctionprocess_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 callersFunctionprovider_id_in_instance_list
(provider_id: str)
auth/inject_custom_auth.py:29
↓ 1 callersMethodput
(endpoint: string, data: Payload, token?: string)
react-native-chat/react-native-client/libs/cl-sdk-1.2/api/index.tsx:128
↓ 1 callersMethodqueue_input_audio
(self, input_audio)
realtime-assistant/realtime/__init__.py:184
↓ 1 callersFunctionrenderMessage
(message:IStep)
react-native-chat/react-native-client/components/playground/index.tsx:30
↓ 1 callersFunctionrenderMessage
(message: IStep)
custom-frontend/frontend/src/components/playground.tsx:50
↓ 1 callersFunctionrequest
(conversation: Conversation, settings)
llava/app.py:223
↓ 1 callersFunctionrun_chain
( messages: list[dict], tools_openai: list[dict], tools_map: dict )
humanlayer-openai/app.py:90
↓ 1 callersFunctionsaveAndSetToken
(token: string | null | undefined)
react-native-chat/react-native-client/libs/cl-sdk-1.2/api/hooks/auth.ts:33
↓ 1 callersFunctionsearch_web
(query)
openai-responses-gpt5-functions-streaming/app.py:17
↓ 1 callersFunctionsearch_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 callersFunctionsend_animated_message
Display animated message with minimal resource usage
loader-animation/app.py:9
↓ 1 callersMethodsend_user_message_content
(self, content=[])
realtime-assistant/realtime/__init__.py:585
↓ 1 callersFunctionsetToken
(token: string)
react-native-chat/react-native-client/libs/cl-sdk-1.2/utils/token.ts:11
↓ 1 callersFunctionsetup_agent
(settings)
archive/agent-image-editing/app.py:95
↓ 1 callersFunctionsetup_openai_realtime
Instantiate and configure the OpenAI Realtime Client
realtime-assistant/app.py:15
↓ 1 callersFunctionshow_full_conversation
(current_message, full_history)
openai-responses-gpt5-functions-streaming/app.py:84
↓ 1 callersFunctionshow_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 callersFunctionshow_linear_ticket
(title, status, assignee, deadline, tags)
mcp-linear/app.py:35
↓ 1 callersFunctionshow_linear_ticket
(title, status, assignee, deadline, tags)
mcp/app.py:26
↓ 1 callersFunctionshow_reasoning_summary
Display model reasoning summary
openai-responses-gpt5-functions-streaming-multi-modal-reasoning-super-advanced/tools.py:736
↓ 1 callersFunctionsimple_calculator
Simple calculator for testing function calls
openai-responses-gpt5-functions-streaming-multi-modal-reasoning-super-advanced/tools.py:166
↓ 1 callersFunctionspeech_to_text
(audio_file)
openai-whisper/app.py:31
↓ 1 callersFunctiontext_to_speech
(text: str, mime_type: str)
openai-whisper/app.py:40
↓ 1 callersFunctionthinking_step
(user_message: str)
extended-thinking-in-the-ui/app.py:13
↓ 1 callersFunctiontruncate_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 callersFunctionupdateMessageContentById
( 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 callersMethoduploadFile
( 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 callersFunctionupload_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 callersFunctionupload_files
(files: List[Element])
openai-data-analyst/app.py:146
↓ 1 callersFunctionuseAuth
()
react-native-chat/react-native-client/libs/cl-sdk-1.2/api/hooks/auth.ts:11
↓ 1 callersFunctionuuidv4
()
react-native-chat/react-native-client/libs/cl-sdk-1.2/useChatInteract.ts:30
↓ 1 callersFunctionvalidate_jwt
(token, jwks_uri)
auth/validate_jwt.py:45
FunctionApp
()
custom-frontend/frontend/src/App.tsx:9
← previousnext →101–200 of 447, ranked by callers