Skip to content

Feat/1069 prompt support#119

Merged
jfuss merged 4 commits intokitops-ml:mainfrom
Rishabh-git10:feat/1069-prompt-support
Feb 25, 2026
Merged

Feat/1069 prompt support#119
jfuss merged 4 commits intokitops-ml:mainfrom
Rishabh-git10:feat/1069-prompt-support

Conversation

@Rishabh-git10
Copy link
Copy Markdown
Contributor

Resolves kitops-ml/kitops#1069

Description

This PR adds support for the prompts layer within the Pykitops SDK to achieve parity with the core CLI updates (kitops-ml/kitops#948).

Changes Made:

  • Added PromptEntry to _pydantic_kit.py to validate prompt paths and descriptions.
  • Added prompts getter/setter properties to PydanticKitfile.
  • Updated Kitfile wrapper docstrings and examples.
  • Updated tests/fixtures/Kitfile_full to include a mock prompts block to ensure pytest catches serialization/deserialization.

All tests are passing locally.

Signed-off-by: Rishabh Dewangan <107680241+Rishabh-git10@users.noreply.github.com>
Signed-off-by: Rishabh Dewangan <107680241+Rishabh-git10@users.noreply.github.com>
Signed-off-by: Rishabh Dewangan <107680241+Rishabh-git10@users.noreply.github.com>
@jfuss
Copy link
Copy Markdown
Collaborator

jfuss commented Feb 23, 2026

@Rishabh-git10 Thanks for taking this up!

Overall this looks fine to me but could you add some validation to https://github.com/kitops-ml/pykitops/blob/main/tests/test_kitfile_output.py#L9 and https://github.com/kitops-ml/pykitops/blob/main/tests/test_kitfile_output.py#L63. You can follow what we have already.

I don't see any issues this would cause but more to ensure we don't run into something in the future.

Signed-off-by: Rishabh Dewangan <107680241+Rishabh-git10@users.noreply.github.com>
@Rishabh-git10
Copy link
Copy Markdown
Contributor Author

Done! Added explicit assertions for the prompts block in test_kitfile_output.py.

@jfuss jfuss merged commit d83c24c into kitops-ml:main Feb 25, 2026
4 checks passed
@jfuss
Copy link
Copy Markdown
Collaborator

jfuss commented Feb 25, 2026

@Rishabh-git10 Thanks for the contribution and time you put into this! I am planning to have this deployed by end of week.

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.

Add Prompt support into Pykitops

2 participants