Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
harishmohanraj committed Sep 23, 2024
1 parent 024570b commit 3aeb79b
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 10 deletions.
3 changes: 1 addition & 2 deletions fastagency_studio/studio/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,12 @@
from uuid import UUID

from asyncer import asyncify
from fastapi import BackgroundTasks, HTTPException

from fastagency.studio.saas_app_generator import (
InvalidFlyTokenError,
InvalidGHTokenError,
SaasAppGenerator,
)
from fastapi import BackgroundTasks, HTTPException

from .auth_token.auth import create_deployment_auth_token
from .db.base import DefaultDB
Expand Down
3 changes: 1 addition & 2 deletions fastagency_studio/studio/models/agents/base.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
from typing import Annotated, Optional, Union
from uuid import UUID

from typing_extensions import TypeAlias

from fastagency.api.openapi import OpenAPI
from typing_extensions import TypeAlias

from ..base import Field, Model
from ..registry import Registry
Expand Down
2 changes: 1 addition & 1 deletion fastagency_studio/studio/models/agents/user_proxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
from uuid import UUID

import autogen

from fastagency.api.openapi.client import OpenAPI

from ..base import Field, Model
from ..registry import register

Expand Down
7 changes: 3 additions & 4 deletions fastagency_studio/studio/models/agents/web_surfer.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@
from asyncer import syncify
from autogen.agentchat import AssistantAgent as AutoGenAssistantAgent
from autogen.agentchat import ConversableAgent as AutoGenConversableAgent
from typing_extensions import TypeAlias

from fastagency.studio.models.agents.web_surfer_autogen import WebSurferChat
from typing_extensions import TypeAlias

from ..base import Field, Model
from ..registry import register
Expand Down Expand Up @@ -47,7 +46,7 @@ def create_new_task(
task: Annotated[str, "task for websurfer"],
) -> str:
try:
return syncify(self.websurfer_chat.create_new_task)(task)
return syncify(self.websurfer_chat.create_new_task)(task) # type: ignore [no-any-return]
except Exception as e:
raise e

Expand All @@ -62,7 +61,7 @@ def continue_task_with_additional_instructions(
],
) -> str:
try:
return syncify(
return syncify( # type: ignore [no-any-return]
self.websurfer_chat.continue_task_with_additional_instructions
)(message)
except Exception as e:
Expand Down
2 changes: 1 addition & 1 deletion fastagency_studio/studio/models/toolboxes/toolbox.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
from uuid import UUID

import httpx
from fastagency.api.openapi.client import OpenAPI
from pydantic import AfterValidator, HttpUrl
from typing_extensions import TypeAlias

from fastagency.api.openapi.client import OpenAPI
from ..base import Field, Model
from ..registry import Registry

Expand Down

0 comments on commit 3aeb79b

Please sign in to comment.