This is a simple example agent that demonstrates how to detect and report which custom features are enabled or disabled in the OpenBB Workspace UI.
This agent:
- Greets users with a friendly hello message
- Reports the status of custom features (Deep Research and Web Search)
- Shows whether each feature is enabled (✅) or disabled (❌) based on the UI settings
The agent defines two custom features in its configuration:
- Deep Research: Allows the agent to perform deep research (default: disabled)
- Web Search: Allows the agent to search the web (default: enabled)
Users can toggle these features on/off in the OpenBB Workspace UI, and the agent will detect and report the current status.
Ensure you have poetry, a tool for dependency management and packaging in Python, as well as your OpenAI API key.
-
Clone this repository to your local machine.
-
Set the OpenAI API key as an environment variable in your .bashrc or .zshrc file:
# in .zshrc or .bashrc export OPENAI_API_KEY=<your-api-key>
-
Install the necessary dependencies:
poetry install --no-root- Start the API server:
cd 37-vanilla-agent-custom-features
poetry run uvicorn vanilla_agent_custom_features.main:app --port 7777 --reloadThis command runs the FastAPI application, making it accessible on your network.
The example agent has a small, basic test suite to ensure it's working correctly. As you develop your agent, you are highly encouraged to expand these tests.
You can run the tests with:
pytest testsOnce the API server is running, you can view the documentation and interact with the API by visiting: http://localhost:7777/docs