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

[python agents] Allow to access resources configured in configuration.yaml #692

Merged
merged 5 commits into from
Nov 6, 2023

Conversation

eolivelli
Copy link
Member

@eolivelli eolivelli commented Nov 6, 2023

Summary:

  • in python agents LangStream is now passing all the "Resources" to the configuration of the agent
  • add support for using database-id in AstraDB datasources

With this change you can declare the access to DataSources/Vector Database and to AI service providers only once in your application, then in Python you can use the values.
This way there is no need to add boilerplate to map the access keys in the pipeline files.

In python now you can access resources and globals:

  • config["resources"]
  • config["globals"]

Copy link
Member

@cbornet cbornet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a comment on the langchain example. Otherwise LGTM.

@eolivelli eolivelli closed this Nov 6, 2023
@eolivelli eolivelli reopened this Nov 6, 2023
@cbornet cbornet merged commit b4b8c49 into main Nov 6, 2023
10 checks passed
@cbornet cbornet deleted the impl/python-resources branch November 6, 2023 23:05
benfrank241 pushed a commit to vectorize-io/langstream that referenced this pull request May 2, 2024
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.

None yet

2 participants