Lionel du Peloux

Results 14 comments of Lionel du Peloux

This is the code that I put on each page (bellow). It seems that when I switch the page, a rerun happens twice. I go first to state "login_token =...

Hi Mstaal, Same here, I tried to make this work for hours now ... I've register an application on Azure portal with : * client_id * client_secret * redirect :...

Ok, I finally find the answer on st's forum : https://discuss.streamlit.io/t/adding-azure-active-directory-sign-in-sign-out-using-msal-python-handling-redirects/37032/9?u=lionpeloux

Hi @mstaal, thanks for getting back to me. Yes it is working now, since I've registered a **SPA** application in AAD according to the forum's thread I've pointed to. However,...

This is the token I got when I'm authenitifcating with the `python-O365` console flow : ```json { "token_type": "Bearer", "scope": [ "profile", "openid", "email", "https://graph.microsoft.com/Calendars.ReadWrite", "https://graph.microsoft.com/Calendars.ReadWrite.Shared", "https://graph.microsoft.com/Contacts.ReadWrite", "https://graph.microsoft.com/Contacts.ReadWrite.Shared", "https://graph.microsoft.com/Mail.ReadWrite", "https://graph.microsoft.com/Mail.ReadWrite.Shared",...

Ok, I finally made it by providing a token with an empty refresh token string : ```python token = { "token_type": login_token["tokenType"], "scope": login_token["scopes"], "access_token": login_token["accessToken"], "refresh_token": "", # requiered...

@reachcreator I am not quite sure to understand your proposal. Are you updating the `SystemPromptPart` at each `step` inside a `run` ? Would you mind adding a more complete example...

Ok thanks but this is not what I am trying to achieve. I already have a dynamic system prompt that is re-evaluated prior each run. BUT my use case is...

Ok, I've found a small hack for now. I use a `tool_wrapper` (an additional decorator for each agent tool) with 2 objectives : 1. make tool run thread-safe on my...

Ok, this was not quite right. I ended up : 1. wrapping my tools to ensure thread-safety (with semaphore) 2. wrapping the `process_function_tools` to ensure up-to-date dynamic system prompt at...