MCPcopy Create free account

hub / github.com/CopilotKit/OpenGenerativeUI / functions

Functions161 in github.com/CopilotKit/OpenGenerativeUI

Functionapply_template
Retrieve a saved template's HTML so you can adapt it with new data. After calling this, generate a NEW widget in the same style and render vi
apps/agent/src/templates.py:162
Functionclear_pending_template
Clear the pending_template from state after applying it. Call this after you have finished applying a template.
apps/agent/src/templates.py:251
Functiondelete_template
Delete a saved UI template. Args: template_id: The ID of the template to delete
apps/agent/src/templates.py:218
Functiongenerate_form
Generates a login form for the user to sign in.
apps/agent/src/form.py:5
FunctiongetChipContainer
()
apps/app/src/components/template-library/template-chip.tsx:20
Functionget_todos
Get the current todos.
apps/agent/src/todos.py:40
FunctionhandleApplyClick
(id: string)
apps/app/src/components/template-library/index.tsx:50
FunctionhandleClick
(e: MouseEvent)
apps/app/src/components/generative-ui/export-overlay.tsx:35
FunctionhandleDecline
()
apps/app/src/components/generative-ui/meeting-time-picker.tsx:42
FunctionhandleDelete
(id: string)
apps/app/src/components/template-library/index.tsx:75
FunctionhandleKeyDown
(e: KeyboardEvent)
apps/app/src/components/desktop-tip-modal.tsx:35
FunctionhandleKeyDown
(e: KeyboardEvent)
apps/app/src/components/demo-gallery/index.tsx:27
FunctionhandleTryDemo
(demo: DemoItem)
apps/app/src/app/page.tsx:40
Functionhandler
(e: Event)
apps/app/src/lib/sandbox/prompt-bridge.tsx:17
Functionhealth
()
apps/agent/main.py:41
Functionlist_templates
List all saved UI templates, including built-in seed templates. Returns template summaries (id, name, description, data_description).
apps/agent/src/templates.py:141
Functionlistener
(e: Event)
apps/app/src/lib/sandbox/__tests__/sandbox-functions.test.ts:12
Functionmanage_todos
Manage the current todos.
apps/agent/src/todos.py:19
FunctiononMessage
(e: MessageEvent)
apps/app/src/components/generative-ui/open-generative-ui/renderer.tsx:266
FunctionopenQrModal
()
apps/app/src/app/page.tsx:45
Functionplan_visualization
Plan a visualization before building it. MUST be called before generateSandboxedUi, pieChart, or barChart. Outlines the approach, technology c
apps/agent/src/plan.py:7
Methodput
(self, config, checkpoint, metadata, new_versions)
apps/agent/src/bounded_memory_saver.py:38
Functionquery_data
Query the database, takes natural language. Always call before showing a chart or graph.
apps/agent/src/query.py:12
Functionsave_template
Save a generated UI as a reusable template. Call this when the user wants to save a widget/visualization they liked for reuse later. Arg
apps/agent/src/templates.py:99
FunctionsubscribeChipContainer
(cb: () => void)
apps/app/src/components/template-library/template-chip.tsx:24
Functiontest_advanced_visualization_library_guidance_is_canonical
()
apps/agent/tests/test_skills_contract.py:50
Functiontest_agent_registers_compat_middleware
()
apps/agent/tests/test_anthropic_compat.py:92
Functiontest_all_three_skills_present
()
apps/agent/tests/test_skills_contract.py:18
Functiontest_apply_template_appends_canonical_translation_note
()
apps/agent/tests/test_canonical_contract.py:98
Functiontest_async_path_reorders_too
()
apps/agent/tests/test_anthropic_compat.py:51
Functiontest_before_agent_serializes_agui_context_models
()
apps/agent/tests/test_middleware_context.py:13
Functiontest_claude_model_names_route_to_anthropic
(monkeypatch: pytest.MonkeyPatch)
apps/agent/tests/test_model.py:38
Functiontest_default_model_is_fable
()
apps/agent/tests/test_model.py:17
Functiontest_every_skill_names_canonical_tool
(path)
apps/agent/tests/test_skills_contract.py:32
Functiontest_gpt_model_names_route_to_openai_fallback
(monkeypatch: pytest.MonkeyPatch)
apps/agent/tests/test_model.py:29
Functiontest_intact_thinking_block_unchanged
()
apps/agent/tests/test_anthropic_compat.py:84
Functiontest_js_fences_never_show_bare_top_level_await_imports
(name)
apps/agent/tests/test_skills_contract.py:85
Functiontest_llm_model_env_override
(monkeypatch: pytest.MonkeyPatch)
apps/agent/tests/test_model.py:23
Functiontest_main_uses_build_model
()
apps/agent/tests/test_model.py:51
Functiontest_max_tokens_fits_full_widget_generation
()
apps/agent/tests/test_model.py:43
Functiontest_moves_trailing_system_message_to_front
()
apps/agent/tests/test_anthropic_compat.py:31
Functiontest_no_inline_style_blocks_in_html_examples
(path)
apps/agent/tests/test_skills_contract.py:61
Functiontest_no_skill_references_widget_renderer
(path)
apps/agent/tests/test_skills_contract.py:27
Functiontest_noop_when_already_consecutive
()
apps/agent/tests/test_anthropic_compat.py:44
Functiontest_plan_visualization_docstring_names_canonical_tool
()
apps/agent/tests/test_canonical_contract.py:75
Functiontest_plan_visualization_is_a_langchain_tool
()
apps/agent/tests/test_smoke.py:6
Functiontest_preserves_relative_order_of_system_messages
()
apps/agent/tests/test_anthropic_compat.py:37
Functiontest_procedural_skills_document_css_first_reveal
(name)
apps/agent/tests/test_skills_contract.py:44
Functiontest_procedural_skills_document_js_channels
(name)
apps/agent/tests/test_skills_contract.py:37
Functiontest_procedural_skills_warn_about_classic_script_semantics
(name)
apps/agent/tests/test_skills_contract.py:102
Functiontest_prompt_documents_library_imports_for_sandbox
()
apps/agent/tests/test_canonical_contract.py:58
Functiontest_prompt_documents_ordered_params
()
apps/agent/tests/test_canonical_contract.py:16
Functiontest_prompt_documents_sandbox_bridge_and_restrictions
()
apps/agent/tests/test_canonical_contract.py:38
Functiontest_prompt_forbids_repeat_generate_sandboxed_ui_calls
()
apps/agent/tests/test_canonical_contract.py:107
Functiontest_prompt_forbids_top_level_await_in_js_channels
()
apps/agent/tests/test_canonical_contract.py:65
Functiontest_prompt_preserves_visualization_protocol
()
apps/agent/tests/test_canonical_contract.py:45
Functiontest_prompt_uses_generate_sandboxed_ui_not_widget_renderer
()
apps/agent/tests/test_canonical_contract.py:11
Functiontest_repairs_thinking_block_missing_text_field
()
apps/agent/tests/test_anthropic_compat.py:67
Functiontest_seed_templates_use_sandbox_bridge_not_global_send_prompt
()
apps/agent/tests/test_canonical_contract.py:86
Functiontest_send_prompt_examples_use_sandbox_bridge
(name)
apps/agent/tests/test_skills_contract.py:74
Functiontest_templates_docstrings_name_canonical_tool
()
apps/agent/tests/test_canonical_contract.py:80
← previous101–161 of 161, ranked by callers