Skip to content

Update Flyte 2 skills to match current v2 docs - #49

Merged
cosmicbboy merged 1 commit into
mainfrom
docs-v2-skill-updates
Oct 23, 2026
Merged

cosmicbboy merged 1 commit into
mainfrom
docs-v2-skill-updates

Conversation

@cosmicbboy

Copy link
Copy Markdown
Collaborator

What

Refresh the Flyte 2 SDK skills against the current union.ai v2 docs (llms-full.txt, ~698 pages) so the guidance agents get tracks the documented API instead of stale/obsolete patterns.

Changes

Skill Update
flyte-sdk-types Replace the obsolete File(path=...)/DataFrame(...)/.to_polars() patterns with the documented offloaded-type API: File/Dir sync+async methods (from_local/from_local_sync, new_remote, from_existing_remote, open/open_sync, download, exists, walk, list_files, get_file); native DataFrame auto-serialization across pandas/pyarrow/dask/polars + flyte.io.DataFrame (from_df, Annotated format hints, open(...).all()); the flyteplugins-polars / -lance / -jsonl plugins; the Flyte 2 type-transformer protocol (get_literal_type / async to_literal / async to_python_value / guess_python_type + flyte.plugins.types entry points); and content-based caching via flyte.io.HashFunction.
flyte-sdk-run Replace the outdated --rerun-from / run_context(run_name=...) flow with flyte rerun / flyte.rerun(); add the recover a failed run story (--recover, --action-name, --force-rerun-action, RECOVERED phase, caching-vs-recovery).
flyte-sdk-app Add the Ollama (generic AppEnvironment + entrypoint) and native FlyteWebhookAppEnvironment patterns, update the app-type table.
flyte-sdk-data / -eval / -ml / -author Migrate example code off the raw File(path=...) / DataFrame(...) / .to_polars() constructors to the documented from_local / from_existing_remote / from_df / open(...).all() equivalents; correct the JSONL plugin import (flyteplugins.jsonl).

Verification

  • python packaging/verify.py → all checks passed (skill frontmatter, packaging, CLI install/uninstall for all 23 skills).
  • Reviewed each diff for consistency (async/sync, imports, markdown structure).

Note: I relied on the offline llms-full.txt snapshot of the docs for grounding rather than fetching each page live.

Refresh the Flyte 2 SDK skills against the current union.ai/docs v2
(llms-full.txt) so agent guidance tracks the documented API:

- flyte-sdk-types: offloaded File/Dir sync+async API (from_local/new_remote/
  from_existing_remote/open/download/exists/walk), native DataFrame
  auto-serialization across pandas/pyarrow/dask/polars plus flyte.io.DataFrame
  (from_df, Annotated format hints, open(...).all()), the flyteplugins-polars /
  -lance / -jsonl plugins, the Flyte 2 type-transformer protocol
  (get_literal_type/async to_literal/to_python_value/guess_python_type + entry
  points), and content-based caching via flyte.io.HashFunction; drop obsolete
  File(path=...) / DataFrame(...) / to_polars() patterns.
- flyte-sdk-run: replace the outdated --rerun-from flow with  /
  flyte.rerun(), and add the recover-a-failed-run story (--recover, action-name,
  force-rerun-action, RECOVERED phase, caching-vs-recovery).
- flyte-sdk-app: add the Ollama (generic AppEnvironment) and native
  FlyteWebhookAppEnvironment patterns.
- flyte-sdk-data / -eval / -ml / -author: migrate example code off the raw
  File(path=...) / DataFrame(...) / .to_polars() constructors to the documented
  from_local / from_existing_remote / from_df / open(...).all() equivalents and
  correct the JSONL plugin import.

All packaging/skill-structure checks still pass.
@cosmicbboy
cosmicbboy merged commit 0d6255c into main Oct 23, 2026
7 checks passed
@cosmicbboy cosmicbboy mentioned this pull request Oct 24, 2026
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.

1 participant