Skip to content
Discussion options

You must be logged in to vote

Hi @samDobsonDev ! Thanks for your question and sorry for our delay in the answer!

Currently there's no direct way to get the prompt from inside the tool call, but you can workaround this using Persistency feature (see https://docs.koog.ai/agent-persistency/ ) like this:

  1. Implement the ToolSet class so that it would hold the PersistencyStorageProvider (from the Persistency feature) that contains the latest saved full message history of your agent, and define all your tools inside.
    For example, your sendEmail tool could be similar to this:
class MyTools(private val agentState: PersistencyStorageProvider) : ToolSet {
        @Tool
        fun sendEmail(emailText: String, userId: String): S…

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by Ololoshechkin
Comment options

You must be logged in to vote
1 reply
@Ololoshechkin
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants