Skip to content

Conversation

@linear
Copy link

linear bot commented Nov 20, 2024

WOR-2239 Dump models by Alias in the Python SDK

We had a an issue where the generated code did not run properly because one of the keys (schema was a reserved pydantic key).

The pydantic solution to the key overlap is the notion of alias so we managed to solve the issue by using the alias instead of the key in the dump (model_dump(by_alias=True)

We should document that issue and dump by alias by default.

WOR-2146 Add a version= to unify running with iteration or env

version=1 -> group.iteration=

version=production -> group.environment =

version should be a string to clarify that production can be passed

e-g in python

workflowai.task(schema_id=1, version="production")
def add_five_to_number_124(task_input: AddFiveToNumber):
   ...

WOR-2188 Update Python SDK to use v1 run endpoint

pierre said in WOR-2168:

guillaume before you close this issue could you please make sure we have issues to:

  • update our SDKs to use /v1 endpoint
  • update the web app to use /v1
  • update our generated code for REST to use /v1
  • transition our customers HeartHand to use /v1
  • deprecate the existing non-v1 route.

needs coordination with anya and larry

@guillaq guillaq merged commit ee29971 into main Nov 21, 2024
5 checks passed
@guillaq guillaq deleted the guillaume/new-run-endpoint branch November 21, 2024 18:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants