Comments (2)
Adding to this -
I have a use case where I may which to pass optional parameters to a prompt generation node. The prompt generated would depend on which parameters are available. The workaround I'm using is to create a dictionary within the state variables called relevant_vars
Simple example below:
@action(read=["relevant_vars", "task", "prompt"], writes=["plan_prompt"])
def create_plan_prompt(state: State) -> Tuple[dict, State]:
if state["task"] == "Clear the table":
plan_prompt = f"""Create a plan for a robot to remove the following objects from the table:
{state["relevant_vars"]["objects_on_table"]}
Do not add any extra steps.
"""
else:
plan_prompt = "Unknown task"
result = {"plan_prompt": plan_prompt}
return result, state.update(**result)
```
from burr.
This has been implemented, and will be released shortly! See #179
from burr.
Related Issues (20)
- Expand/contract all in UI state/result view HOT 1
- UI Perf improvement: don't try to render list[float] as individual fields HOT 1
- Streaming errors in sequence ID HOT 1
- Improve persistence + debugging workflow HOT 5
- Wire through "parent app ID" when forking an application's state HOT 1
- Style visualization better
- Auto-viz application in jupyter notebook
- Pre/Post application interface calls
- OpenTelemetry (or opentracing) integration
- Add ability to inject global inputs `__foo` variables
- Langfuse integration
- Langsmith integration
- MongoDB integration HOT 2
- Dark mode in the UI
- Delete `App Runs` button in the project section
- Improve views of missing partition key
- Add `delta` view for state
- Burr -- Google Sheets Persister
- Disable sequence ID filter default in app list
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from burr.