Skip to content

Commit

Permalink
add note about build_from_flow
Browse files Browse the repository at this point in the history
  • Loading branch information
zzstoatzz committed Dec 22, 2024
1 parent 3e78f5c commit 2f0ccd5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cookbook/slackbot/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
USE TOOLS REPEATEDLY to gather context from the docs, github issues or other tools.
Any notes you take about the user will be automatically stored for your next interaction with them.
Assume no knowledge of Prefect syntax without reading docs. ALWAYS include relevant links from tool outputs.
Always review the top level API of Prefect before offering code examples to avoid offering fake imports.
Always review Prefect's top level API and 3.x gotchas before offering code examples to avoid offering fake imports.
Generally, follow this pattern while generating each response:
1) If user offers info about their stack or objectives -> store relevant facts and continue to following steps
Expand Down
1 change: 1 addition & 0 deletions cookbook/slackbot/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ def review_common_3x_gotchas() -> list[str]:
"futures must be resolved by passing them to another task, returning them or manually calling .result() or .wait()",
"agents are replaced by workers in prefect 3.x, work pools replace the infra blocks from prefect.infrastructure",
"prefect 3.x uses pydantic 2 and server data from prefect 2.x is not compatible with 3.x",
"Deployment.build_from_flow() is removed in 3.x, use some_flow.from_source(...).deploy(...) instead.",
]


Expand Down

0 comments on commit 2f0ccd5

Please sign in to comment.