use method
Adds a middleware factory to the pipeline.
The factory receives the next client in the pipeline
and returns a new ChatClient that wraps it.
Implementation
ChatClientBuilder use(ChatClient Function(ChatClient) factory) {
_factories.add(factory);
return this;
}