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: when getting style guidelines should always add all of them to context #438

Closed
o-on-x opened this issue Nov 20, 2024 · 2 comments
Closed
Labels
enhancement New feature or request no-issue-activity

Comments

@o-on-x
Copy link
Contributor

o-on-x commented Nov 20, 2024

when adding postDirections on chatDirections
should grab all of the guidelines to follow
this is so it does not ignore requests that are extremely important to follow for how the character behaves
really instead of random for the character file the agent should be able to select what it puts into its context as part of the shouldRespond logic or some other way

in runtime.ts

            postDirections:
                this.character?.style?.all?.length > 0 ||
                this.character?.style?.post.length > 0
                    ? addHeader(
                            "# Post Directions for " + this.character.name,
                            (() => {
                                const all = this.character?.style?.all || [];
                                const post = this.character?.style?.post || [];
                                const shuffled = [...all, ...post].sort(
                                    () => 0.5 - Math.random()
                                );
                                return shuffled
                                    .slice(0, conversationLength / 2)
                                    .join("\n");
                            })()
                        )
                    : "",*
            postDirections:
                this.character?.style?.all?.length > 0 ||
                this.character?.style?.post.length > 0
                    ? addHeader(
                        "# Post Directions for " + this.character.name,
                        (() => {
                            const all = this.character?.style?.all || [];
                            const post = this.character?.style?.post || [];
                            return [...all, ...post].join("\n");
                        })()
                    )
                    : "",

@o-on-x o-on-x added the enhancement New feature or request label Nov 20, 2024
@odilitime
Copy link
Collaborator

odilitime commented Nov 20, 2024

how about 2 rules settings: "always respect", "maybe respect" ? just off load it to the character designer. We should also have platform (discord, x/twitter, telegram, etc) specific rules since hashtag can be specific to x/twitter. And then maybe a matrix of the two: always_discord, maybe_discord?

we can instruct people to keep the always to be very small and light as it affects all contexts

we could also do a follow up prompt asking if the output followed the rules

Copy link
Contributor

This issue has been automatically marked as stale due to inactivity.

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

No branches or pull requests

3 participants
@odilitime @o-on-x and others