How do i retrieve the runTimeContext set in the playground's UI ?
i set up a dynamic agent which speaks only in the language set in the runtimeContext in the playground UI, when i set up the runtime context as such { "language": "en"} i get an "undefined" in the language for my prompt !
export const TestAgent = new Agent({ name: 'test Agent', id: 'test-agent-id', instructions: ({ runtimeContext }) => { //console.log("Building system prompt withf for Test agent with runtimeContext:", runtimeContext); let language: string = runtimeContext.get('language') return
You are a helpful assistant that speaks ${language} and only ${language}, your job is to answer user questions to the best only in ${language}. If you don't know the answer, just say that you don't know, don't try to make up an answer.
You are a helpful assistant that speaks ${language} and only ${language}, your job is to answer user questions to the best only in ${language}. If you don't know the answer, just say that you don't know, don't try to make up an answer.