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

feat: unify component interface #144

Merged
merged 9 commits into from
May 31, 2024
Merged

feat: unify component interface #144

merged 9 commits into from
May 31, 2024

Conversation

donch1989
Copy link
Member

@donch1989 donch1989 commented May 30, 2024

Because

  • We decided to remove the connector and operator categorization and organize the components into AI, data, application, and operator components. The original IConnector and IOperator interfaces are no longer needed.
  • We had a connection field for the connectors to set up the connection. To make this term more general, we renamed it to setup. The setup field should be applicable to all kinds of components. For example, for a CPU-bound operator, we might need to configure some hardware resources in the future. This configuration can also be placed in the setup field. Additionally, to improve the readability of the JSON file, we moved the configuration into a new setup.json file.
  • We are going to recategorize googlesearch, redis, restapi, and website into the "application" component.

This commit

  • Removes the base connector and operator interfaces and structs. Moves all functions to the base component struct.
  • Moves all connection properties into a new setup.json file.
  • Bumps the component version of googlesearch, redis, restapi, and website to make the component type updated.
  • Moves the component.go file into a new package /store.

Copy link

linear bot commented May 30, 2024

@donch1989 donch1989 merged commit ad35e10 into main May 31, 2024
9 checks passed
@donch1989 donch1989 deleted the huitang/ins-4680 branch May 31, 2024 03:46
donch1989 pushed a commit that referenced this pull request Jun 6, 2024
🤖 I have created a release *beep* *boop*
---


##
[0.19.0-beta](v0.18.0-beta...v0.19.0-beta)
(2024-06-05)


### Features

* add pdf component
([#138](#138))
([517afcf](517afcf))
* add task chunk text
([#139](#139))
([7b36553](7b36553))
* **instill:** adopt latest Model endpoints
([#146](#146))
([7f2537b](7f2537b))
* optimise ux for slack component
([#143](#143))
([ed60235](ed60235))
* refactor package structure
([#140](#140))
([4853d4c](4853d4c))
* support markdown to text function in text operator
([#149](#149))
([dcbae37](dcbae37))
* unify component interface
([#144](#144))
([ad35e10](ad35e10))


### Bug Fixes

* bug of failure of document component
([#152](#152))
([aed51f8](aed51f8))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
namwoam pushed a commit to namwoam/component that referenced this pull request Jun 24, 2024
Because

- We decided to remove the connector and operator categorization and
organize the components into AI, data, application, and operator
components. The original `IConnector` and `IOperator` interfaces are no
longer needed.
- We had a `connection` field for the connectors to set up the
connection. To make this term more general, we renamed it to `setup`.
The `setup` field should be applicable to all kinds of components. For
example, for a CPU-bound operator, we might need to configure some
hardware resources in the future. This configuration can also be placed
in the `setup` field. Additionally, to improve the readability of the
JSON file, we moved the configuration into a new `setup.json` file.
- We are going to recategorize `googlesearch`, `redis`, `restapi`, and
`website` into the "application" component.

This commit

- Removes the base connector and operator interfaces and structs. Moves
all functions to the base component struct.
- Moves all `connection` properties into a new `setup.json` file.
- Bumps the component version of `googlesearch`, `redis`, `restapi`, and
`website` to make the component type updated.
- Moves the `component.go` file into a new package `/store`.
namwoam pushed a commit to namwoam/component that referenced this pull request Jun 24, 2024
🤖 I have created a release *beep* *boop*
---


##
[0.19.0-beta](instill-ai/component@v0.18.0-beta...v0.19.0-beta)
(2024-06-05)


### Features

* add pdf component
([instill-ai#138](instill-ai#138))
([517afcf](instill-ai@517afcf))
* add task chunk text
([instill-ai#139](instill-ai#139))
([7b36553](instill-ai@7b36553))
* **instill:** adopt latest Model endpoints
([instill-ai#146](instill-ai#146))
([7f2537b](instill-ai@7f2537b))
* optimise ux for slack component
([instill-ai#143](instill-ai#143))
([ed60235](instill-ai@ed60235))
* refactor package structure
([instill-ai#140](instill-ai#140))
([4853d4c](instill-ai@4853d4c))
* support markdown to text function in text operator
([instill-ai#149](instill-ai#149))
([dcbae37](instill-ai@dcbae37))
* unify component interface
([instill-ai#144](instill-ai#144))
([ad35e10](instill-ai@ad35e10))


### Bug Fixes

* bug of failure of document component
([instill-ai#152](instill-ai#152))
([aed51f8](instill-ai@aed51f8))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: 👋 Done
2 participants