Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenBB-finance/agents-for-openbb
/ functions
Functions
156 in github.com/OpenBB-finance/agents-for-openbb
⨍
Functions
156
◇
Types & classes
8
↳
Endpoints
31
↓ 4 callers
Function
html_artifact
Create an HTML artifact SSE event. Args: content: The HTML content to render name: A unique name for the artifact de
39-vanilla-agent-html-artifacts/vanilla_agent_html/main.py:40
↓ 4 callers
Function
truncate_content
Truncate content to avoid hitting OpenAI's token limits. Roughly 1 token ≈ 4 chars, so 50k chars ≈ 12.5k tokens per message. With mul
38-vanilla-agent-mcp-tools/vanilla_agent_mcp_tools/main.py:196
↓ 3 callers
Function
format_widget
(w)
40-vanilla-agent-dashboard-widgets/vanilla_agent_dashboard_widgets/main.py:54
↓ 2 callers
Function
extract_pdf_with_positions
Extract text and positions from PDF.
36-vanilla-agent-pdf-citations/vanilla_agent_pdf_citations/main.py:223
↓ 2 callers
Function
get_system_prompt
Generate a dynamic system prompt based on available features and context.
99-advanced-examples/portfolio-commentary-with-search-feature/portfolio_commentary/main.py:17
↓ 2 callers
Function
stream
()
37-vanilla-agent-custom-features/tests/test_agent.py:94
↓ 1 callers
Function
_download_file
Download file from URL.
36-vanilla-agent-pdf-citations/vanilla_agent_pdf_citations/main.py:215
↓ 1 callers
Function
_download_file
(url: str)
35-vanilla-agent-pdf/vanilla_agent_pdf/main.py:214
↓ 1 callers
Function
_get_active_skill
Return the active skill from selected_skills or the last tool message.
41-vanilla-agent-dynamic-skill/vanilla_agent_dynamic_skill/main.py:51
↓ 1 callers
Function
_get_base64_pdf_text
( data: SingleDataContent, )
36-vanilla-agent-pdf-citations/vanilla_agent_pdf_citations/main.py:276
↓ 1 callers
Function
_get_base64_pdf_text
(data: SingleDataContent)
35-vanilla-agent-pdf/vanilla_agent_pdf/main.py:233
↓ 1 callers
Function
_get_url_pdf_text
( data: SingleFileReference, )
36-vanilla-agent-pdf-citations/vanilla_agent_pdf_citations/main.py:268
↓ 1 callers
Function
_get_url_pdf_text
(data: SingleFileReference)
35-vanilla-agent-pdf/vanilla_agent_pdf/main.py:222
↓ 1 callers
Function
_mock_streaming_client
(*chunks: str)
41-vanilla-agent-dynamic-skill/tests/test_agent.py:47
↓ 1 callers
Function
empty_response
()
40-vanilla-agent-dashboard-widgets/vanilla_agent_dashboard_widgets/main.py:163
↓ 1 callers
Function
execution_loop
()
36-vanilla-agent-pdf-citations/vanilla_agent_pdf_citations/main.py:193
↓ 1 callers
Function
execution_loop
()
33-vanilla-agent-charts/vanilla_agent_charts/main.py:74
↓ 1 callers
Function
execution_loop
()
41-vanilla-agent-dynamic-skill/vanilla_agent_dynamic_skill/main.py:202
↓ 1 callers
Function
execution_loop
()
31-vanilla-agent-reasoning-steps/vanilla_agent_reasoning_steps/main.py:74
↓ 1 callers
Function
execution_loop
()
34-vanilla-agent-tables/vanilla_agent_tables/main.py:74
↓ 1 callers
Function
execution_loop
()
42-vanilla-agent-feedback/vanilla_agent_feedback/main.py:107
↓ 1 callers
Function
execution_loop
()
38-vanilla-agent-mcp-tools/vanilla_agent_mcp_tools/main.py:251
↓ 1 callers
Function
execution_loop
()
37-vanilla-agent-custom-features/vanilla_agent_custom_features/main.py:135
↓ 1 callers
Function
execution_loop
()
39-vanilla-agent-html-artifacts/vanilla_agent_html/main.py:169
↓ 1 callers
Function
execution_loop
()
32-vanilla-agent-raw-widget-data-citations/vanilla_agent_raw_context_citations/main.py:143
↓ 1 callers
Function
execution_loop
()
35-vanilla-agent-pdf/vanilla_agent_pdf/main.py:192
↓ 1 callers
Function
execution_loop
()
20-financial-prompt-optimizer/main.py:76
↓ 1 callers
Function
execution_loop
()
30-vanilla-agent-raw-widget-data/vanilla_agent_raw_context/main.py:125
↓ 1 callers
Function
handle_widget_data
Process widget data and extract PDF text with positions if applicable. Returns: Tuple containing: - result_str: Formatted text co
36-vanilla-agent-pdf-citations/vanilla_agent_pdf_citations/main.py:283
↓ 1 callers
Function
handle_widget_data
(data: list[DataContent | DataFileReferences])
35-vanilla-agent-pdf/vanilla_agent_pdf/main.py:243
↓ 1 callers
Function
process_request
()
99-advanced-examples/portfolio-commentary-with-search-feature/portfolio_commentary/main.py:165
↓ 1 callers
Function
retrieve_widget_data
()
36-vanilla-agent-pdf-citations/vanilla_agent_pdf_citations/main.py:95
↓ 1 callers
Function
retrieve_widget_data
()
38-vanilla-agent-mcp-tools/vanilla_agent_mcp_tools/main.py:78
↓ 1 callers
Function
retrieve_widget_data
()
32-vanilla-agent-raw-widget-data-citations/vanilla_agent_raw_context_citations/main.py:74
↓ 1 callers
Function
retrieve_widget_data
()
35-vanilla-agent-pdf/vanilla_agent_pdf/main.py:95
↓ 1 callers
Function
retrieve_widget_data
()
99-advanced-examples/portfolio-commentary-with-search-feature/portfolio_commentary/main.py:130
↓ 1 callers
Function
retrieve_widget_data
()
30-vanilla-agent-raw-widget-data/vanilla_agent_raw_context/main.py:78
↓ 1 callers
Function
show_widgets
()
40-vanilla-agent-dashboard-widgets/vanilla_agent_dashboard_widgets/main.py:150
Method
__aiter__
(self)
41-vanilla-agent-dynamic-skill/tests/test_agent.py:36
Method
__anext__
(self)
41-vanilla-agent-dynamic-skill/tests/test_agent.py:39
Method
__init__
(self, *chunks: str)
41-vanilla-agent-dynamic-skill/tests/test_agent.py:27
Function
cleanup_feedback_file
()
42-vanilla-agent-feedback/tests/test_agent.py:20
Function
feedback
Receive and persist user feedback to a local JSON file.
42-vanilla-agent-feedback/vanilla_agent_feedback/main.py:68
Function
get_copilot_description
Copilot descriptor for OpenBB Workspace.
40-vanilla-agent-dashboard-widgets/vanilla_agent_dashboard_widgets/main.py:20
Function
get_copilot_description
Agents configuration file for the OpenBB Workspace
36-vanilla-agent-pdf-citations/vanilla_agent_pdf_citations/main.py:50
Function
get_copilot_description
Agents configuration file for the OpenBB Workspace
33-vanilla-agent-charts/vanilla_agent_charts/main.py:29
Function
get_copilot_description
Agent descriptor for OpenBB Workspace discovery.
41-vanilla-agent-dynamic-skill/vanilla_agent_dynamic_skill/main.py:78
Function
get_copilot_description
Widgets configuration file for the OpenBB Terminal Pro
31-vanilla-agent-reasoning-steps/vanilla_agent_reasoning_steps/main.py:29
Function
get_copilot_description
Agents configuration file for the OpenBB Workspace
34-vanilla-agent-tables/vanilla_agent_tables/main.py:29
Function
get_copilot_description
Agent configuration for OpenBB Workspace.
42-vanilla-agent-feedback/vanilla_agent_feedback/main.py:44
Function
get_copilot_description
Widgets configuration file for the OpenBB Terminal Pro
38-vanilla-agent-mcp-tools/vanilla_agent_mcp_tools/main.py:35
Function
get_copilot_description
Agent descriptor for the OpenBB Workspace.
37-vanilla-agent-custom-features/vanilla_agent_custom_features/main.py:29
Function
get_copilot_description
Agents configuration file for the OpenBB Workspace
39-vanilla-agent-html-artifacts/vanilla_agent_html/main.py:123
Function
get_copilot_description
Widgets configuration file for the OpenBB Terminal Pro
32-vanilla-agent-raw-widget-data-citations/vanilla_agent_raw_context_citations/main.py:29
Function
get_copilot_description
Agents configuration file for the OpenBB Workspace
35-vanilla-agent-pdf/vanilla_agent_pdf/main.py:50
Function
get_copilot_description
Agent descriptor for the OpenBB Workspace.
20-financial-prompt-optimizer/main.py:29
Function
get_copilot_description
Copilot descriptor for OpenBB Workspace.
99-advanced-examples/portfolio-commentary-with-search-feature/portfolio_commentary/main.py:73
Function
get_copilot_description
Widgets configuration file for the OpenBB Terminal Pro
30-vanilla-agent-raw-widget-data/vanilla_agent_raw_context/main.py:29
Function
mock_create
(**kwargs)
41-vanilla-agent-dynamic-skill/tests/test_agent.py:48
Function
mock_create
(**kwargs)
37-vanilla-agent-custom-features/tests/test_agent.py:74
Function
query
Query the Copilot.
40-vanilla-agent-dashboard-widgets/vanilla_agent_dashboard_widgets/main.py:40
Function
query
Query the Copilot.
36-vanilla-agent-pdf-citations/vanilla_agent_pdf_citations/main.py:70
Function
query
Query the Agent.
33-vanilla-agent-charts/vanilla_agent_charts/main.py:49
Function
query
Process a query with optional one-time dynamic skill loading.
41-vanilla-agent-dynamic-skill/vanilla_agent_dynamic_skill/main.py:104
Function
query
Query the Copilot.
31-vanilla-agent-reasoning-steps/vanilla_agent_reasoning_steps/main.py:49
Function
query
Query the Agent.
34-vanilla-agent-tables/vanilla_agent_tables/main.py:49
Function
query
Query the Copilot.
42-vanilla-agent-feedback/vanilla_agent_feedback/main.py:86
Function
query
Query the Copilot with MCP tools support.
38-vanilla-agent-mcp-tools/vanilla_agent_mcp_tools/main.py:56
Function
query
Stream a simple greeting with feature status.
37-vanilla-agent-custom-features/vanilla_agent_custom_features/main.py:87
Function
query
Query the Agent.
39-vanilla-agent-html-artifacts/vanilla_agent_html/main.py:143
Function
query
Query the Copilot.
32-vanilla-agent-raw-widget-data-citations/vanilla_agent_raw_context_citations/main.py:49
Function
query
Query the Copilot.
35-vanilla-agent-pdf/vanilla_agent_pdf/main.py:70
Function
query
Stream a concise optimized prompt and rationale.
20-financial-prompt-optimizer/main.py:49
Function
query
Query the Copilot.
99-advanced-examples/portfolio-commentary-with-search-feature/portfolio_commentary/main.py:98
Function
query
Query the Copilot.
30-vanilla-agent-raw-widget-data/vanilla_agent_raw_context/main.py:49
Function
reset_sse_starlette_appstatus_event
Fixture that resets the appstatus event in the sse_starlette app. Should be used on any test that uses sse_starlette to stream events.
40-vanilla-agent-dashboard-widgets/tests/test_agent.py:15
Function
reset_sse_starlette_appstatus_event
Fixture that resets the appstatus event in the sse_starlette app. Should be used on any test that uses sse_starlette to stream events.
36-vanilla-agent-pdf-citations/tests/test_agent.py:13
Function
reset_sse_starlette_appstatus_event
Fixture that resets the appstatus event in the sse_starlette app. Should be used on any test that uses sse_starlette to stream events.
33-vanilla-agent-charts/tests/test_agent.py:12
Function
reset_sse_starlette_appstatus_event
Fixture that resets the appstatus event in the sse_starlette app. Should be used on any test that uses sse_starlette to stream events.
41-vanilla-agent-dynamic-skill/tests/test_agent.py:16
Function
reset_sse_starlette_appstatus_event
Fixture that resets the appstatus event in the sse_starlette app. Should be used on any test that uses sse_starlette to stream events.
31-vanilla-agent-reasoning-steps/tests/test_agent.py:12
Function
reset_sse_starlette_appstatus_event
Fixture that resets the appstatus event in the sse_starlette app. Should be used on any test that uses sse_starlette to stream events.
34-vanilla-agent-tables/tests/test_agent.py:12
Function
reset_sse_starlette_appstatus_event
()
42-vanilla-agent-feedback/tests/test_agent.py:13
Function
reset_sse_starlette_appstatus_event
Fixture that resets the appstatus event in the sse_starlette app. Should be used on any test that uses sse_starlette to stream events.
38-vanilla-agent-mcp-tools/tests/test_mcp_integration.py:14
Function
reset_sse_starlette_appstatus_event
Fixture that resets the appstatus event in the sse_starlette app. Should be used on any test that uses sse_starlette to stream events.
37-vanilla-agent-custom-features/tests/test_agent.py:13
Function
reset_sse_starlette_appstatus_event
Fixture that resets the appstatus event in the sse_starlette app. Should be used on any test that uses sse_starlette to stream events.
32-vanilla-agent-raw-widget-data-citations/tests/test_agent.py:12
Function
reset_sse_starlette_appstatus_event
Fixture that resets the appstatus event in the sse_starlette app. Should be used on any test that uses sse_starlette to stream events.
35-vanilla-agent-pdf/tests/test_agent.py:13
Function
reset_sse_starlette_appstatus_event
Fixture that resets the appstatus event in the sse_starlette app. Should be used on any test that uses sse_starlette to stream events.
30-vanilla-agent-raw-widget-data/tests/test_agent.py:12
Function
test_agent_basic_configuration
Test basic agent configuration is correct.
38-vanilla-agent-mcp-tools/tests/test_mcp_integration.py:215
Function
test_agents_json
()
42-vanilla-agent-feedback/tests/test_agent.py:26
Function
test_agents_json
Test that the agents.json endpoint returns the correct configuration.
37-vanilla-agent-custom-features/tests/test_agent.py:24
Function
test_agents_json
Test that the agents.json endpoint returns valid configuration.
39-vanilla-agent-html-artifacts/tests/test_main.py:12
Function
test_agents_json_configuration
()
41-vanilla-agent-dynamic-skill/tests/test_agent.py:57
Function
test_agents_json_endpoints
Test that the correct API endpoints are exposed.
38-vanilla-agent-mcp-tools/tests/test_mcp_integration.py:49
Function
test_agents_json_has_dashboard_search_feature_enabled
()
40-vanilla-agent-dashboard-widgets/tests/test_agent.py:26
Function
test_agents_json_mcp_configuration
Test that the agent is properly configured for MCP tools.
38-vanilla-agent-mcp-tools/tests/test_mcp_integration.py:25
Function
test_cors_headers_present
Test that CORS headers are properly configured.
38-vanilla-agent-mcp-tools/tests/test_mcp_integration.py:249
Function
test_empty_messages_validation
()
41-vanilla-agent-dynamic-skill/tests/test_agent.py:300
Function
test_empty_messages_validation
Test that empty messages are properly validated.
38-vanilla-agent-mcp-tools/tests/test_mcp_integration.py:72
Function
test_feedback_thumbs_down
(tmp_path, monkeypatch)
42-vanilla-agent-feedback/tests/test_agent.py:57
Function
test_feedback_thumbs_up
(tmp_path, monkeypatch)
42-vanilla-agent-feedback/tests/test_agent.py:36
next →
1–100 of 156, ranked by callers