Skip to content

feat: add orchestrator_get_example#10

Merged
elai-shalev merged 1 commit intorhdhorchestrator:masterfrom
eloycoto:examples
Aug 25, 2025
Merged

feat: add orchestrator_get_example#10
elai-shalev merged 1 commit intorhdhorchestrator:masterfrom
eloycoto:examples

Conversation

@eloycoto
Copy link
Collaborator

This commit add a way to get an example when the LLM needs to call it.

This commit add a way to get an example when the LLM needs to call it.

Signed-off-by: Eloy Coto <eloy.coto@acalustra.com>
Comment on lines +16 to +29
def load(cls, category: str):
input_file = EXAMPLES_DIR / f"{category}_input.txt"
output_file = EXAMPLES_DIR / f"{category}_output.txt"

input_text = ""
output_text = ""

try:
input_text = input_file.read_text(encoding="utf-8").strip()
output_text = output_file.read_text(encoding="utf-8").strip()
except FileNotFoundError as e:
logger.warning(f"Example workflow file not found: {e}")

return cls(category, input_text, output_text)
Copy link
Collaborator

Choose a reason for hiding this comment

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

what is CLS? if it's local, maybe change cls to clearer name
if not, please give a comment/hint on what that call does

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@elai-shalev elai-shalev merged commit 33b58e5 into rhdhorchestrator:master Aug 25, 2025
1 check passed
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