Problem or motivation
Without this, there are 5 LLM calls, currently.
- Agent tries an API (say authsome run curl), gets 401 response
- Agent lists all providers, Sees provider exists
- Agent runs authsome login, gets a URL
- Asks the user to make the connection, user connects and replies done
- Agent calls the API again, succeeds
Proposed solution
With this, there will be 3 LLM calls.
- Agent tries an API (say authsome run curl), cli sees 401 response and checks the db to learn that a provider exists and credentials don't, cli creates a login URL and tells the user to connect the app using this url, Agent sees this
- Asks the user to make the connection, user connects and replies done
- Agent calls the API again, succeeds
Alternatives considered
No response
Area
CLI
Additional context
No response
Problem or motivation
Without this, there are 5 LLM calls, currently.
Proposed solution
With this, there will be 3 LLM calls.
Alternatives considered
No response
Area
CLI
Additional context
No response