Skip to content

Exclude an instruction from history #3273

@Amoki

Description

@Amoki

Question

We want to provide some real time context to an agent. We currently use an @instructions to provide the context to the agent. The next message, the context may have changed but the agent seems to still remember the previous instructions from the message_history so its response is out of date.

Is there a way to exclude this specific instructions (or system_prompt) from being stored in the history?

Thanks for this amazing lib.

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    StalequestionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions