mirror of
https://git.boos.lat/aibo/BossChat.git
synced 2026-10-31 15:46:12 +00:00
refactor(runtime): streamline request handling and improve tool preparation methods
This commit is contained in:
@@ -19,15 +19,9 @@ type service struct {
|
||||
}
|
||||
|
||||
func (s *service) Run(ctx context.Context, req applicationruntime.Request) (*applicationruntime.Summary, error) {
|
||||
if s == nil || s.app == nil {
|
||||
return nil, nil
|
||||
}
|
||||
return s.app.Run(ctx, req)
|
||||
}
|
||||
|
||||
func (s *service) Resume(ctx context.Context, req applicationruntime.ResumeRequest) (*applicationruntime.Summary, error) {
|
||||
if s == nil || s.app == nil {
|
||||
return nil, nil
|
||||
}
|
||||
return s.app.Resume(ctx, req)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user