Skip to content

armgit / burr

Public Imported from GitHub
0

Build applications that make decisions (chatbots, agents, simulations, etc...). Monitor, trace, persist, and execute on your own infrastructure.

Moves web server files to be adjacent to the examples they work with

elijahbenizzy5b6dd2f231b0
diff --git a/burr/tracking/server/run.py b/burr/tracking/server/run.py
index f239ae3a..560ddc95 100644
--- a/burr/tracking/server/run.py
+++ b/burr/tracking/server/run.py
@@ -1,9 +1,9 @@
+import importlib
import os
from importlib.resources import files
from typing import Sequence
from burr.integrations.base import require_plugin
-from burr.tracking.server.examples import chatbot, email_assistant
try:
import uvicorn
@@ -14,6 +14,11 @@ try:
from burr.tracking.server import backend as backend_module
from burr.tracking.server import schema
from burr.tracking.server.schema import ApplicationLogs
+
+ # dynamic importing due to the dashes (which make reading the examples on github easier)
+ email_assistant = importlib.import_module("burr.examples.email-assistant.server")
+ chatbot = importlib.import_module("burr.examples.multi-modal-chatbot.server")
+
except ImportError as e:
require_plugin(
e,
diff --git a/burr/tracking/server/examples/email_assistant.py b/examples/email-assistant/server.py
similarity index 100%
rename from burr/tracking/server/examples/email_assistant.py
rename to examples/email-assistant/server.py
diff --git a/burr/tracking/server/examples/chatbot.py b/examples/multi-modal-chatbot/server.py
similarity index 100%
rename from burr/tracking/server/examples/chatbot.py
rename to examples/multi-modal-chatbot/server.py
diff --git a/telemetry/ui/src/api/models/Feedback.ts b/telemetry/ui/src/api/models/Feedback.ts
new file mode 100644
index 00000000..eaefd014
--- /dev/null
+++ b/telemetry/ui/src/api/models/Feedback.ts
@@ -0,0 +1,7 @@
+/* generated using openapi-typescript-codegen -- do no edit */
+/* istanbul ignore file */
+/* tslint:disable */
+/* eslint-disable */
+export type Feedback = {
+ feedback: string;
+};