Skip to content

feat: add engine methods#256

Merged
averikitsch merged 8 commits intogoogleapis:langgraph-basefrom
carloszuag:feat_engine_methods
Feb 12, 2025
Merged

feat: add engine methods#256
averikitsch merged 8 commits intogoogleapis:langgraph-basefrom
carloszuag:feat_engine_methods

Conversation

@carloszuag
Copy link

Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:

  • Make sure to open an issue as a bug/issue before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea
  • Ensure the tests and linter pass
  • Code coverage does not decrease (if any source code was changed)
  • Appropriate docs were updated (if necessary)

Fixes #<issue_number_goes_here> 🦕

@carloszuag carloszuag requested review from a team as code owners January 24, 2025 16:49
@google-cla
Copy link

google-cla bot commented Jan 24, 2025

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@product-auto-label product-auto-label bot added the api: cloudsql-postgres Issues related to the googleapis/langchain-google-cloud-sql-pg-python API. label Jan 24, 2025
@carloszuag carloszuag closed this Jan 24, 2025
@averikitsch averikitsch reopened this Jan 28, 2025
@averikitsch averikitsch changed the base branch from main to langgraph-base January 28, 2025 19:20
)
)

async def _ainit_checkpoint_table(
Copy link
Collaborator

Choose a reason for hiding this comment

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

From work with Fernando, we should support a custom table name so testing is easier, but keep it defaulting to the table names.

Copy link
Author

Choose a reason for hiding this comment

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

Hello @averikitsch, I changed the method, please let me know if the changes work for you.

@averikitsch
Copy link
Collaborator

/gcbrun

@carloszuag carloszuag changed the title Feat engine methods feat: add engine methods Feb 5, 2025
Comment on lines 756 to 757
checkpoints_table_name: str = CHECKPOINTS_TABLE,
checkpoint_writes_table_name: str = CHECKPOINT_WRITES_TABLE,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can we simplify this to

Suggested change
checkpoints_table_name: str = CHECKPOINTS_TABLE,
checkpoint_writes_table_name: str = CHECKPOINT_WRITES_TABLE,
table_name: str = CHECKPOINTS_TABLE,
writes_table_name: str = CHECKPOINT_WRITES_TABLE,

@averikitsch
Copy link
Collaborator

/gcbrun

assert engine
await aexecute(engine, "SELECT 1")
await engine.close()
await engine._connector.close()
Copy link
Collaborator

Choose a reason for hiding this comment

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

Remove the close here. We will close the connector above.

@averikitsch
Copy link
Collaborator

/gcbrun

@averikitsch
Copy link
Collaborator

/gcbrun

@averikitsch
Copy link
Collaborator

/gcbrun

@averikitsch averikitsch merged commit 8d5c50b into googleapis:langgraph-base Feb 12, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: cloudsql-postgres Issues related to the googleapis/langchain-google-cloud-sql-pg-python API.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Comments