Skip to content

Commit

Permalink
register python resource to resource pkl
Browse files Browse the repository at this point in the history
  • Loading branch information
jjuliano committed Nov 27, 2024
1 parent 77fdf1a commit c13adfa
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion deps/pkl/Resource.pkl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
/// including actions that can be performed on these resources, validation checks,
/// and error handling mechanisms. Each resource can define its ID, name, description,
/// category, dependencies, and how it runs.
@ModuleInfo { minPklVersion = "0.26.1" }
@ModuleInfo { minPklVersion = "0.26.3" }

@go.Package { name = "github.com/kdeps/schema/gen/resource" }

Expand All @@ -17,6 +17,7 @@ import "APIServer.pkl"
import "APIServerResponse.pkl"
import "LLM.pkl"
import "Exec.pkl"
import "Python.pkl"
import "Http.pkl"

/// Regex pattern for validating resource IDs and dependencies.
Expand Down Expand Up @@ -59,6 +60,9 @@ class ResourceAction {
/// Configuration for executing commands.
exec: Exec.ResourceExec?

/// Configuration for python scripts.
python: Python.ResourcePython?

/// Configuration for chat interactions with an LLM.
chat: LLM.ResourceChat?

Expand Down
2 changes: 1 addition & 1 deletion gen/python/init.pkl.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions gen/resource/ResourceAction.pkl.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c13adfa

Please sign in to comment.