Skip to content

Conversation

@andrewjschuang
Copy link
Contributor

@andrewjschuang andrewjschuang commented Aug 29, 2023

WHAT

🤖 Generated by Copilot at 2954825

This pull request improves the code generation logic and the quality of the generated code for Pipedream components. It refactors and simplifies some configuration and helper files, and adds new templates and variables for the language model prompts and system instructions. It also fixes a typo in the README file and passes the authentication code example to the language model.

🤖 Generated by Copilot at 2954825

We're coding up a storm, me hearties, with templates and prompts
We're fixing typos, refactoring, and adding some new docs
We're passing auth to the language model, to make it generate right
We're heaving on the ropes, me lads and lasses, on the count of three, heave-ho!

WHY

HOW

🤖 Generated by Copilot at 2954825

  • Refactor generate_code function to improve readability and performance (link, link, link, link, link)
  • Refactor get_env_var function and config object to simplify configuration and avoid hardcoding (link, link)
  • Add auth_example parameter to PipedreamOpenAPIAgent class and call_langchain function to pass authentication code example to language model (link, link, link)
  • Add new files to templates/actions module to provide text for introduction, examples, and additional rules for generating action components (link, link, link, link, link)
  • Add new files to templates/apps module to provide text for introduction, examples, auth, methods, and prop definitions for generating app code (link, link, link, link, link, link)
  • Add new files to templates/common module to provide text for common explanations and instructions for generating component code (link, link, link, link, link)
  • Fix typo in README file (link)

@vercel
Copy link

vercel bot commented Aug 29, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
pipedream-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 30, 2023 8:12pm
pipedream-docs-redirect-do-not-edit ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 30, 2023 8:12pm

@andrewjschuang andrewjschuang merged commit 355352a into ai-components/pr-review Aug 30, 2023
@andrewjschuang andrewjschuang deleted the ai-components/templates-restructure branch August 30, 2023 20:14
andrewjschuang added a commit that referenced this pull request Aug 30, 2023
* add generate webhook sample

* add generate webhook source

* modify logic for main

* add tests

* add component metadata rules (sources)

* add component metadata rules (actions)

* make only one request to create actions

* make gpt model a config

* try and go to next if failed

* add component metadata to examples

* modify source key/name to past tense

* remove generate webhook sample

* add webhook signature validation

* add webhook activate and deactivate hooks

* add brex test webhook source

* redirect all test output to file

* add deploy hook

* fix typo

* add env example

* change order in readme

* change main function name

* add code example with auth to templates

* change instructions for running

* disable docs by default

* add tests to readme

* add tests for actions

* read instructions file outside of main

* change tests to python

* return copy of template instead of overwriting

* use only one script for running tests

* change component_type arg to type

* add $summary export

* add azure openai option and adjust configs

* add polling source template

* add tests for polling components

* alphabetical reorder tests

* add apps template

* Testing Stable Diffusion image to text

* Adding pnpm.lock

* pnpm.lock

* Multi agent debate (#7787)

* Support for multi-agent debate

* pnpm.lock

* Improving readme, updating tool-versions

* Update generate_component_code.py

* Templates restructure (#7816)

* requested changes

* templates organization

* add auth authentication example

* modify config default values

* add newlines

* fix case when there is no code scaffolding

* separate common rules and additional rules

---------

Co-authored-by: Dylan J. Sather <dylan.sather@gmail.com>
Co-authored-by: Danny Roosevelt <danny@pipedream.com>
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.

2 participants