Skip to content
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

[feature] need something like "not exists" keyword in the language #2

Open
lbeurerkellner opened this issue Jun 11, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@lbeurerkellner
Copy link
Contributor

lbeurerkellner commented Jun 11, 2024

We should create a functionality to raise an error if there has been no call to tool A before calling tool B in the trace.
The typical use-case would be to raise an error if tool "ask for human input" has not been called before calling a tool that performs a sensitive action.

raise error if:
    (not exists call2: ToolCall) -> (call: ToolCall)
    call2 is tool:human
    call is tool:sensitive_action
@lbeurerkellner lbeurerkellner added the enhancement New feature or request label Jun 11, 2024
@mbalunovic
Copy link
Contributor

Not exists keyword

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants