LLM-Based Open-Domain Integrated Task and Knowledge Assistants with Programmable Policies