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
Updates UI to not show optional inputs
elijahbenizzya5daa3bc0c89
diff --git a/burr/tracking/common/models.py b/burr/tracking/common/models.pyindex b6f37b8d..26c7f27c 100644--- a/burr/tracking/common/models.py+++ b/burr/tracking/common/models.py@@ -42,6 +42,7 @@ class ActionModel(IdentifyingModel):code: strtype: str = "action"inputs: List[str] = pydantic.Field(default_factory=list)+ optional_inputs: List[str] = pydantic.Field(default_factory=list)@staticmethoddef from_action(action: Action) -> "ActionModel":@@ -60,7 +61,8 @@ class ActionModel(IdentifyingModel):reads=list(action.reads),writes=list(action.writes),code=code,- inputs=list(required_inputs | optional_inputs),+ inputs=list(required_inputs),+ optional_inputs=list(optional_inputs),)diff --git a/telemetry/ui/src/components/routes/app/GraphView.tsx b/telemetry/ui/src/components/routes/app/GraphView.tsxindex 388a4e0b..4d963f22 100644--- a/telemetry/ui/src/components/routes/app/GraphView.tsx+++ b/telemetry/ui/src/components/routes/app/GraphView.tsx@@ -255,6 +255,7 @@ const convertApplicationToGraph = (stateMachine: ApplicationModel): [NodeType[],data: { action, label: action.name },position: { x: 0, y: 0 }}));+ // TODO -- consider displaying optional inputsconst allInputNodes = stateMachine.actions.flatMap((action) =>(action.inputs || []).filter(shouldDisplayInput).map((input) => ({id: inputUniqueID(action, input),