add confidence_float to actions table (#1008)

This commit is contained in:
Shuchang Zheng
2024-10-20 12:10:58 -07:00
committed by GitHub
parent b7611813cc
commit b31b77707c
3 changed files with 33 additions and 0 deletions

View File

@@ -1613,6 +1613,7 @@ class AgentDB:
skyvern_element_hash=action.skyvern_element_hash,
skyvern_element_data=action.skyvern_element_data,
action_json=action.model_dump(),
confidence_float=action.confidence_float,
)
session.add(new_action)
await session.commit()

View File

@@ -461,6 +461,7 @@ class ActionModel(Base):
skyvern_element_hash = Column(String, nullable=True)
skyvern_element_data = Column(JSON, nullable=True)
action_json = Column(JSON, nullable=True)
confidence_float = Column(Numeric, nullable=True)
created_at = Column(DateTime, default=datetime.datetime.utcnow, nullable=False)
modified_at = Column(DateTime, default=datetime.datetime.utcnow, onupdate=datetime.datetime.utcnow, nullable=False)