Skip to content

Deterministic empty instruction #231

@issac2508

Description

@issac2508

Summary

Prevent calling agent with an empty instruction

Motivation

When a user comments @ h2ogpte only, the agent begins to find tasks for itself and gets confused without any instruction/direction from the user. This is both bad for the user (no value) and also uses tokens when not needed.

Proposed Solution

Reply with a deterministic response when we have an empty instruction - something like "Provide an instruction for the agent to execute."

Alternatives

We should also consider what is an empty instruction. Right now it's simply if we tag the agent with only whitespace - consider if there's only punctuation, for example @ h2ogpte ... or we could consider a minimum instruction length

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions