-
Notifications
You must be signed in to change notification settings - Fork 2
feat(galileo-adk): rebrand to SPLUNK_AO_* env vars and SplunkAO* classes (HYBIM-716) #31
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
Closed
Closed
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,13 +1,13 @@ | ||
| __version__ = "2.0.1" | ||
|
|
||
| from galileo_adk.callback import GalileoADKCallback | ||
| from galileo_adk.decorator import galileo_retriever | ||
| from galileo_adk.callback import SplunkAOADKCallback | ||
| from galileo_adk.decorator import splunk_ao_retriever | ||
| from galileo_adk.observer import get_custom_metadata | ||
| from galileo_adk.plugin import GalileoADKPlugin | ||
| from galileo_adk.plugin import SplunkAOADKPlugin | ||
|
|
||
| __all__ = [ | ||
| "GalileoADKPlugin", | ||
| "GalileoADKCallback", | ||
| "galileo_retriever", | ||
| "SplunkAOADKPlugin", | ||
| "SplunkAOADKCallback", | ||
| "splunk_ao_retriever", | ||
| "get_custom_metadata", | ||
| ] | ||
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,25 +1,25 @@ | ||
| """Decorators for marking ADK tools with Galileo observability metadata.""" | ||
| """Decorators for marking ADK tools with Splunk AO observability metadata.""" | ||
|
|
||
| from __future__ import annotations | ||
|
|
||
| from collections.abc import Callable | ||
| from typing import Any | ||
|
|
||
|
|
||
| def galileo_retriever(func: Callable[..., Any]) -> Callable[..., Any]: | ||
| """Mark a function as a retriever for Galileo observability. | ||
| def splunk_ao_retriever(func: Callable[..., Any]) -> Callable[..., Any]: | ||
| """Mark a function as a retriever for Splunk AO observability. | ||
|
|
||
| When a function decorated with @galileo_retriever is wrapped in a | ||
| FunctionTool, Galileo will log it as a retriever span (node_type="retriever") | ||
| When a function decorated with @splunk_ao_retriever is wrapped in a | ||
| FunctionTool, Splunk AO will log it as a retriever span (node_type="retriever") | ||
| instead of a tool span, enabling RAG quality metrics. | ||
|
|
||
| Example | ||
| ------- | ||
| >>> from galileo_adk import galileo_retriever | ||
| >>> @galileo_retriever | ||
| >>> from galileo_adk import splunk_ao_retriever | ||
| >>> @splunk_ao_retriever | ||
| ... def my_search(query: str) -> str: | ||
| ... return search_docs(query) | ||
| >>> tool = FunctionTool(my_search) | ||
| """ | ||
| func._galileo_is_retriever = True # type: ignore[attr-defined] | ||
| func._splunk_ao_is_retriever = True # type: ignore[attr-defined] | ||
| return func |
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
update directory to from
galileo-adktosplunk-ao-adkThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done — PyPI package renamed to
splunk-ao-adkinpyproject.toml. The Python import module name (galileo_adk) is kept as-is for now to avoid breaking downstream consumers; a follow-up rename of the source directory (galileo_adk/→splunk_ao_adk/) can be tracked separately if desired.