test: Add agent integration test infrastructure#199
Open
fede-kamel wants to merge 7 commits intooracle:mainfrom
Open
test: Add agent integration test infrastructure#199fede-kamel wants to merge 7 commits intooracle:mainfrom
fede-kamel wants to merge 7 commits intooracle:mainfrom
Conversation
4 tasks
e7d2cc5 to
9fdb69f
Compare
14408ec to
fcc7d9f
Compare
e51b743 to
ded996d
Compare
12 tasks
Adds the datastore tool factory and selector to langchain-oci:
- create_datastore_tools() factory (datastores/tools/factory.py)
- StoreSelector for routing across multiple stores (datastores/tools/selector.py)
- get_document and stats tools (datastores/tools/{get_document,stats}.py)
- Top-level langchain_oci exports for datastores
- Compile-test scaffold (tests/integration_tests/test_compile.py)
Builds on the tool framework from PR oracle#194.
…pile test The compile-import smoke test imported `create_deep_research_agent` alongside the datastore symbols added in this PR, but that symbol is introduced in a later PR in the stack (oracle#197 — feat: Add deep research agent). Until that PR lands the import fails with `ImportError: cannot import name 'create_deep_research_agent'`, which makes the integration suite red on this branch alone. Drop the forward reference here. The deep-research import will be added back to this test in oracle#197 once the symbol exists.
Mirrors the description rename from PR oracle#194 across the factory layer: - Add store_list field back to DatastoreTool (used by stats/get_document for fallback messaging). - StatsTool / GetDocumentTool now declare description as a field default instead of base_description: ClassVar. - Factory build_description() reads each tool's description field default via model_fields["description"].default rather than a custom class attribute.
Adds comprehensive unit tests covering: - VectorDataStore base class behavior - ADB and OpenSearch adapter wiring - Datastore tool factory (search, keyword_search, get_document, stats) - StoreSelector routing logic
Adds a deep research agent built on the deepagents library, integrating the datastore framework from PRs oracle#192-oracle#196. - create_deep_research_agent() entrypoint (agents/deep_research/agent.py) - DeepResearchConfig for runtime configuration - Lazy imports in top-level langchain_oci and agents packages Requires the deep-research optional dependency group: pip install langchain-oci[deep-research]
Adds unit tests covering deep research agent construction, tool wiring, and configuration validation.
Adds shared conftest and base agent integration test scaffolding.
ded996d to
29250ab
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Dependency
PR 9/13 of the deep research agent stack. Depends on PR 7.
Test plan
Stacked PR — merge in order after predecessors.