Skip to content

Human in the loop #109

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

Open
taham655 opened this issue Mar 12, 2025 · 3 comments
Open

Human in the loop #109

taham655 opened this issue Mar 12, 2025 · 3 comments
Labels
question Question about using the SDK stale

Comments

@taham655
Copy link

Is there any implementation guide for adding human in the loop workflows especially in prod

@taham655 taham655 added the question Question about using the SDK label Mar 12, 2025
@rm-openai
Copy link
Collaborator

We don't have anything just yet. This is something I plan to look into but not sure when I might get to it!

@huntersgordon
Copy link

@taham655 For now, I was able to pass in a @function_tool into my agent, get_clarification_from_user

@function_tool
def get_clarification_from_user(text: str) -> str:
    """
    Ask the user for clarification based on the provided question.

    Args:
        text (str): The clarification question to ask the user.

    Returns:
        str: The clarification response from the user.
    """
    print(f"\n📝 The agent is asking for clarification:\n{text}\n")
    clarification = input("Your clarification: ")
    return clarification

This instructed my agent to loop me in once it reaches an impasse.

Copy link

This issue is stale because it has been open for 7 days with no activity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Question about using the SDK stale
Projects
None yet
Development

No branches or pull requests

3 participants