Build applications that make decisions (chatbots, agents, simulations, etc...). Monitor, trace, persist, and execute on your own infrastructure.
Python aiburrchatbot-frameworkdagsgenerative-aigraphshacktoberfestllmopsllmsmlopspersistent-data-structurestate-machinestate-managementvisibility
Fix Copyright year to 2026 (#633)
Jarek Potiuke04433c5ccd3
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yamlindex 7905de2c..aee19ae4 100644--- a/.pre-commit-config.yaml+++ b/.pre-commit-config.yaml@@ -1,4 +1,4 @@-# Copyright 2025 Apache Software Foundation+# Copyright 2026 Apache Software Foundation## Licensed under the Apache License, Version 2.0 (the "License");# you may not use this file except in compliance with the License.diff --git a/.style.yapf b/.style.yapfindex fd8f1fcf..8a3aba20 100644--- a/.style.yapf+++ b/.style.yapf@@ -1,4 +1,4 @@-# Copyright 2025 Apache Software Foundation+# Copyright 2026 Apache Software Foundation## Licensed under the Apache License, Version 2.0 (the "License");# you may not use this file except in compliance with the License.diff --git a/NOTICE b/NOTICEindex 0a81403e..756c8b60 100644--- a/NOTICE+++ b/NOTICE@@ -1,5 +1,5 @@Apache Burr (Incubating)-Copyright 2025 The Apache Software Foundation+Copyright 2026 The Apache Software FoundationThis product includes software developed atThe Apache Software Foundation (http://www.apache.org/).diff --git a/burr/tracking/server/s3/deployment/terraform/.terraform.lock.hcl b/burr/tracking/server/s3/deployment/terraform/.terraform.lock.hclindex ef8d24da..4fbf52a1 100644--- a/burr/tracking/server/s3/deployment/terraform/.terraform.lock.hcl+++ b/burr/tracking/server/s3/deployment/terraform/.terraform.lock.hcl@@ -1,4 +1,4 @@-# Copyright 2025 Apache Software Foundation+# Copyright 2026 Apache Software Foundation## Licensed under the Apache License, Version 2.0 (the "License");# you may not use this file except in compliance with the License.diff --git a/examples/deep-researcher/notebook.ipynb b/examples/deep-researcher/notebook.ipynbindex e494798d..6673870b 100644--- a/examples/deep-researcher/notebook.ipynb+++ b/examples/deep-researcher/notebook.ipynb@@ -6,7 +6,7 @@"outputs": [],"execution_count": null,"source": [- "# Copyright 2025 Apache Software Foundation\n",+ "# Copyright 2026 Apache Software Foundation\n","#\n","# Licensed under the Apache License, Version 2.0 (the \"License\");\n","# you may not use this file except in compliance with the License.\n",@@ -180,7 +180,7 @@"source": ["## Deep Researcher\n","\n",- "This is an example of a research assistant agent that uses llm chat and llm-friendly search together to provide a report, complete with internet citations, on a topic of the user's choosing. The graph for the agent includes optional reflection and re-writing that is implemented as a loop. This particular version of a research assistant uses the OpenAI API code for chat and the Tavily API for search. \n",+ "This is an example of a research assistant agent that uses llm chat and llm-friendly search together to provide a report, complete with internet citations, on a topic of the user's choosing. The graph for the agent includes optional reflection and re-writing that is implemented as a loop. This particular version of a research assistant uses the OpenAI API code for chat and the Tavily API for search.\n","\n","Given a research topic, the research assistant flow consists of several steps. On initialization, the assistant must:\n","\n",@@ -197,7 +197,7 @@"5. Finalize summary with formatted sources and return it to the user.\n","\n","The graph for the application is visualized below.\n",- " \n"+ "\n"]},{@@ -364,7 +364,7 @@"source": ["my_research_topic = \"getting a job in datascience\"\n","action, state, result = app.run(halt_after=[\"finalize_summary\"], inputs={\"research_topic\": my_research_topic})\n",- "print(app.state[\"running_summary\"]) "+ "print(app.state[\"running_summary\"])"]},{@@ -384,7 +384,7 @@"source": ["my_research_topic = \"how to get started with canning food at home\"\n","action, state, result = app.run(halt_after=[\"finalize_summary\"], inputs={\"research_topic\": my_research_topic})\n",- "print(app.state[\"running_summary\"]) "+ "print(app.state[\"running_summary\"])"]},{diff --git a/examples/deep-researcher/requirements.txt b/examples/deep-researcher/requirements.txtindex b498e389..eb345e08 100644--- a/examples/deep-researcher/requirements.txt+++ b/examples/deep-researcher/requirements.txt@@ -1,4 +1,4 @@-# Copyright 2025 Apache Software Foundation+# Copyright 2026 Apache Software Foundation## Licensed under the Apache License, Version 2.0 (the "License");# you may not use this file except in compliance with the License.diff --git a/examples/email-assistant/notebook.ipynb b/examples/email-assistant/notebook.ipynbindex f63ca4d9..cbe0adfc 100644--- a/examples/email-assistant/notebook.ipynb+++ b/examples/email-assistant/notebook.ipynb@@ -6,7 +6,7 @@"outputs": [],"execution_count": null,"source": [- "# Copyright 2025 Apache Software Foundation\n",+ "# Copyright 2026 Apache Software Foundation\n","#\n","# Licensed under the Apache License, Version 2.0 (the \"License\");\n","# you may not use this file except in compliance with the License.\n",@@ -57,7 +57,7 @@"source": ["# The Application\n","\n",- "We're modeling this as a multi-shot model. No sane person would trust GPT-x to respond on their behalf, \n",+ "We're modeling this as a multi-shot model. No sane person would trust GPT-x to respond on their behalf,\n","but it can be quite valuable in helping automate the process of responding to an email and deciding how to respond.\n","There are a few interaction points:\n","\n",@@ -65,7 +65,7 @@"2. The LLM has the option to ask a set of clarifying questions that the user can then respond to\n","3. The user then provides feedback. If feedback is empty, the LLM will return a result\n","\n",- "This demonstrates how to use Burr to move in/out of more complex flows. \n",+ "This demonstrates how to use Burr to move in/out of more complex flows.\n","\n","First, we instantiate/visualize the application. To see the code, see [application.py](application.py)."]@@ -146,9 +146,9 @@"Regards,\n","Someone\"\"\"\n","\n",- "INSTRUCTIONS = \"\"\"I get a bunch of these emails and usually ignore them. I don't want to pay \n",- "(or really engage) but I want to see if they can help promote our tooling, \n",- "particularly the OS libraries Hamilton and Burr, which are tools for AI practitioners. \n",+ "INSTRUCTIONS = \"\"\"I get a bunch of these emails and usually ignore them. I don't want to pay\n",+ "(or really engage) but I want to see if they can help promote our tooling,\n",+ "particularly the OS libraries Hamilton and Burr, which are tools for AI practitioners.\n","Let's see if we can turn this cold-call around.\n","\"\"\""]@@ -200,7 +200,7 @@"\n","def request_feedback(draft):\n"," \"\"\"Requests feedback from the user for a draft\"\"\"\n",- " print( \n",+ " print(\n"," f\"here's a draft!: \\n {draft} \\n \\n What feedback do you have?\",\n"," \"If you have no feedback then we'll finish it up.\"\n"," )\n",@@ -212,7 +212,7 @@"}\n","while True:\n"," action, result, state = app.run(\n",- " halt_before=[\"clarify_instructions\", \"process_feedback\"], \n",+ " halt_before=[\"clarify_instructions\", \"process_feedback\"],\n"," halt_after=[\"final_result\"],\n"," inputs=inputs\n"," )\n",diff --git a/examples/email-assistant/requirements.txt b/examples/email-assistant/requirements.txtindex eb4d5e7a..b86c64f5 100644--- a/examples/email-assistant/requirements.txt+++ b/examples/email-assistant/requirements.txt@@ -1,4 +1,4 @@-# Copyright 2025 Apache Software Foundation+# Copyright 2026 Apache Software Foundation## Licensed under the Apache License, Version 2.0 (the "License");# you may not use this file except in compliance with the License.diff --git a/examples/hello-world-counter/notebook.ipynb b/examples/hello-world-counter/notebook.ipynbindex c34b692a..e9296025 100644--- a/examples/hello-world-counter/notebook.ipynb+++ b/examples/hello-world-counter/notebook.ipynb@@ -6,7 +6,7 @@"outputs": [],"execution_count": null,"source": [- "# Copyright 2025 Apache Software Foundation\n",+ "# Copyright 2026 Apache Software Foundation\n","#\n","# Licensed under the Apache License, Version 2.0 (the \"License\");\n","# you may not use this file except in compliance with the License.\n",diff --git a/examples/multi-modal-chatbot/burr_demo.ipynb b/examples/multi-modal-chatbot/burr_demo.ipynbindex b18f4fc4..5af9f21f 100644--- a/examples/multi-modal-chatbot/burr_demo.ipynb+++ b/examples/multi-modal-chatbot/burr_demo.ipynb@@ -6,7 +6,7 @@"outputs": [],"execution_count": null,"source": [- "# Copyright 2025 Apache Software Foundation\n",+ "# Copyright 2026 Apache Software Foundation\n","#\n","# Licensed under the Apache License, Version 2.0 (the \"License\");\n","# you may not use this file except in compliance with the License.\n",@@ -123,7 +123,7 @@"import copy\n","\n","from IPython.display import Image, display\n",- "from IPython.core.display import HTML \n",+ "from IPython.core.display import HTML\n","import openai\n","\n","from burr.core import ApplicationBuilder, State, default, graph, when\n",@@ -190,7 +190,7 @@"def chat_response(\n"," state: State, prepend_prompt: str, model: str = \"gpt-3.5-turbo\"\n",") -> State:\n",- " \n",+ "\n"," chat_history = copy.deepcopy(state[\"chat_history\"])\n"," chat_history[-1][\"content\"] = f\"{prepend_prompt}: {chat_history[-1]['content']}\"\n"," chat_history_api_format = [\n",@@ -409,7 +409,7 @@"base_graph = (\n"," graph.GraphBuilder()\n"," .with_actions(\n",- " # these are the \"nodes\" \n",+ " # these are the \"nodes\"\n"," prompt=process_prompt,\n"," decide_mode=choose_mode,\n"," generate_image=image_response,\n",@@ -635,8 +635,8 @@" ApplicationBuilder()\n"," .with_graph(base_graph)\n"," .initialize_from(\n",- " tracker, \n",- " resume_at_next_action=True, \n",+ " tracker,\n",+ " resume_at_next_action=True,\n"," default_state={\"chat_history\": []},\n"," default_entrypoint=\"prompt\",\n"," )\n",@@ -744,7 +744,7 @@" if \"quit\" == user_input.lower():\n"," break\n"," last_action, action_result, app_state = app.run(\n",- " halt_after=[\"response\"], \n",+ " halt_after=[\"response\"],\n"," inputs={\"prompt\": user_input}\n"," )\n"," last_message = app_state[\"chat_history\"][-1]\n",@@ -796,7 +796,7 @@" .with_graph(base_graph)\n"," .initialize_from(\n"," tracker,\n",- " resume_at_next_action=True, \n",+ " resume_at_next_action=True,\n"," default_state={\"chat_history\": []},\n"," default_entrypoint=\"prompt\",\n"," )\n",@@ -868,7 +868,7 @@" if \"quit\" == user_input.lower():\n"," break\n"," last_action, action_result, app_state = resumed_app.run(\n",- " halt_after=[\"response\"], \n",+ " halt_after=[\"response\"],\n"," inputs={\"prompt\": user_input}\n"," )\n"," last_message = app_state[\"chat_history\"][-1]\n",@@ -917,7 +917,7 @@" .with_graph(base_graph) # this could be different...\n"," .initialize_from(\n"," tracker,\n",- " resume_at_next_action=True, \n",+ " resume_at_next_action=True,\n"," default_state={\"chat_history\": []},\n"," default_entrypoint=\"prompt\",\n"," fork_from_app_id=app_id,\n",@@ -997,7 +997,7 @@" if \"quit\" == user_input.lower():\n"," break\n"," last_action, action_result, app_state = forked_app.run(\n",- " halt_after=[\"response\"], \n",+ " halt_after=[\"response\"],\n"," inputs={\"prompt\": user_input}\n"," )\n"," last_message = app_state[\"chat_history\"][-1]\n",@@ -1021,7 +1021,7 @@"\n","[Time Travel blog post & video:](https://blog.dagworks.io/p/travel-back-in-time-with-burr)\n","\n",- "<a href=\"https://www.youtube.com/embed/98vxhIcE6NI?si=oV1BbSUCKa1UvX5P\"><img src=\"https://img.youtube.com/vi/98vxhIcE6NI/0.jpg\"> \n",+ "<a href=\"https://www.youtube.com/embed/98vxhIcE6NI?si=oV1BbSUCKa1UvX5P\"><img src=\"https://img.youtube.com/vi/98vxhIcE6NI/0.jpg\">\n","</img>\n","<a href=\"https://www.youtube.com/embed/98vxhIcE6NI?si=oV1BbSUCKa1UvX5P\">\n","\n",diff --git a/examples/multi-modal-chatbot/notebook.ipynb b/examples/multi-modal-chatbot/notebook.ipynbindex b836a2bb..53753899 100644--- a/examples/multi-modal-chatbot/notebook.ipynb+++ b/examples/multi-modal-chatbot/notebook.ipynb@@ -6,7 +6,7 @@"outputs": [],"execution_count": null,"source": [- "# Copyright 2025 Apache Software Foundation\n",+ "# Copyright 2026 Apache Software Foundation\n","#\n","# Licensed under the Apache License, Version 2.0 (the \"License\");\n","# you may not use this file except in compliance with the License.\n",diff --git a/examples/multi-modal-chatbot/requirements.txt b/examples/multi-modal-chatbot/requirements.txtindex 3b8ae6d9..e2a2deb2 100644--- a/examples/multi-modal-chatbot/requirements.txt+++ b/examples/multi-modal-chatbot/requirements.txt@@ -1,4 +1,4 @@-# Copyright 2025 Apache Software Foundation+# Copyright 2026 Apache Software Foundation## Licensed under the Apache License, Version 2.0 (the "License");# you may not use this file except in compliance with the License.diff --git a/examples/streaming-fastapi/notebook.ipynb b/examples/streaming-fastapi/notebook.ipynbindex 6da8dd8e..a4a813ee 100644--- a/examples/streaming-fastapi/notebook.ipynb+++ b/examples/streaming-fastapi/notebook.ipynb@@ -6,7 +6,7 @@"outputs": [],"execution_count": null,"source": [- "# Copyright 2025 Apache Software Foundation\n",+ "# Copyright 2026 Apache Software Foundation\n","#\n","# Licensed under the Apache License, Version 2.0 (the \"License\");\n","# you may not use this file except in compliance with the License.\n",@@ -48,7 +48,7 @@"You can view this demo in your app by running Burr:\n","\n","```bash\n",- "burr \n",+ "burr\n","```\n","\n","This will open a browser on [http://localhost:7241](http://localhost:7241)\n",@@ -288,7 +288,7 @@"# Calling the application\n","\n","With async streaming, we get back an `AsyncStreamingResultContainer`. This allows us to get partial results streaming in, while also allowing us to get the full result.\n",- "In the following case, we just "+ "In the following case, we just"]},{diff --git a/setup.cfg b/setup.cfgindex 57d5725f..82e5f051 100644--- a/setup.cfg+++ b/setup.cfg@@ -1,4 +1,4 @@-# Copyright 2025 Apache Software Foundation+# Copyright 2026 Apache Software Foundation## Licensed under the Apache License, Version 2.0 (the "License");# you may not use this file except in compliance with the License.diff --git a/telemetry/ui/.eslintignore b/telemetry/ui/.eslintignoreindex 23d9c03c..57014ff7 100644--- a/telemetry/ui/.eslintignore+++ b/telemetry/ui/.eslintignore@@ -1,4 +1,4 @@-# Copyright 2025 Apache Software Foundation+# Copyright 2026 Apache Software Foundation## Licensed under the Apache License, Version 2.0 (the "License");# you may not use this file except in compliance with the License.diff --git a/telemetry/ui/.prettierignore b/telemetry/ui/.prettierignoreindex 8014b78c..86da4dbd 100644--- a/telemetry/ui/.prettierignore+++ b/telemetry/ui/.prettierignore@@ -1,4 +1,4 @@-# Copyright 2025 Apache Software Foundation+# Copyright 2026 Apache Software Foundation## Licensed under the Apache License, Version 2.0 (the "License");# you may not use this file except in compliance with the License.diff --git a/telemetry/ui/public/robots.txt b/telemetry/ui/public/robots.txtindex 941863d9..d6fb2767 100644--- a/telemetry/ui/public/robots.txt+++ b/telemetry/ui/public/robots.txt@@ -1,4 +1,4 @@-# Copyright 2025 Apache Software Foundation+# Copyright 2026 Apache Software Foundation## Licensed under the Apache License, Version 2.0 (the "License");# you may not use this file except in compliance with the License.