#6332 Add Connector plugin
Pull request opened by
Future-Outlier
## Tracking issue
NA
## Why are the changes needed?
Given that the LLM agent and the flyte agent have a name collision, we are going to rename the flyte agent to flyte connectors.
## What changes were proposed in this pull request?
Add a new connector plugin, similar to the agent plugin, but using the connector proto.
## How was this patch tested?
from flytekit import workflow, Secret
from flytekit.sensor.file_sensor import FileSensor
from flytekitplugins.openai import ChatGPTTask
sensor = FileSensor(name="test_sensor1", disable_deck=True)
chatgpt_big_job = ChatGPTTask(
name="3.5-turbo",
secret_requests=[Secret(key="chatgpt")],
chatgpt_config={
"model": "gpt-4o",
"temperature": 0.7,
},
)
@workflow
def wf():
sensor("/tmp")
chatgpt_big_job(message="What is the meaning of life?")
[Screenshot 2025-03-14 at 2 13 19 PM](https://private-user-images.githubusercontent.com/37936015/422962584-57706dc8-0042-4f7f-a4f9-75f150b4f30f.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NDIzMTk2NjgsIm5iZiI6MTc0MjMxOTM2OCwicGF0aCI6Ii8zNzkzNjAxNS80MjI5NjI1ODQtNTc3MDZkYzgtMDA0Mi00ZjdmLWE0ZjktNzVmMTUwYjRmMzBmLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAzMTglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMzE4VDE3MzYwOFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWQ2ZjM4MTg5Mzg2MTY3ZDFhNjQ1MDEwYjM2YmYzYmZjYzJiNjNjOGU2NDhjYTU2NWY2ODQ0NDkxZDE2ZjFlYTQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.1Lcaha9NVVhROnoy_nXCZNcjWYTbdFOn4vUe9CAce8g)
### Labels
Please add one or more of the following labels to categorize your PR:
•
added: For new features.
•
changed: For changes in existing functionality.
•
deprecated: For soon-to-be-removed features.
•
removed: For features being removed.
•
fixed: For any bug fixed.
•
security: In case of vulnerabilities
This is important to improve the readability of release notes.
### Setup process
### Screenshots
## Check all the applicable boxes
• I updated the documentation accordingly.
• All new and existing tests passed.
• All commits are signed-off.
## Related PRs
NA
## Docs link
NA
### Summary by Bito
This pull request introduces a new connector plugin to resolve naming conflicts between LLM agent and flyte agent. It implements support for both synchronous and asynchronous task execution with updated gRPC calls, removes deprecated code, and enhances modularity by separating connector concerns from the original agent implementation.
Unit tests added: True
Estimated effort to review (1-5, lower is better): 5
flyteorg/flyte