Add created_by for script actions (#3303)
This commit is contained in:
@@ -222,6 +222,7 @@ class SkyvernPage:
|
|||||||
text=text,
|
text=text,
|
||||||
option=select_option,
|
option=select_option,
|
||||||
response=response,
|
response=response,
|
||||||
|
created_by="script",
|
||||||
)
|
)
|
||||||
|
|
||||||
created_action = await app.DATABASE.create_action(action)
|
created_action = await app.DATABASE.create_action(action)
|
||||||
|
|||||||
@@ -2476,6 +2476,7 @@ class AgentDB:
|
|||||||
skyvern_element_data=action.skyvern_element_data,
|
skyvern_element_data=action.skyvern_element_data,
|
||||||
action_json=action.model_dump(),
|
action_json=action.model_dump(),
|
||||||
confidence_float=action.confidence_float,
|
confidence_float=action.confidence_float,
|
||||||
|
created_by=action.created_by,
|
||||||
)
|
)
|
||||||
session.add(new_action)
|
session.add(new_action)
|
||||||
await session.commit()
|
await session.commit()
|
||||||
|
|||||||
Reference in New Issue
Block a user