@@ -624,7 +624,7 @@ func (api *API) taskSend(rw http.ResponseWriter, r *http.Request) {
624
624
}
625
625
626
626
if err = api .authAndDoWithTaskSidebarAppClient (r ,taskID ,func (ctx context.Context ,client * http.Client ,appURL * url.URL )error {
627
- status ,err := doAgentapiStatusRequest (ctx ,client ,appURL )
627
+ status ,err := agentapiDoStatusRequest (ctx ,client ,appURL )
628
628
if err != nil {
629
629
return err
630
630
}
@@ -645,7 +645,7 @@ func (api *API) taskSend(rw http.ResponseWriter, r *http.Request) {
645
645
reqBody .Body .Content = req .Input
646
646
reqBody .Body .Type = "user"
647
647
648
- req ,err := newAgentapiRequest (ctx ,http .MethodPost ,appURL ,"message" ,reqBody )
648
+ req ,err := agentapiNewRequest (ctx ,http .MethodPost ,appURL ,"message" ,reqBody )
649
649
if err != nil {
650
650
return err
651
651
}
@@ -800,7 +800,7 @@ func (api *API) authAndDoWithTaskSidebarAppClient(
800
800
return do (ctx ,client ,parsedURL )
801
801
}
802
802
803
- func newAgentapiRequest (ctx context.Context ,method string ,appURL * url.URL ,appURLPath string ,body any ) (* http.Request ,error ) {
803
+ func agentapiNewRequest (ctx context.Context ,method string ,appURL * url.URL ,appURLPath string ,body any ) (* http.Request ,error ) {
804
804
u := * appURL
805
805
u .Path = path .Join (appURL .Path ,appURLPath )
806
806
@@ -829,8 +829,8 @@ func newAgentapiRequest(ctx context.Context, method string, appURL *url.URL, app
829
829
return req ,nil
830
830
}
831
831
832
- func doAgentapiStatusRequest (ctx context.Context ,client * http.Client ,appURL * url.URL ) (string ,error ) {
833
- req ,err := newAgentapiRequest (ctx ,http .MethodGet ,appURL ,"status" ,nil )
832
+ func agentapiDoStatusRequest (ctx context.Context ,client * http.Client ,appURL * url.URL ) (string ,error ) {
833
+ req ,err := agentapiNewRequest (ctx ,http .MethodGet ,appURL ,"status" ,nil )
834
834
if err != nil {
835
835
return "" ,err
836
836
}