Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Component.type field should support string (for builtin types) or reference to an Instance Component for user defined types #408

Open
andyk opened this issue Jun 20, 2022 · 1 comment

Comments

@andyk
Copy link
Contributor

andyk commented Jun 20, 2022

In this world, providing a string as a type will match that string against the components in PCS. E.g,, using type: LocalRepo would be equivalent to using spec:LocalRepo as in the following:

specs:
    LocalRepo:
        type: Instance
        instance_of:
            type: Class
            name: LocalRepo
            module:
               type:
               path: ./pcs/local_repo.py
               version: v0.3.0 # most recent release of PCS
               repo:
                 type: GitHubRepo
                 url: https://github.com/agentos-project/agentos

    my_local_repo:
        type: spec:LocalRepo
        path: .

    my_file:
        type: spec:File
        relative_path: ./foo/bar.txt
        repo: spec:local_repo
@andyk
Copy link
Contributor Author

andyk commented Jun 20, 2022

@nickjalbert I made this after our discussion today!

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

No branches or pull requests

1 participant