Skip to content

armgit / E2B

Public Imported from GitHub
0

Open-source, secure environment with real-world tools for enterprise-grade agents.

Fix agent handling; Finish deployment API [WIP]

Tomas Valenta7d8214a11bce
diff --git a/.github/workflows/api.yml b/.github/workflows/api.yml
index 0ff2058fb..736c79256 100644
--- a/.github/workflows/api.yml
+++ b/.github/workflows/api.yml
@@ -20,6 +20,7 @@ env:
GCE_INSTANCE: e2b-api-instance-1
GCE_INSTANCE_ZONE: us-central1-a
+# TODO: Update - https://stackoverflow.com/questions/68244641/how-to-circumvent-compute-engines-downtime-during-container-deployments
jobs:
deploy:
name: Build and release
diff --git a/api-client/AgentConnection.ts b/api-client/AgentConnection.ts
index 21c85835f..a42a552b8 100644
--- a/api-client/AgentConnection.ts
+++ b/api-client/AgentConnection.ts
@@ -1,5 +1,4 @@
import { RpcWebSocketClient, IRpcNotification } from 'rpc-websocket-client'
-import { deployment_state } from '@prisma/client'
import { Log } from 'db/types'
import { ModelConfig } from 'state/model'
@@ -29,14 +28,16 @@ export interface Opts {
export class AgentConnection {
private readonly rpc = new RpcWebSocketClient()
+ private readonly url: string
- constructor(private readonly url: string, private readonly opts: Opts) {
+ constructor(url: string, private readonly opts: Opts, private readonly projectID: string) {
this.rpc.onNotification.push(this.handleNotification.bind(this))
this.rpc.onClose(opts.onClose)
+ this.url = `${url.replace('http', 'ws')}?project_id=${this.projectID}`
}
async connect() {
- await this.rpc.connect(this.url.replace('http', 'ws'))
+ await this.rpc.connect(this.url)
}
async disconnect() {
@@ -46,27 +47,29 @@ export class AgentConnection {
this.rpc.ws?.close()
}
- private handleNotification(data: IRpcNotification) {
- if (data.method === 'logs') {
- if (data.params.logs) {
- this.opts.onSteps(data.params.logs)
- }
- // return this.opts.onSteps(data.params.steps)
- if (data.params.state) {
- this.opts.onStateChange(data.params.state)
- if (data.params.state === deployment_state.finished) {
- this.disconnect()
+ private async handleNotification(data: IRpcNotification) {
+ switch (data.method) {
+ case 'logs':
+ if (data.params.logs) {
+ this.opts.onSteps(data.params.logs)
}
- }
+ break
+ case 'interaction_request':
+ if (data.params.type === 'done') {
+ this.opts.onStateChange(AgentRunState.None)
+ await this.disconnect()
+ } else {
+ console.error('Unhandler interaction request', data)
+ }
+ break
+ default:
+ console.error('Unknown notification method', data)
+ break
}
}
- async start(projectID: string, modelConfig: ModelConfig) {
- await this.rpc.call('start', {
- 'project_id': projectID,
- 'model_config': modelConfig,
- })
-
+ async start(config: ModelConfig, instructions: any) {
+ await this.rpc.call('start', { config, instructions })
this.opts.onStateChange(AgentRunState.Running)
}
@@ -87,6 +90,7 @@ export class AgentConnection {
async cancelRun() {
await this.rpc.call('stop')
this.opts.onStateChange(AgentRunState.None)
+ await this.disconnect()
}
async rewriteRunSteps(steps: Step[]) {
diff --git a/api-client/api/schema.gen.ts b/api-client/api/schema.gen.ts
index c45d6e285..2314a6be0 100644
--- a/api-client/api/schema.gen.ts
+++ b/api-client/api/schema.gen.ts
@@ -5,9 +5,27 @@
export interface paths {
- "/generate": {
- /** Generate */
- post: operations["generate_generate_post"];
+ "/deployments": {
+ /** List Deployments */
+ get: operations["list_deployments_deployments_get"];
+ /** Create Agent Deployment */
+ post: operations["create_agent_deployment_deployments_post"];
+ };
+ "/deployments/{id}": {
+ /** Delete Agent Deployment */
+ delete: operations["delete_agent_deployment_deployments__id__delete"];
+ };
+ "/deployments/{id}/interaction_requests": {
+ /** Get Agent Intereaction Requests */
+ get: operations["get_agent_intereaction_requests_deployments__id__interaction_requests_get"];
+ };
+ "/deployments/{id}/interactions": {
+ /** Interact With Agent Deployment */
+ post: operations["interact_with_agent_deployment_deployments__id__interactions_post"];
+ };
+ "/deployments/{id}/logs": {
+ /** Get Agent Deployment Status */
+ get: operations["get_agent__deployment_status_deployments__id__logs_get"];
};
}
@@ -15,38 +33,25 @@ export type webhooks = Record<string, never>;
export interface components {
schemas: {
- /** GenerateBody */
- GenerateBody: {
- model_config: components["schemas"]["ModelConfig"];
- /** Project Id */
- project_id: string;
+ /** AgentInteraction */
+ AgentInteraction: {
+ /** Data */
+ data?: Record<string, never>;
+ /** Interaction Id */
+ interaction_id?: string;
+ /** Type */
+ type: string;
+ };
+ /** CreateDeploymentBody */
+ CreateDeploymentBody: {
+ /** Config */
+ config?: Record<string, never>;
};
/** HTTPValidationError */
HTTPValidationError: {
/** Detail */
detail?: (components["schemas"]["ValidationError"])[];
};
- /** ModelConfig */
- ModelConfig: {
- /** Args */
- args: Record<string, never>;
- /** Prompt */
- prompt: (components["schemas"]["PromptPart"])[];
- /** Provider */
- provider: string;
- };
- /** PromptPart */
- PromptPart: {
- /** Content */
- content: string;
- /**
- * Role
- * @enum {string}
- */
- role: "user" | "system";
- /** Type */
- type: string;
- };
/** ValidationError */
ValidationError: {
/** Location */
@@ -68,11 +73,120 @@ export type external = Record<string, never>;
export interface operations {
- /** Generate */
- generate_generate_post: {
+ /** List Deployments */
+ list_deployments_deployments_get: {
+ responses: {
+ /** @description Successful Response */
+ 200: {
+ content: {
+ "application/json": Record<string, never>;
+ };
+ };
+ };
+ };
+ /** Create Agent Deployment */
+ create_agent_deployment_deployments_post: {
+ parameters: {
+ query: {
+ project_id: string;
+ };
+ };
requestBody: {
content: {
- "application/json": components["schemas"]["GenerateBody"];
+ "application/json": components["schemas"]["CreateDeploymentBody"];
+ };
+ };
+ responses: {
+ /** @description Successful Response */
+ 200: {
+ content: {
+ "application/json": Record<string, never>;
+ };
+ };
+ /** @description Validation Error */
+ 422: {
+ content: {
+ "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ /** Delete Agent Deployment */
+ delete_agent_deployment_deployments__id__delete: {
+ parameters: {
+ path: {
+ id: string;
+ };
+ };
+ responses: {
+ /** @description Successful Response */
+ 200: {
+ content: {
+ "application/json": Record<string, never>;
+ };
+ };
+ /** @description Validation Error */
+ 422: {
+ content: {
+ "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ /** Get Agent Intereaction Requests */
+ get_agent_intereaction_requests_deployments__id__interaction_requests_get: {
+ parameters: {
+ path: {
+ id: string;
+ };
+ };
+ responses: {
+ /** @description Successful Response */
+ 200: {
+ content: {
+ "application/json": Record<string, never>;
+ };
+ };
+ /** @description Validation Error */
+ 422: {
+ content: {
+ "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ /** Interact With Agent Deployment */
+ interact_with_agent_deployment_deployments__id__interactions_post: {
+ parameters: {
+ path: {
+ id: string;
+ };
+ };
+ requestBody: {
+ content: {
+ "application/json": components["schemas"]["AgentInteraction"];
+ };
+ };
+ responses: {
+ /** @description Successful Response */
+ 200: {
+ content: {
+ "application/json": Record<string, never>;
+ };
+ };
+ /** @description Validation Error */
+ 422: {
+ content: {
+ "application/json": components["schemas"]["HTTPValidationError"];
+ };
+ };
+ };
+ };
+ /** Get Agent Deployment Status */
+ get_agent__deployment_status_deployments__id__logs_get: {
+ parameters: {
+ path: {
+ id: string;
};
};
responses: {
diff --git a/api-service/agent/base.py b/api-service/agent/base.py
index 014329129..efbb0943b 100644
--- a/api-service/agent/base.py
+++ b/api-service/agent/base.py
@@ -1,8 +1,8 @@
from abc import abstractmethod, ABC
-from typing import Any, Coroutine, Dict, List, Literal, Optional, Callable
-
-from pydantic import BaseModel, Json
+from typing import Coroutine, List, Callable, Any
+from pydantic import BaseModel
+from session.env import EnvVar
# The schema for agent config and interaction data is serializable and
# the format for interations with the agent is based on a modified JSON-RPC 2.0 spec (should we use less modified JSON-RPC?).
@@ -19,46 +19,21 @@ from pydantic import BaseModel, Json
# The agent can still be deployed as a Python task, in a Firecracker VM, as a docker container, etc.
-DataType = Dict[str, Json]
-
-
-class AgentLog(BaseModel):
- type: Optional[Literal["log", "error", "output"] | str] = None
- timestamp: Optional[str] = None
- data: DataType
-
-
class AgentInteraction(BaseModel):
- interaction_id: Optional[str] = None
+ interaction_id: str | None = None
type: str
- data: DataType
-
-
-class AgentInteractionResponse(BaseModel):
- data: DataType
+ data: Any
class AgentInteractionRequest(BaseModel):
interaction_id: str
type: str
- data: DataType
+ data: Any = None
-class AgentConfig:
- def __init__(
- self,
- data: DataType,
- on_logs: Callable[[List[AgentLog]], Coroutine[None, None, None]],
- on_interaction_request: Callable[
- [AgentInteractionRequest], Coroutine[None, None, None]
- ],
- on_close: Callable[[], Coroutine[None, None, None]],
- ):
- self.data = data
- self.on_logs = on_logs
- self.data = data
- self.on_interaction_request = on_interaction_request
- self.on_close = on_close
+OnLogs = Callable[[List[Any]], Coroutine[None, None, None]]
+OnInteractionRequest = Callable[[AgentInteractionRequest], Coroutine[None, None, None]]
+GetEnvs = Callable[[], Coroutine[Any, Any, List[EnvVar]]]
class AgentBase(ABC):
@@ -74,28 +49,23 @@ class AgentBase(ABC):
@classmethod
@abstractmethod
- async def create(cls, config: AgentConfig) -> "AgentBase":
+ async def create(
+ cls,
+ config: Any,
+ on_logs: OnLogs,
+ on_interaction_request: OnInteractionRequest,
+ ) -> "AgentBase":
"""Create an agent with the given config without starting it."""
pass
- @abstractmethod
- async def start(self, data: DataType | None = None):
- """Start the agent. Started agent can immediately be interacting with the the world."""
- pass
-
@abstractmethod
async def stop(self):
- """Stop the agent and clean used resources. Stopped agent cannot be started again."""
- pass
-
- @abstractmethod
- async def get_interactions(self):
- """Return a list of interactions that the agent can handle and that can be requested."""
+ """Stop the agent and clean used resources."""
pass
@abstractmethod
async def interaction(
self,
interaction: AgentInteraction,
- ) -> AgentInteractionResponse:
+ ) -> Any:
pass
diff --git a/api-service/agent/basic_agent.py b/api-service/agent/basic_agent.py
index e847f7064..6bdc83ca3 100644
--- a/api-service/agent/basic_agent.py
+++ b/api-service/agent/basic_agent.py
@@ -1,33 +1,36 @@
import asyncio
+import uuid
+import chevron
-from abc import abstractmethod
-from typing import Any, Dict, List, Literal, cast
-
+# Monkey patch chevron to not escape html
+chevron.render.__globals__["_html_escape"] = lambda string: string
-from agent.base import AgentInteraction
-from agent.output.parse_output import ToolLog
-from agent.output.output_stream_parser import OutputStreamParser, Step
-from agent.output.token_callback_handler import TokenCallbackHandler
-from agent.output.work_queue import WorkQueue
+from typing import Any, Dict, List, Literal, cast
+from langchain.agents.tools import InvalidTool
from langchain.callbacks.base import AsyncCallbackManager
from langchain.callbacks.streaming_stdout import StreamingStdOutCallbackHandler
from langchain.chains.llm import LLMChain
-from langchain.schema import BaseMessage
+from langchain.schema import BaseMessage, SystemMessage, HumanMessage
from langchain.tools import BaseTool
from langchain.prompts.chat import (
AIMessagePromptTemplate,
BaseMessagePromptTemplate,
ChatPromptTemplate,
- HumanMessagePromptTemplate,
- SystemMessagePromptTemplate,
)
-from langchain.agents.tools import InvalidTool
-from agent.base import AgentLog
+
+from agent.base import (
+ AgentInteraction,
+ OnLogs,
+ OnInteractionRequest,
+)
+from agent.output.parse_output import ToolLog
+from agent.output.output_stream_parser import OutputStreamParser, Step
+from agent.output.token_callback_handler import TokenCallbackHandler
+from agent.output.work_queue import WorkQueue
from agent.tools.base import create_tools
from models.base import ModelConfig, PromptPart, get_model
-from agent.base import AgentBase, AgentConfig
-from database import db
+from agent.base import AgentBase, AgentInteractionRequest, GetEnvs
from session import NodeJSPlayground
@@ -36,9 +39,18 @@ class RewriteStepsException(Exception):
class BasicAgent(AgentBase):
- def __init__(self, config: AgentConfig):
+ def __init__(
+ self,
+ config: Any,
+ get_envs: GetEnvs,
+ on_logs: OnLogs,
+ on_interaction_request: OnInteractionRequest,
+ ):
super().__init__()
- self.config = config
+ self.get_envs = get_envs
+ self.config = ModelConfig(**config)
+ self.on_interaction_request = on_interaction_request
+ self.on_logs = on_logs
self.should_pause = False
self.canceled = False
self.rewriting_steps = False
@@ -46,10 +58,19 @@ class BasicAgent(AgentBase):
self.can_resume = asyncio.Event()
@classmethod
- async def create(cls, config: AgentConfig):
- c = cls(config=config)
- print("init")
- return c
+ async def create(
+ cls,
+ config: Any,
+ get_envs: GetEnvs,
+ on_logs: OnLogs,
+ on_interaction_request: OnInteractionRequest,
+ ):
+ return cls(
+ config,
+ get_envs,
+ on_logs,
+ on_interaction_request,
+ )
@staticmethod
async def _run_tool(
@@ -85,30 +106,41 @@ class BasicAgent(AgentBase):
if prompt.role == role and prompt.type == type
)
# Double the parenthesses to escape them because the string will be prompt templated.
- .content.replace("{", "{{").replace("}", "}}")
+ .content
)
@staticmethod
- def _create_prompt(model_config: ModelConfig, tools: List[BaseTool]):
- system_template = "\n\n".join(
- [
- BasicAgent._get_prompt_part(model_config.prompt, "system", "prefix"),
- "\n".join([f"{tool.name}: {tool.description}" for tool in tools]),
- BasicAgent._get_prompt_part(model_config.prompt, "system", "suffix"),
- ]
+ def _create_prompt(
+ config: ModelConfig,
+ tools: List[BaseTool],
+ instructions: Any,
+ ):
+ system_template = chevron.render(
+ "\n\n".join(
+ [
+ BasicAgent._get_prompt_part(config.prompt, "system", "prefix"),
+ "\n".join([f"{tool.name}: {tool.description}" for tool in tools]),
+ BasicAgent._get_prompt_part(config.prompt, "system", "suffix"),
+ ]
+ ),
+ instructions,
)
- human_template = "\n\n".join(
- [
- BasicAgent._get_prompt_part(model_config.prompt, "user", "prefix"),
- "{agent_scratchpad}",
- ]
+
+ human_template = chevron.render(
+ "\n\n".join(
+ [
+ BasicAgent._get_prompt_part(config.prompt, "user", "prefix"),
+ ]
+ ),
+ instructions,
)
- messages: List[BaseMessage | BaseMessagePromptTemplate] = [
- SystemMessagePromptTemplate.from_template(system_template),
- HumanMessagePromptTemplate.from_template(human_template),
- # TODO: Check if the results are better when we add scratchpad as AI message
- # AIMessagePromptTemplate.from_template("{agent_scratchpad}"),
+ messages: List[
+ BaseMessage | BaseMessagePromptTemplate | SystemMessage | HumanMessage
+ ] = [
+ SystemMessage(content=system_template),
+ HumanMessage(content=human_template),
+ AIMessagePromptTemplate.from_template("{agent_scratchpad}"),
]
return ChatPromptTemplate(
input_variables=["agent_scratchpad"],
@@ -117,8 +149,7 @@ class BasicAgent(AgentBase):
async def _run(
self,
- project_id: str,
- model_config: ModelConfig,
+ instructions: Any,
):
playground = None
try:
@@ -131,7 +162,7 @@ class BasicAgent(AgentBase):
# -----
# Create tools
# Create playground for code tools
- playground = NodeJSPlayground(get_envs=lambda: db.get_env_vars(project_id))
+ playground = NodeJSPlayground(get_envs=self.get_envs)
tools = list(create_tools(playground=playground))
self.tool_names = [tool.name for tool in tools]
tool_map = {tool.name: tool for tool in tools}
@@ -143,8 +174,8 @@ class BasicAgent(AgentBase):
# -----
# Create LLM from specified model
llm_chain = LLMChain(
- llm=get_model(model_config, callback_manager),
- prompt=self._create_prompt(model_config, tools),
+ llm=get_model(self.config, callback_manager),
+ prompt=self._create_prompt(self.config, tools, instructions),
callback_manager=callback_manager,
)
@@ -152,9 +183,7 @@ class BasicAgent(AgentBase):
# Create log handlers
# Used for sending logs to db/frontend without blocking
steps_streamer = WorkQueue[List[Step]](
- on_workload=lambda steps: self.config.on_logs(
- [AgentLog(data=step) for step in steps]
- ),
+ on_workload=lambda steps: self.on_logs(steps),
)
def stream_steps(steps: List[Step]):
@@ -194,7 +223,7 @@ class BasicAgent(AgentBase):
if tool_outputs:
agent_scratchpad += f"\nObservation: {tool_outputs}\nThought:"
- return f"This is your previous work (you can continue where you left off):\n{agent_scratchpad}"
+ return f"This is my previous work (I will continue where I left off):\n{agent_scratchpad}"
print("Generating...", flush=True)
while True:
@@ -256,7 +285,12 @@ class BasicAgent(AgentBase):
finally:
if playground is not None:
playground.close()
- await self.config.on_close()
+ await self.on_interaction_request(
+ AgentInteractionRequest(
+ interaction_id=str(uuid.uuid4()),
+ type="done",
+ )
+ )
async def _check_interrupt(self):
if self.canceled:
@@ -270,27 +304,14 @@ class BasicAgent(AgentBase):
self.rewriting_steps = False
raise RewriteStepsException()
- async def start(self, project_id: str, model_config: Dict[str, Any]):
+ async def _start(self, instructions: Any):
print("Start agent run")
- self.project_id = project_id
asyncio.create_task(
self._run(
- project_id=project_id,
- model_config=ModelConfig(**model_config),
+ instructions=instructions,
)
)
- async def interaction(self, interaction: AgentInteraction):
- print("Agent interaction")
- if interaction.type == "pause":
- await self._pause()
- elif interaction.type == "resume":
- await self._resume()
- elif interaction.type == "rewrite_steps":
- await self._rewrite_steps(interaction.data["steps"])
- else:
- raise Exception(f"Unknown interaction action: {interaction.type}")
-
async def _pause(self):
print("Pause agent run")
self.should_pause = True
@@ -300,13 +321,6 @@ class BasicAgent(AgentBase):
self.should_pause = False
self.can_resume.set()
- async def stop(self):
- print("Cancel agent run")
- self.canceled = True
- if self.llm_generation:
- self.llm_generation.cancel()
- await self.config.on_close()
-
async def _rewrite_steps(self, steps: List[Step]):
print("Rewrite agent run steps")
await self._pause()
@@ -321,3 +335,23 @@ class BasicAgent(AgentBase):
buffered_step=steps[-1],
)
await self._resume()
+
+ async def interaction(self, interaction: AgentInteraction):
+ print("Agent interaction")
+ match interaction.type:
+ case "pause":
+ await self._pause()
+ case "resume":
+ await self._resume()
+ case "start":
+ await self._start(interaction.data["instructions"])
+ case "rewrite_steps":
+ await self._rewrite_steps(interaction.data["steps"])
+ case default:
+ raise Exception(f"Unknown interaction action: {interaction.type}")
+
+ async def stop(self):
+ print("Cancel agent run")
+ self.canceled = True
+ if self.llm_generation:
+ self.llm_generation.cancel()
diff --git a/api-service/agent/json_rpc.py b/api-service/agent/json_rpc.py
new file mode 100644
index 000000000..0576b3681
--- /dev/null
+++ b/api-service/agent/json_rpc.py
@@ -0,0 +1,112 @@
+import asyncio
+
+from typing import Any, AsyncIterator, Callable, Coroutine, Dict, List
+
+from agent.base import AgentInteraction, AgentBase, AgentInteractionRequest
+from deployment.manager import AgentFactory
+from database.base import db
+
+
+class JsonRpcAgent:
+ jsonrpc_version = "2.0"
+
+ def __init__(
+ self,
+ send_json: Callable[[Any], Coroutine[Any, Any, None]],
+ iter_json: Callable[[], AsyncIterator[Any]],
+ agent_factory: AgentFactory,
+ project_id: str,
+ ) -> None:
+ self._project_id = project_id
+ self._agent: AgentBase | None = None
+ self._agent_factory = agent_factory
+ self._send_json = send_json
+ self._iter_json = iter_json
+
+ async def _notify(self, method: str, params: Dict[str, Any]):
+ await self._send_json(
+ {
+ "jsonrpc": self.jsonrpc_version,
+ "method": method,
+ "params": params,
+ }
+ )
+
+ async def _call(self, id: str, method: str, params: Dict[str, Any] = {}):
+ async def handle_call():
+ try:
+ print(f"Calling {method} via JSONRPC")
+ match method:
+ case "start":
+ self._agent = await self._agent_factory(
+ params["config"],
+ lambda: db.get_env_vars(self._project_id),
+ self._handle_logs,
+ self._handle_interaction_request,
+ )
+ print("config", params["config"])
+ await self._agent.interaction(
+ AgentInteraction(
+ type="start",
+ data={"instructions": params["instructions"]},
+ )
+ )
+ case "stop":
+ if self._agent is None:
+ raise Exception("Agent not found")
+ await self._agent.stop()
+ case "interaction":
+ if self._agent is None:
+ raise Exception("Agent not found")
+ if params is None:
+ raise Exception("Interaction params not found")
+ result = await self._agent.interaction(
+ AgentInteraction(
+ interaction_id=id,
+ data=params.get("data", None),
+ type=params["type"],
+ )
+ )
+ return {"result": result}
+ case default:
+ raise Exception(f"Method {method} not found")
+ except Exception as e:
+ print(f"Error calling {method} via JSONRPC", e)
+ return {
+ "error": {
+ "code": 13,
+ "message": str(e),
+ }
+ }
+
+ response = await handle_call() or {"result": None}
+ print(f"Sending response for {method} via JSONRPC", response)
+ await self._send_json(
+ {
+ "jsonrpc": self.jsonrpc_version,
+ "id": id,
+ **response,
+ }
+ )
+
+ async def close(self):
+ if self._agent is not None:
+ await self._agent.stop()
+
+ async def _handle_logs(self, logs: List[Any]):
+ await self._notify("logs", {"logs": logs})
+ asyncio.create_task(db.update_project_developent_logs(self._project_id, logs))
+
+ async def _handle_interaction_request(self, request: AgentInteractionRequest):
+ await self._notify(
+ "interaction_request",
+ request.dict(),
+ )
+
+ async def handle(self):
+ async for data in self._iter_json():
+ await self._call(
+ data["id"],
+ data["method"],
+ data.get("params", {}),
+ )
diff --git a/api-service/agent/json_rpc_connector.py b/api-service/agent/json_rpc_connector.py
deleted file mode 100644
index 4d9b8f21d..000000000
--- a/api-service/agent/json_rpc_connector.py
+++ /dev/null
@@ -1,96 +0,0 @@
-from typing import Any, AsyncIterator, Callable, Coroutine, Dict
-from pydantic import BaseModel
-from pydantic.fields import PrivateAttr
-
-from agent.base import AgentConfig, AgentInteraction, AgentBase
-from agent.basic_agent import BasicAgent
-
-
-class JsonRpcAgentConnector(BaseModel):
- jsonrpc_version = "2.0"
-
- agent: AgentBase | None = None
- agent_factory: Callable[[AgentConfig], Coroutine[None, None, AgentBase]]
-
- send_json: Callable[[Any], Coroutine[Any, Any, None]]
- iter_json: Callable[[], AsyncIterator[Any]]
-
- async def _notify(self, method: str, params: Dict[str, Any]):
- await self.send_json(
- {
- "jsonrpc": self.jsonrpc_version,
- "method": method,
- "params": params,
- }
- )
-
- async def _call(self, id: str, method: str, params: Dict[str, Any] | None):
- async def handle_call():
- try:
- print(f"Calling {method} via JSONRPC")
- match method:
- case "start":
- if self.agent is None:
- raise Exception("Agent not found")
- await self.agent.start(params and params.get("data"))
- return {}
-
- case "stop":
- if self.agent is None:
- raise Exception("Agent not found")
- await self.agent.stop()
- return {}
- case "interaction":
- if self.agent is None:
- raise Exception("Agent not found")
- if params is None:
- raise Exception("Interaction params not found")
- result = await self.agent.interaction(
- AgentInteraction(
- interaction_id=id,
- data=params["data"],
- type=params["type"],
- )
- )
- return {"result": result}
- case default:
- raise Exception(f"Method {method} not found")
- except Exception as e:
- print(f"Error calling {method} via JSONRPC", e)
- return {
- "error": {
- "code": 13,
- "message": str(e),
- }
- }
-
- response = await handle_call()
- await self.send_json(
- {
- "jsonrpc": self.jsonrpc_version,
- "id": id,
- **response,
- }
- )
-
- async def close(self):
- if self.agent is not None:
- await self.agent.stop()
-
- async def handle(self):
- self.agent = await self.agent_factory(
- AgentConfig(
- on_logs=lambda logs, project_id: self._notify("log", {"log": log}),
- on_interaction_request=lambda request: self._notify(
- "interaction_request", {"request": request}
- ),
- on_close=lambda: self.close,
- )
- )
-
- async for data in self.iter_json():
- await self._call(
- data["id"],
- data["method"],
- data.get("params", {}),
- )
diff --git a/api-service/app.py b/api-service/app.py
index 66fa6d8da..78c5ba1eb 100644
--- a/api-service/app.py
+++ b/api-service/app.py
@@ -1,13 +1,13 @@
-from typing import Literal
+from typing import Any
from fastapi import FastAPI, WebSocket
from fastapi.middleware.cors import CORSMiddleware
-from pydantic import BaseModel
from contextlib import asynccontextmanager
+from pydantic import BaseModel
+
from agent.base import AgentInteraction
-from agent.base import AgentConfig
from deployment.in_memory import InMemoryDeploymentManager
-from agent.json_rpc_connector import JsonRpcAgentConnector
+from agent.json_rpc import JsonRpcAgent
from agent.basic_agent import BasicAgent
from database.base import db
@@ -26,24 +26,21 @@ deployment_manager = InMemoryDeploymentManager(agent_factory=BasicAgent.create)
@asynccontextmanager
async def lifespan(app: FastAPI):
- # TODO: Lifecycle - load and start all enabled deployments
- # deployments = await db.get_deployments()
- # for deployment in deployments:
- # await deployment_manager.create_deployment(
- # AgentConfig(
- # name=deployment["id"],
- # project_id=deployment["project_id"],
- # ),
- # project_id=deployment["project_id"],
- # )
+ deployments = await db.get_deployments()
+ for deployment in deployments:
+ if deployment["enabled"]:
+ await deployment_manager.create_deployment(
+ deployment["config"],
+ project_id=deployment["project_id"],
+ )
yield
@app.websocket("/dev/agent")
-async def ws_agent_run(websocket: WebSocket):
- print("ws_agent_run")
+async def ws_agent_run(websocket: WebSocket, project_id: str):
await websocket.accept()
- connector = JsonRpcAgentConnector(
+ connector = JsonRpcAgent(
+ project_id=project_id,
iter_json=websocket.iter_json,
send_json=websocket.send_json,
agent_factory=BasicAgent.create,
@@ -52,38 +49,55 @@ async def ws_agent_run(websocket: WebSocket):
await connector.handle()
except:
await connector.close()
+ finally:
+ print("Closing websocket")
+
+class CreateDeploymentBody(BaseModel):
+ config: Any
[email protected]("/deployment")
-async def create_agent_deployment(body: AgentConfig, project_id: str):
+
[email protected]("/deployments")
+async def list_deployments():
+ deployments = await deployment_manager.list_deployments()
+ return {"deployments": deployments}
+
+
[email protected]("/deployments")
+async def create_agent_deployment(body: CreateDeploymentBody, project_id: str):
deployment = await deployment_manager.create_deployment(
- body,
- project_id=project_id,
+ body.config,
+ project_id,
)
return {"id": deployment.id}
-class AgentDeploymentStatusBody(BaseModel):
- status: Literal["running", "stopped"]
[email protected]("/deployments/{id}")
+async def delete_agent_deployment(id: str):
+ await deployment_manager.remove_deployment(id)
+ return {}
[email protected]("/deployment/{id}/status")
-async def change_agent_deployment_status(id: str, body: AgentDeploymentStatusBody):
- deployment = await deployment_manager.get_deployment(id)
- if body.status == "running":
- await deployment.start()
- elif body.status == "stopped":
- await deployment.stop()
-
-
[email protected]("/deployment/{id}/interaction")
[email protected]("/deployments/{id}/interactions")
async def interact_with_agent_deployment(id: str, body: AgentInteraction):
deployment = await deployment_manager.get_deployment(id)
result = await deployment.agent.interaction(body)
+
+ if body.interaction_id:
+ deployment.event_handler.remove_interaction_request(
+ body.interaction_id,
+ )
+
return result
[email protected]("/deployment/{id}/status")
[email protected]("/deployments/{id}/interaction_requests")
+async def get_agent_intereaction_requests(id: str):
+ deployment = await deployment_manager.get_deployment(id)
+ return {"interaction_requests": deployment.event_handler.interaction_requests}
+
+
[email protected]("/deployments/{id}/logs")
async def get_agent__deployment_status(id: str):
deployment = await deployment_manager.get_deployment(id)
- return {"status": deployment.status}
+ return {"logs": deployment.event_handler.logs}
diff --git a/api-service/deployment/in_memory.py b/api-service/deployment/in_memory.py
index 344f69bf7..f0a474bd2 100644
--- a/api-service/deployment/in_memory.py
+++ b/api-service/deployment/in_memory.py
@@ -1,31 +1,31 @@
-import uuid
-
-from typing import Callable, Coroutine, Dict
-from pydantic import PrivateAttr
+from typing import Any, Dict
from database.base import db
-from deployment.manager import AgentDeploymentManager, AgentDeployment
-from agent.base import AgentBase, AgentConfig
+from deployment.manager import AgentDeploymentManager, AgentDeployment, AgentFactory
class InMemoryDeploymentManager(AgentDeploymentManager):
- agent_factory: Callable[[AgentConfig], Coroutine[None, None, AgentBase]]
- _deployments: Dict[str, AgentDeployment] = PrivateAttr(default={})
+ def __init__(
+ self,
+ agent_factory: AgentFactory,
+ ):
+ self._agent_factory = agent_factory
+ self._deployments: Dict[str, AgentDeployment] = {}
async def create_deployment(
self,
- config: AgentConfig,
+ config: Any,
project_id: str,
):
- agent = await self.agent_factory(config)
- deployment = AgentDeployment(
- id=str(uuid.uuid4()),
- agent=agent,
+ deployment = await AgentDeployment.from_factory(
+ self._agent_factory,
+ project_id,
+ config,
)
try:
await db.upsert_deployment(deployment.id, project_id)
except:
- await agent.stop()
+ await deployment.agent.stop()
raise
self._deployments[deployment.id] = deployment
@@ -34,8 +34,8 @@ class InMemoryDeploymentManager(AgentDeploymentManager):
async def remove_deployment(self, id: str):
deployment = await self.get_deployment(id)
await deployment.agent.stop()
- del self._deployments[deployment.id]
await db.upsert_deployment(deployment.id, enabled=False)
+ del self._deployments[deployment.id]
async def get_deployment(self, id: str):
return self._deployments[id]
diff --git a/api-service/deployment/manager.py b/api-service/deployment/manager.py
index 104a3938a..fc548c3e0 100644
--- a/api-service/deployment/manager.py
+++ b/api-service/deployment/manager.py
@@ -1,27 +1,63 @@
-from typing import List, Literal
-from abc import abstractmethod
-from pydantic import BaseModel
+import uuid
-from agent.base import AgentBase, AgentConfig, AgentInteractionRequest
+from typing import Any, Callable, Coroutine, List
+from abc import abstractmethod, ABC
+from database.base import db
+from agent.base import (
+ AgentBase,
+ AgentInteractionRequest,
+ OnLogs,
+ OnInteractionRequest,
+ GetEnvs,
+)
-class AgentDeployment:
- def __init__(self, id: str, agent: AgentBase):
- self.id = id
- self.agent = agent
- self.status: Literal["running", "stopped"] = "stopped"
+
+AgentFactory = Callable[
+ [Any, GetEnvs, OnLogs, OnInteractionRequest], Coroutine[None, None, AgentBase]
+]
+
+
+class AgentEvents:
+ def __init__(self) -> None:
+ self.logs: List[Any] = []
self.interaction_requests: List[AgentInteractionRequest] = []
- async def start(self):
- await self.agent.start()
- self.status = "running"
+ async def overwrite_logs(self, logs: List[Any]):
+ self.logs = logs
+
+ async def add_interaction_request(
+ self, interaction_request: AgentInteractionRequest
+ ):
+ self.interaction_requests.append(interaction_request)
+
+ def remove_interaction_request(self, interaction_id: str):
+ self.interaction_requests = [
+ interaction_request
+ for interaction_request in self.interaction_requests
+ if interaction_request.interaction_id != interaction_id
+ ]
+
+
+class AgentDeployment:
+ def __init__(self, agent: AgentBase, event_handler: AgentEvents):
+ self.id = str(uuid.uuid4())
+ self.agent = agent
+ self.event_handler = event_handler
- async def stop(self):
- await self.agent.stop()
- self.status = "stopped"
+ @classmethod
+ async def from_factory(cls, factory: AgentFactory, project_id: str, config: Any):
+ event_handler = AgentEvents()
+ agent = await factory(
+ config,
+ lambda: db.get_env_vars(project_id),
+ event_handler.overwrite_logs,
+ event_handler.add_interaction_request,
+ )
+ return cls(agent, event_handler)
-class AgentDeploymentManager(BaseModel):
+class AgentDeploymentManager(ABC):
"""
This is an abstract class that defines the interface for a deployment adapter.
@@ -34,7 +70,7 @@ class AgentDeploymentManager(BaseModel):
"""
@abstractmethod
- async def create_deployment(self, config: AgentConfig, **kwargs) -> AgentDeployment:
+ async def create_deployment(self, config: Any, **kwargs) -> AgentDeployment:
pass
@abstractmethod
diff --git a/api-service/openapi.json b/api-service/openapi.json
index 08bed89d4..402438f37 100644
--- a/api-service/openapi.json
+++ b/api-service/openapi.json
@@ -1,14 +1,14 @@
{
"openapi": "3.0.2",
"info": {
- "title": "e2b-api-service",
+ "title": "e2b-api",
"version": "0.1.0"
},
"paths": {
- "/health": {
+ "/deployments": {
"get": {
- "summary": "Health",
- "operationId": "health_health_get",
+ "summary": "List Deployments",
+ "operationId": "list_deployments_deployments_get",
"responses": {
"200": {
"description": "Successful Response",
@@ -19,17 +19,26 @@
}
}
}
- }
- },
- "/agent": {
+ },
"post": {
- "summary": "Create Agent",
- "operationId": "create_agent_agent_post",
+ "summary": "Create Agent Deployment",
+ "operationId": "create_agent_deployment_deployments_post",
+ "parameters": [
+ {
+ "required": true,
+ "schema": {
+ "title": "Project Id",
+ "type": "string"
+ },
+ "name": "project_id",
+ "in": "query"
+ }
+ ],
"requestBody": {
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/AgentCreateBody"
+ "$ref": "#/components/schemas/CreateDeploymentBody"
}
}
},
@@ -57,10 +66,47 @@
}
}
},
- "/agent/{id}/run": {
+ "/deployments/{id}": {
+ "delete": {
+ "summary": "Delete Agent Deployment",
+ "operationId": "delete_agent_deployment_deployments__id__delete",
+ "parameters": [
+ {
+ "required": true,
+ "schema": {
+ "title": "Id",
+ "type": "string"
+ },
+ "name": "id",
+ "in": "path"
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Successful Response",
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ }
+ },
+ "422": {
+ "description": "Validation Error",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "/deployments/{id}/interactions": {
"post": {
- "summary": "Run Agent",
- "operationId": "run_agent_agent__id__run_post",
+ "summary": "Interact With Agent Deployment",
+ "operationId": "interact_with_agent_deployment_deployments__id__interactions_post",
"parameters": [
{
"required": true,
@@ -76,7 +122,7 @@
"content": {
"application/json": {
"schema": {
- "$ref": "#/components/schemas/AgentRunBody"
+ "$ref": "#/components/schemas/AgentInteraction"
}
}
},
@@ -104,10 +150,10 @@
}
}
},
- "/agent/{id}/run/{run_id}/status": {
+ "/deployments/{id}/interaction_requests": {
"get": {
- "summary": "Get Agent Run Status",
- "operationId": "get_agent_run_status_agent__id__run__run_id__status_get",
+ "summary": "Get Agent Intereaction Requests",
+ "operationId": "get_agent_intereaction_requests_deployments__id__interaction_requests_get",
"parameters": [
{
"required": true,
@@ -117,15 +163,6 @@
},
"name": "id",
"in": "path"
- },
- {
- "required": true,
- "schema": {
- "title": "Run Id",
- "type": "string"
- },
- "name": "run_id",
- "in": "path"
}
],
"responses": {
@@ -150,10 +187,10 @@
}
}
},
- "/agent/{id}/run/{run_id}/result": {
+ "/deployments/{id}/logs": {
"get": {
- "summary": "Get Agent Run Result",
- "operationId": "get_agent_run_result_agent__id__run__run_id__result_get",
+ "summary": "Get Agent Deployment Status",
+ "operationId": "get_agent__deployment_status_deployments__id__logs_get",
"parameters": [
{
"required": true,
@@ -163,15 +200,6 @@
},
"name": "id",
"in": "path"
- },
- {
- "required": true,
- "schema": {
- "title": "Run Id",
- "type": "string"
- },
- "name": "run_id",
- "in": "path"
}
],
"responses": {
@@ -199,40 +227,35 @@
},
"components": {
"schemas": {
- "AgentCreateBody": {
- "title": "AgentCreateBody",
+ "AgentInteraction": {
+ "title": "AgentInteraction",
"required": [
- "model_config",
- "deploy_config"
+ "type"
],
"type": "object",
"properties": {
- "model_config": {
- "$ref": "#/components/schemas/ModelConfig"
+ "interaction_id": {
+ "title": "Interaction Id",
+ "type": "string"
+ },
+ "type": {
+ "title": "Type",
+ "type": "string"
},
- "deploy_config": {
- "$ref": "#/components/schemas/DeployConfig"
+ "data": {
+ "title": "Data"
}
}
},
- "AgentRunBody": {
- "title": "AgentRunBody",
- "required": [
- "instructions"
- ],
+ "CreateDeploymentBody": {
+ "title": "CreateDeploymentBody",
"type": "object",
"properties": {
- "instructions": {
- "title": "Instructions",
- "type": "string"
+ "config": {
+ "title": "Config"
}
}
},
- "DeployConfig": {
- "title": "DeployConfig",
- "type": "object",
- "properties": {}
- },
"HTTPValidationError": {
"title": "HTTPValidationError",
"type": "object",
@@ -246,59 +269,6 @@
}
}
},
- "ModelConfig": {
- "title": "ModelConfig",
- "required": [
- "provider",
- "prompt",
- "args"
- ],
- "type": "object",
- "properties": {
- "provider": {
- "title": "Provider",
- "type": "string"
- },
- "prompt": {
- "title": "Prompt",
- "type": "array",
- "items": {
- "$ref": "#/components/schemas/PromptPart"
- }
- },
- "args": {
- "title": "Args",
- "type": "object"
- }
- }
- },
- "PromptPart": {
- "title": "PromptPart",
- "required": [
- "role",
- "type",
- "content"
- ],
- "type": "object",
- "properties": {
- "role": {
- "title": "Role",
- "enum": [
- "user",
- "system"
- ],
- "type": "string"
- },
- "type": {
- "title": "Type",
- "type": "string"
- },
- "content": {
- "title": "Content",
- "type": "string"
- }
- }
- },
"ValidationError": {
"title": "ValidationError",
"required": [
diff --git a/api-service/playground/swagger.json b/api-service/playground/swagger.json
index fdd3925df..f75ea7eb3 100644
--- a/api-service/playground/swagger.json
+++ b/api-service/playground/swagger.json
@@ -211,9 +211,6 @@
"info": {
"title": "playground",
"version": "1.0.0",
- "license": {
- "name": "MIT"
- },
"contact": {}
},
"openapi": "3.0.0",
diff --git a/api-service/poetry.lock b/api-service/poetry.lock
index b64b68cb3..f23846622 100644
--- a/api-service/poetry.lock
+++ b/api-service/poetry.lock
@@ -348,11 +348,23 @@ files = [
{file = "charset_normalizer-3.1.0-py3-none-any.whl", hash = "sha256:3d9098b479e78c85080c98e1e35ff40b4a31d8953102bb0fd7d1b6f8a2111a3d"},
]
+[[package]]
+name = "chevron"
+version = "0.14.0"
+description = "Mustache templating language renderer"
+category = "main"
+optional = false
+python-versions = "*"
+files = [
+ {file = "chevron-0.14.0-py3-none-any.whl", hash = "sha256:fbf996a709f8da2e745ef763f482ce2d311aa817d287593a5b990d6d6e4f0443"},
+ {file = "chevron-0.14.0.tar.gz", hash = "sha256:87613aafdf6d77b6a90ff073165a61ae5086e21ad49057aa0e53681601800ebf"},
+]
+
[[package]]
name = "click"
version = "8.1.3"
description = "Composable command line interface toolkit"
-category = "dev"
+category = "main"
optional = false
python-versions = ">=3.7"
files = [
@@ -549,14 +561,14 @@ files = [
[[package]]
name = "gptcache"
-version = "0.1.19"
+version = "0.1.21"
description = "GPTCache, a powerful caching library that can be used to speed up and lower the cost of chat applications that rely on the LLM service. GPTCache works as a memcache for AIGC applications, similar to how Redis works for traditional applications."
category = "main"
optional = false
python-versions = ">=3.8.1"
files = [
- {file = "gptcache-0.1.19-py3-none-any.whl", hash = "sha256:d225050e67cd3c5cf8d604e84fc7e12257463cc3b8b22259d9021d032736be31"},
- {file = "gptcache-0.1.19.tar.gz", hash = "sha256:6d7cbc4105354575385fec0efc18a6e5d4262e290c6b7b0d000ff741a82799de"},
+ {file = "gptcache-0.1.21-py3-none-any.whl", hash = "sha256:76322a19f96fe0576857072c62a7b29bc680dfde719d551d5bc1aedd0d8a5f34"},
+ {file = "gptcache-0.1.21.tar.gz", hash = "sha256:4c3eb750b972cc95681233358a7bbfd61233827e76ae81be47668552132a9002"},
]
[package.dependencies]
@@ -672,34 +684,6 @@ files = [
{file = "h11-0.14.0.tar.gz", hash = "sha256:8f19fbbe99e72420ff35c00b27a34cb9937e902a8b810e2c88300c6f0a3b699d"},
]
-[[package]]
-name = "h2"
-version = "4.1.0"
-description = "HTTP/2 State-Machine based protocol implementation"
-category = "dev"
-optional = false
-python-versions = ">=3.6.1"
-files = [
- {file = "h2-4.1.0-py3-none-any.whl", hash = "sha256:03a46bcf682256c95b5fd9e9a99c1323584c3eec6440d379b9903d709476bc6d"},
- {file = "h2-4.1.0.tar.gz", hash = "sha256:a83aca08fbe7aacb79fec788c9c0bac936343560ed9ec18b82a13a12c28d2abb"},
-]
-
-[package.dependencies]
-hpack = ">=4.0,<5"
-hyperframe = ">=6.0,<7"
-
-[[package]]
-name = "hpack"
-version = "4.0.0"
-description = "Pure-Python HPACK header compression"
-category = "dev"
-optional = false
-python-versions = ">=3.6.1"
-files = [
- {file = "hpack-4.0.0-py3-none-any.whl", hash = "sha256:84a076fad3dc9a9f8063ccb8041ef100867b1878b25ef0ee63847a5d53818a6c"},
- {file = "hpack-4.0.0.tar.gz", hash = "sha256:fc41de0c63e687ebffde81187a948221294896f6bdc0ae2312708df339430095"},
-]
-
[[package]]
name = "httpcore"
version = "0.16.3"
@@ -726,7 +710,7 @@ socks = ["socksio (>=1.0.0,<2.0.0)"]
name = "httptools"
version = "0.5.0"
description = "A collection of framework independent HTTP protocol utils."
-category = "dev"
+category = "main"
optional = false
python-versions = ">=3.5.0"
files = [
@@ -831,43 +815,6 @@ testing = ["InquirerPy (==0.3.4)", "Jinja2", "Pillow", "jedi", "pytest", "pytest
torch = ["torch"]
typing = ["types-PyYAML", "types-requests", "types-simplejson", "types-toml", "types-tqdm", "types-urllib3"]
-[[package]]
-name = "hypercorn"
-version = "0.14.3"
-description = "A ASGI Server based on Hyper libraries and inspired by Gunicorn"
-category = "dev"
-optional = false
-python-versions = ">=3.7"
-files = [
- {file = "Hypercorn-0.14.3-py3-none-any.whl", hash = "sha256:7c491d5184f28ee960dcdc14ab45d14633ca79d72ddd13cf4fcb4cb854d679ab"},
- {file = "Hypercorn-0.14.3.tar.gz", hash = "sha256:4a87a0b7bbe9dc75fab06dbe4b301b9b90416e9866c23a377df21a969d6ab8dd"},
-]
-
-[package.dependencies]
-h11 = "*"
-h2 = ">=3.1.0"
-priority = "*"
-toml = "*"
-wsproto = ">=0.14.0"
-
-[package.extras]
-docs = ["pydata_sphinx_theme"]
-h3 = ["aioquic (>=0.9.0,<1.0)"]
-trio = ["trio (>=0.11.0)"]
-uvloop = ["uvloop"]
-
-[[package]]
-name = "hyperframe"
-version = "6.0.1"
-description = "HTTP/2 framing layer for Python"
-category = "dev"
-optional = false
-python-versions = ">=3.6.1"
-files = [
- {file = "hyperframe-6.0.1-py3-none-any.whl", hash = "sha256:0ec6bafd80d8ad2195c4f03aacba3a8265e57bc4cff261e802bf39970ed02a15"},
- {file = "hyperframe-6.0.1.tar.gz", hash = "sha256:ae510046231dc8e9ecb1a6586f63d2347bf4c8905914aa84ba585ae85f28a914"},
-]
-
[[package]]
name = "idna"
version = "3.4"
@@ -1189,14 +1136,14 @@ files = [
[[package]]
name = "openai"
-version = "0.27.4"
+version = "0.27.6"
description = "Python client library for the OpenAI API"
category = "main"
optional = false
python-versions = ">=3.7.1"
files = [
- {file = "openai-0.27.4-py3-none-any.whl", hash = "sha256:3b82c867d531e1fd2003d9de2131e1c4bfd4c70b1a3149e0543a555b30807b70"},
- {file = "openai-0.27.4.tar.gz", hash = "sha256:9f9d27d26e62c6068f516c0729449954b5ef6994be1a6cbfe7dbefbc84423a04"},
+ {file = "openai-0.27.6-py3-none-any.whl", hash = "sha256:1f07ed06f1cfc6c25126107193726fe4cf476edcc4e1485cd9eb708f068f2606"},
+ {file = "openai-0.27.6.tar.gz", hash = "sha256:63ca9f6ac619daef8c1ddec6d987fe6aa1c87a9bfdce31ff253204d077222375"},
]
[package.dependencies]
@@ -1271,32 +1218,6 @@ httpx = ">=0.23.0,<0.24.0"
pydantic = ">=1.9.0,<2.0.0"
strenum = ">=0.4.9,<0.5.0"
-[[package]]
-name = "priority"
-version = "2.0.0"
-description = "A pure-Python implementation of the HTTP/2 priority tree"
-category = "dev"
-optional = false
-python-versions = ">=3.6.1"
-files = [
- {file = "priority-2.0.0-py3-none-any.whl", hash = "sha256:6f8eefce5f3ad59baf2c080a664037bb4725cd0a790d53d59ab4059288faf6aa"},
- {file = "priority-2.0.0.tar.gz", hash = "sha256:c965d54f1b8d0d0b19479db3924c7c36cf672dbf2aec92d43fbdaf4492ba18c0"},
-]
-
-[[package]]
-name = "pybars3"
-version = "0.9.7"
-description = "Handlebars.js templating for Python 3 and 2"
-category = "main"
-optional = false
-python-versions = "*"
-files = [
- {file = "pybars3-0.9.7.tar.gz", hash = "sha256:6ac847e905e53b9c5b936af112c910475e27bf767f79f4528c16f9af1ec0e252"},
-]
-
-[package.dependencies]
-PyMeta3 = ">=0.5.1"
-
[[package]]
name = "pydantic"
version = "1.10.7"
@@ -1350,17 +1271,6 @@ typing-extensions = ">=4.2.0"
dotenv = ["python-dotenv (>=0.10.4)"]
email = ["email-validator (>=1.0.3)"]
-[[package]]
-name = "pymeta3"
-version = "0.5.1"
-description = "Pattern-matching language based on OMeta for Python 3 and 2"
-category = "main"
-optional = false
-python-versions = "*"
-files = [
- {file = "PyMeta3-0.5.1.tar.gz", hash = "sha256:18bda326d9a9bbf587bfc0ee0bc96864964d78b067288bcf55d4d98681d05bcb"},
-]
-
[[package]]
name = "pytest"
version = "7.3.1"
@@ -1403,7 +1313,7 @@ six = ">=1.5"
name = "python-dotenv"
version = "1.0.0"
description = "Read key-value pairs from a .env file and set them as environment variables"
-category = "dev"
+category = "main"
optional = false
python-versions = ">=3.8"
files = [
@@ -1485,21 +1395,21 @@ dev = ["black", "mypy", "pytest", "responses", "ruff"]
[[package]]
name = "requests"
-version = "2.28.2"
+version = "2.30.0"
description = "Python HTTP for Humans."
category = "main"
optional = false
-python-versions = ">=3.7, <4"
+python-versions = ">=3.7"
files = [
- {file = "requests-2.28.2-py3-none-any.whl", hash = "sha256:64299f4909223da747622c030b781c0d7811e359c37124b4bd368fb8c6518baa"},
- {file = "requests-2.28.2.tar.gz", hash = "sha256:98b1b2782e3c6c4904938b84c0eb932721069dfdb9134313beff7c83c2df24bf"},
+ {file = "requests-2.30.0-py3-none-any.whl", hash = "sha256:10e94cc4f3121ee6da529d358cdaeaff2f1c409cd377dbc72b825852f2f7e294"},
+ {file = "requests-2.30.0.tar.gz", hash = "sha256:239d7d4458afcb28a692cdd298d87542235f4ca8d36d03a15bfc128a6559a2f4"},
]
[package.dependencies]
certifi = ">=2017.4.17"
charset-normalizer = ">=2,<4"
idna = ">=2.5,<4"
-urllib3 = ">=1.21.1,<1.27"
+urllib3 = ">=1.21.1,<3"
[package.extras]
socks = ["PySocks (>=1.5.6,!=1.5.7)"]
@@ -1566,53 +1476,53 @@ files = [
[[package]]
name = "sqlalchemy"
-version = "1.4.47"
+version = "1.4.48"
description = "Database Abstraction Library"
category = "main"
optional = false
python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,>=2.7"
files = [
- {file = "SQLAlchemy-1.4.47-cp27-cp27m-macosx_10_14_x86_64.whl", hash = "sha256:dcfb480bfc9e1fab726003ae00a6bfc67a29bad275b63a4e36d17fe7f13a624e"},
- {file = "SQLAlchemy-1.4.47-cp27-cp27m-manylinux_2_5_x86_64.manylinux1_x86_64.whl", hash = "sha256:28fda5a69d6182589892422c5a9b02a8fd1125787aab1d83f1392aa955bf8d0a"},
- {file = "SQLAlchemy-1.4.47-cp27-cp27m-win32.whl", hash = "sha256:45e799c1a41822eba6bee4e59b0e38764e1a1ee69873ab2889079865e9ea0e23"},
- {file = "SQLAlchemy-1.4.47-cp27-cp27m-win_amd64.whl", hash = "sha256:10edbb92a9ef611f01b086e271a9f6c1c3e5157c3b0c5ff62310fb2187acbd4a"},
- {file = "SQLAlchemy-1.4.47-cp27-cp27mu-manylinux_2_5_x86_64.manylinux1_x86_64.whl", hash = "sha256:7a4df53472c9030a8ddb1cce517757ba38a7a25699bbcabd57dcc8a5d53f324e"},
- {file = "SQLAlchemy-1.4.47-cp310-cp310-macosx_11_0_x86_64.whl", hash = "sha256:511d4abc823152dec49461209607bbfb2df60033c8c88a3f7c93293b8ecbb13d"},
- {file = "SQLAlchemy-1.4.47-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:dbe57f39f531c5d68d5594ea4613daa60aba33bb51a8cc42f96f17bbd6305e8d"},
- {file = "SQLAlchemy-1.4.47-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:ca8ab6748e3ec66afccd8b23ec2f92787a58d5353ce9624dccd770427ee67c82"},
- {file = "SQLAlchemy-1.4.47-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:299b5c5c060b9fbe51808d0d40d8475f7b3873317640b9b7617c7f988cf59fda"},
- {file = "SQLAlchemy-1.4.47-cp310-cp310-win32.whl", hash = "sha256:684e5c773222781775c7f77231f412633d8af22493bf35b7fa1029fdf8066d10"},
- {file = "SQLAlchemy-1.4.47-cp310-cp310-win_amd64.whl", hash = "sha256:2bba39b12b879c7b35cde18b6e14119c5f1a16bd064a48dd2ac62d21366a5e17"},
- {file = "SQLAlchemy-1.4.47-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:795b5b9db573d3ed61fae74285d57d396829e3157642794d3a8f72ec2a5c719b"},
- {file = "SQLAlchemy-1.4.47-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:989c62b96596b7938cbc032e39431e6c2d81b635034571d6a43a13920852fb65"},
- {file = "SQLAlchemy-1.4.47-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:e3b67bda733da1dcdccaf354e71ef01b46db483a4f6236450d3f9a61efdba35a"},
- {file = "SQLAlchemy-1.4.47-cp311-cp311-win32.whl", hash = "sha256:9a198f690ac12a3a807e03a5a45df6a30cd215935f237a46f4248faed62e69c8"},
- {file = "SQLAlchemy-1.4.47-cp311-cp311-win_amd64.whl", hash = "sha256:03be6f3cb66e69fb3a09b5ea89d77e4bc942f3bf84b207dba84666a26799c166"},
- {file = "SQLAlchemy-1.4.47-cp36-cp36m-macosx_10_14_x86_64.whl", hash = "sha256:16ee6fea316790980779268da47a9260d5dd665c96f225d28e7750b0bb2e2a04"},
- {file = "SQLAlchemy-1.4.47-cp36-cp36m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:557675e0befafa08d36d7a9284e8761c97490a248474d778373fb96b0d7fd8de"},
- {file = "SQLAlchemy-1.4.47-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:bb2797fee8a7914fb2c3dc7de404d3f96eb77f20fc60e9ee38dc6b0ca720f2c2"},
- {file = "SQLAlchemy-1.4.47-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:28297aa29e035f29cba6b16aacd3680fbc6a9db682258d5f2e7b49ec215dbe40"},
- {file = "SQLAlchemy-1.4.47-cp36-cp36m-win32.whl", hash = "sha256:998e782c8d9fd57fa8704d149ccd52acf03db30d7dd76f467fd21c1c21b414fa"},
- {file = "SQLAlchemy-1.4.47-cp36-cp36m-win_amd64.whl", hash = "sha256:dde4d02213f1deb49eaaf8be8a6425948963a7af84983b3f22772c63826944de"},
- {file = "SQLAlchemy-1.4.47-cp37-cp37m-macosx_10_15_x86_64.whl", hash = "sha256:e98ef1babe34f37f443b7211cd3ee004d9577a19766e2dbacf62fce73c76245a"},
- {file = "SQLAlchemy-1.4.47-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:14a3879853208a242b5913f3a17c6ac0eae9dc210ff99c8f10b19d4a1ed8ed9b"},
- {file = "SQLAlchemy-1.4.47-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:7120a2f72599d4fed7c001fa1cbbc5b4d14929436135768050e284f53e9fbe5e"},
- {file = "SQLAlchemy-1.4.47-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:048509d7f3ac27b83ad82fd96a1ab90a34c8e906e4e09c8d677fc531d12c23c5"},
- {file = "SQLAlchemy-1.4.47-cp37-cp37m-win32.whl", hash = "sha256:6572d7c96c2e3e126d0bb27bfb1d7e2a195b68d951fcc64c146b94f088e5421a"},
- {file = "SQLAlchemy-1.4.47-cp37-cp37m-win_amd64.whl", hash = "sha256:a6c3929df5eeaf3867724003d5c19fed3f0c290f3edc7911616616684f200ecf"},
- {file = "SQLAlchemy-1.4.47-cp38-cp38-macosx_10_15_x86_64.whl", hash = "sha256:71d4bf7768169c4502f6c2b0709a02a33703544f611810fb0c75406a9c576ee1"},
- {file = "SQLAlchemy-1.4.47-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:dd45c60cc4f6d68c30d5179e2c2c8098f7112983532897566bb69c47d87127d3"},
- {file = "SQLAlchemy-1.4.47-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:0fdbb8e9d4e9003f332a93d6a37bca48ba8095086c97a89826a136d8eddfc455"},
- {file = "SQLAlchemy-1.4.47-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:8f216a51451a0a0466e082e163591f6dcb2f9ec182adb3f1f4b1fd3688c7582c"},
- {file = "SQLAlchemy-1.4.47-cp38-cp38-win32.whl", hash = "sha256:bd988b3362d7e586ef581eb14771bbb48793a4edb6fcf62da75d3f0f3447060b"},
- {file = "SQLAlchemy-1.4.47-cp38-cp38-win_amd64.whl", hash = "sha256:32ab09f2863e3de51529aa84ff0e4fe89a2cb1bfbc11e225b6dbc60814e44c94"},
- {file = "SQLAlchemy-1.4.47-cp39-cp39-macosx_11_0_x86_64.whl", hash = "sha256:07764b240645627bc3e82596435bd1a1884646bfc0721642d24c26b12f1df194"},
- {file = "SQLAlchemy-1.4.47-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:1e2a42017984099ef6f56438a6b898ce0538f6fadddaa902870c5aa3e1d82583"},
- {file = "SQLAlchemy-1.4.47-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:6b6d807c76c20b4bc143a49ad47782228a2ac98bdcdcb069da54280e138847fc"},
- {file = "SQLAlchemy-1.4.47-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6a94632ba26a666e7be0a7d7cc3f7acab622a04259a3aa0ee50ff6d44ba9df0d"},
- {file = "SQLAlchemy-1.4.47-cp39-cp39-win32.whl", hash = "sha256:f80915681ea9001f19b65aee715115f2ad310730c8043127cf3e19b3009892dd"},
- {file = "SQLAlchemy-1.4.47-cp39-cp39-win_amd64.whl", hash = "sha256:fc700b862e0a859a37faf85367e205e7acaecae5a098794aff52fdd8aea77b12"},
- {file = "SQLAlchemy-1.4.47.tar.gz", hash = "sha256:95fc02f7fc1f3199aaa47a8a757437134cf618e9d994c84effd53f530c38586f"},
+ {file = "SQLAlchemy-1.4.48-cp27-cp27m-macosx_10_14_x86_64.whl", hash = "sha256:4bac3aa3c3d8bc7408097e6fe8bf983caa6e9491c5d2e2488cfcfd8106f13b6a"},
+ {file = "SQLAlchemy-1.4.48-cp27-cp27m-manylinux_2_5_x86_64.manylinux1_x86_64.whl", hash = "sha256:dbcae0e528d755f4522cad5842f0942e54b578d79f21a692c44d91352ea6d64e"},
+ {file = "SQLAlchemy-1.4.48-cp27-cp27m-win32.whl", hash = "sha256:cbbe8b8bffb199b225d2fe3804421b7b43a0d49983f81dc654d0431d2f855543"},
+ {file = "SQLAlchemy-1.4.48-cp27-cp27m-win_amd64.whl", hash = "sha256:627e04a5d54bd50628fc8734d5fc6df2a1aa5962f219c44aad50b00a6cdcf965"},
+ {file = "SQLAlchemy-1.4.48-cp27-cp27mu-manylinux_2_5_x86_64.manylinux1_x86_64.whl", hash = "sha256:9af1db7a287ef86e0f5cd990b38da6bd9328de739d17e8864f1817710da2d217"},
+ {file = "SQLAlchemy-1.4.48-cp310-cp310-macosx_11_0_x86_64.whl", hash = "sha256:ce7915eecc9c14a93b73f4e1c9d779ca43e955b43ddf1e21df154184f39748e5"},
+ {file = "SQLAlchemy-1.4.48-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:5381ddd09a99638f429f4cbe1b71b025bed318f6a7b23e11d65f3eed5e181c33"},
+ {file = "SQLAlchemy-1.4.48-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:87609f6d4e81a941a17e61a4c19fee57f795e96f834c4f0a30cee725fc3f81d9"},
+ {file = "SQLAlchemy-1.4.48-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:fb0808ad34167f394fea21bd4587fc62f3bd81bba232a1e7fbdfa17e6cfa7cd7"},
+ {file = "SQLAlchemy-1.4.48-cp310-cp310-win32.whl", hash = "sha256:d53cd8bc582da5c1c8c86b6acc4ef42e20985c57d0ebc906445989df566c5603"},
+ {file = "SQLAlchemy-1.4.48-cp310-cp310-win_amd64.whl", hash = "sha256:4355e5915844afdc5cf22ec29fba1010166e35dd94a21305f49020022167556b"},
+ {file = "SQLAlchemy-1.4.48-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:066c2b0413e8cb980e6d46bf9d35ca83be81c20af688fedaef01450b06e4aa5e"},
+ {file = "SQLAlchemy-1.4.48-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:c99bf13e07140601d111a7c6f1fc1519914dd4e5228315bbda255e08412f61a4"},
+ {file = "SQLAlchemy-1.4.48-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:2ee26276f12614d47cc07bc85490a70f559cba965fb178b1c45d46ffa8d73fda"},
+ {file = "SQLAlchemy-1.4.48-cp311-cp311-win32.whl", hash = "sha256:49c312bcff4728bffc6fb5e5318b8020ed5c8b958a06800f91859fe9633ca20e"},
+ {file = "SQLAlchemy-1.4.48-cp311-cp311-win_amd64.whl", hash = "sha256:cef2e2abc06eab187a533ec3e1067a71d7bbec69e582401afdf6d8cad4ba3515"},
+ {file = "SQLAlchemy-1.4.48-cp36-cp36m-macosx_10_14_x86_64.whl", hash = "sha256:3509159e050bd6d24189ec7af373359f07aed690db91909c131e5068176c5a5d"},
+ {file = "SQLAlchemy-1.4.48-cp36-cp36m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:2fc2ab4d9f6d9218a5caa4121bdcf1125303482a1cdcfcdbd8567be8518969c0"},
+ {file = "SQLAlchemy-1.4.48-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:e1ddbbcef9bcedaa370c03771ebec7e39e3944782bef49e69430383c376a250b"},
+ {file = "SQLAlchemy-1.4.48-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6f82d8efea1ca92b24f51d3aea1a82897ed2409868a0af04247c8c1e4fef5890"},
+ {file = "SQLAlchemy-1.4.48-cp36-cp36m-win32.whl", hash = "sha256:e3e98d4907805b07743b583a99ecc58bf8807ecb6985576d82d5e8ae103b5272"},
+ {file = "SQLAlchemy-1.4.48-cp36-cp36m-win_amd64.whl", hash = "sha256:25887b4f716e085a1c5162f130b852f84e18d2633942c8ca40dfb8519367c14f"},
+ {file = "SQLAlchemy-1.4.48-cp37-cp37m-macosx_10_15_x86_64.whl", hash = "sha256:0817c181271b0ce5df1aa20949f0a9e2426830fed5ecdcc8db449618f12c2730"},
+ {file = "SQLAlchemy-1.4.48-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:fe1dd2562313dd9fe1778ed56739ad5d9aae10f9f43d9f4cf81d65b0c85168bb"},
+ {file = "SQLAlchemy-1.4.48-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:68413aead943883b341b2b77acd7a7fe2377c34d82e64d1840860247cec7ff7c"},
+ {file = "SQLAlchemy-1.4.48-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:fbde5642104ac6e95f96e8ad6d18d9382aa20672008cf26068fe36f3004491df"},
+ {file = "SQLAlchemy-1.4.48-cp37-cp37m-win32.whl", hash = "sha256:11c6b1de720f816c22d6ad3bbfa2f026f89c7b78a5c4ffafb220e0183956a92a"},
+ {file = "SQLAlchemy-1.4.48-cp37-cp37m-win_amd64.whl", hash = "sha256:eb5464ee8d4bb6549d368b578e9529d3c43265007193597ddca71c1bae6174e6"},
+ {file = "SQLAlchemy-1.4.48-cp38-cp38-macosx_10_15_x86_64.whl", hash = "sha256:92e6133cf337c42bfee03ca08c62ba0f2d9695618c8abc14a564f47503157be9"},
+ {file = "SQLAlchemy-1.4.48-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:44d29a3fc6d9c45962476b470a81983dd8add6ad26fdbfae6d463b509d5adcda"},
+ {file = "SQLAlchemy-1.4.48-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:005e942b451cad5285015481ae4e557ff4154dde327840ba91b9ac379be3b6ce"},
+ {file = "SQLAlchemy-1.4.48-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:9c8cfe951ed074ba5e708ed29c45397a95c4143255b0d022c7c8331a75ae61f3"},
+ {file = "SQLAlchemy-1.4.48-cp38-cp38-win32.whl", hash = "sha256:2b9af65cc58726129d8414fc1a1a650dcdd594ba12e9c97909f1f57d48e393d3"},
+ {file = "SQLAlchemy-1.4.48-cp38-cp38-win_amd64.whl", hash = "sha256:2b562e9d1e59be7833edf28b0968f156683d57cabd2137d8121806f38a9d58f4"},
+ {file = "SQLAlchemy-1.4.48-cp39-cp39-macosx_11_0_x86_64.whl", hash = "sha256:a1fc046756cf2a37d7277c93278566ddf8be135c6a58397b4c940abf837011f4"},
+ {file = "SQLAlchemy-1.4.48-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:9d9b55252d2ca42a09bcd10a697fa041e696def9dfab0b78c0aaea1485551a08"},
+ {file = "SQLAlchemy-1.4.48-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:6dab89874e72a9ab5462997846d4c760cdb957958be27b03b49cf0de5e5c327c"},
+ {file = "SQLAlchemy-1.4.48-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:1fd8b5ee5a3acc4371f820934b36f8109ce604ee73cc668c724abb054cebcb6e"},
+ {file = "SQLAlchemy-1.4.48-cp39-cp39-win32.whl", hash = "sha256:eee09350fd538e29cfe3a496ec6f148504d2da40dbf52adefb0d2f8e4d38ccc4"},
+ {file = "SQLAlchemy-1.4.48-cp39-cp39-win_amd64.whl", hash = "sha256:7ad2b0f6520ed5038e795cc2852eb5c1f20fa6831d73301ced4aafbe3a10e1f6"},
+ {file = "SQLAlchemy-1.4.48.tar.gz", hash = "sha256:b47bc287096d989a0838ce96f7d8e966914a24da877ed41a7531d44b55cdb8df"},
]
[package.dependencies]
@@ -1744,18 +1654,6 @@ dev = ["black (==22.3)", "datasets", "numpy", "pytest", "requests"]
docs = ["setuptools-rust", "sphinx", "sphinx-rtd-theme"]
testing = ["black (==22.3)", "datasets", "numpy", "pytest", "requests"]
-[[package]]
-name = "toml"
-version = "0.10.2"
-description = "Python Library for Tom's Obvious, Minimal Language"
-category = "dev"
-optional = false
-python-versions = ">=2.6, !=3.0.*, !=3.1.*, !=3.2.*"
-files = [
- {file = "toml-0.10.2-py2.py3-none-any.whl", hash = "sha256:806143ae5bfb6a3c6e736a764057db0e6a0e05e338b5630894a5f779cabb4f9b"},
- {file = "toml-0.10.2.tar.gz", hash = "sha256:b3bda1d108d5dd99f4a20d24d9c348e91c4db7ab1b749200bded2f839ccbe68f"},
-]
-
[[package]]
name = "tomli"
version = "2.0.1"
@@ -1836,14 +1734,14 @@ socks = ["PySocks (>=1.5.6,!=1.5.7,<2.0)"]
[[package]]
name = "uvicorn"
-version = "0.21.1"
+version = "0.22.0"
description = "The lightning-fast ASGI server."
-category = "dev"
+category = "main"
optional = false
python-versions = ">=3.7"
files = [
- {file = "uvicorn-0.21.1-py3-none-any.whl", hash = "sha256:e47cac98a6da10cd41e6fd036d472c6f58ede6c5dbee3dbee3ef7a100ed97742"},
- {file = "uvicorn-0.21.1.tar.gz", hash = "sha256:0fac9cb342ba099e0d582966005f3fdba5b0290579fed4a6266dc702ca7bb032"},
+ {file = "uvicorn-0.22.0-py3-none-any.whl", hash = "sha256:e9434d3bbf05f310e762147f769c9f21235ee118ba2d2bf1155a7196448bd996"},
+ {file = "uvicorn-0.22.0.tar.gz", hash = "sha256:79277ae03db57ce7d9aa0567830bbb51d7a612f54d6e1e3e92da3ef24c2c8ed8"},
]
[package.dependencies]
@@ -1864,7 +1762,7 @@ standard = ["colorama (>=0.4)", "httptools (>=0.5.0)", "python-dotenv (>=0.13)",
name = "uvloop"
version = "0.17.0"
description = "Fast implementation of asyncio event loop on top of libuv"
-category = "dev"
+category = "main"
optional = false
python-versions = ">=3.7"
files = [
@@ -1909,7 +1807,7 @@ test = ["Cython (>=0.29.32,<0.30.0)", "aiohttp", "flake8 (>=3.9.2,<3.10.0)", "my
name = "watchfiles"
version = "0.19.0"
description = "Simple, modern and high performance file watching and code reload in python."
-category = "dev"
+category = "main"
optional = false
python-versions = ">=3.7"
files = [
@@ -1942,180 +1840,166 @@ anyio = ">=3.0.0"
[[package]]
name = "websockets"
-version = "10.4"
+version = "11.0.2"
description = "An implementation of the WebSocket Protocol (RFC 6455 & 7692)"
-category = "dev"
+category = "main"
optional = false
python-versions = ">=3.7"
files = [
- {file = "websockets-10.4-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:d58804e996d7d2307173d56c297cf7bc132c52df27a3efaac5e8d43e36c21c48"},
- {file = "websockets-10.4-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:bc0b82d728fe21a0d03e65f81980abbbcb13b5387f733a1a870672c5be26edab"},
- {file = "websockets-10.4-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:ba089c499e1f4155d2a3c2a05d2878a3428cf321c848f2b5a45ce55f0d7d310c"},
- {file = "websockets-10.4-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:33d69ca7612f0ddff3316b0c7b33ca180d464ecac2d115805c044bf0a3b0d032"},
- {file = "websockets-10.4-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:62e627f6b6d4aed919a2052efc408da7a545c606268d5ab5bfab4432734b82b4"},
- {file = "websockets-10.4-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:38ea7b82bfcae927eeffc55d2ffa31665dc7fec7b8dc654506b8e5a518eb4d50"},
- {file = "websockets-10.4-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:e0cb5cc6ece6ffa75baccfd5c02cffe776f3f5c8bf486811f9d3ea3453676ce8"},
- {file = "websockets-10.4-cp310-cp310-musllinux_1_1_i686.whl", hash = "sha256:ae5e95cfb53ab1da62185e23b3130e11d64431179debac6dc3c6acf08760e9b1"},
- {file = "websockets-10.4-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:7c584f366f46ba667cfa66020344886cf47088e79c9b9d39c84ce9ea98aaa331"},
- {file = "websockets-10.4-cp310-cp310-win32.whl", hash = "sha256:b029fb2032ae4724d8ae8d4f6b363f2cc39e4c7b12454df8df7f0f563ed3e61a"},
- {file = "websockets-10.4-cp310-cp310-win_amd64.whl", hash = "sha256:8dc96f64ae43dde92530775e9cb169979f414dcf5cff670455d81a6823b42089"},
- {file = "websockets-10.4-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:47a2964021f2110116cc1125b3e6d87ab5ad16dea161949e7244ec583b905bb4"},
- {file = "websockets-10.4-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:e789376b52c295c4946403bd0efecf27ab98f05319df4583d3c48e43c7342c2f"},
- {file = "websockets-10.4-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:7d3f0b61c45c3fa9a349cf484962c559a8a1d80dae6977276df8fd1fa5e3cb8c"},
- {file = "websockets-10.4-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:f55b5905705725af31ccef50e55391621532cd64fbf0bc6f4bac935f0fccec46"},
- {file = "websockets-10.4-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:00c870522cdb69cd625b93f002961ffb0c095394f06ba8c48f17eef7c1541f96"},
- {file = "websockets-10.4-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:8f38706e0b15d3c20ef6259fd4bc1700cd133b06c3c1bb108ffe3f8947be15fa"},
- {file = "websockets-10.4-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:f2c38d588887a609191d30e902df2a32711f708abfd85d318ca9b367258cfd0c"},
- {file = "websockets-10.4-cp311-cp311-musllinux_1_1_i686.whl", hash = "sha256:fe10ddc59b304cb19a1bdf5bd0a7719cbbc9fbdd57ac80ed436b709fcf889106"},
- {file = "websockets-10.4-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:90fcf8929836d4a0e964d799a58823547df5a5e9afa83081761630553be731f9"},
- {file = "websockets-10.4-cp311-cp311-win32.whl", hash = "sha256:b9968694c5f467bf67ef97ae7ad4d56d14be2751000c1207d31bf3bb8860bae8"},
- {file = "websockets-10.4-cp311-cp311-win_amd64.whl", hash = "sha256:a7a240d7a74bf8d5cb3bfe6be7f21697a28ec4b1a437607bae08ac7acf5b4882"},
- {file = "websockets-10.4-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:74de2b894b47f1d21cbd0b37a5e2b2392ad95d17ae983e64727e18eb281fe7cb"},
- {file = "websockets-10.4-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:e3a686ecb4aa0d64ae60c9c9f1a7d5d46cab9bfb5d91a2d303d00e2cd4c4c5cc"},
- {file = "websockets-10.4-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:b0d15c968ea7a65211e084f523151dbf8ae44634de03c801b8bd070b74e85033"},
- {file = "websockets-10.4-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:00213676a2e46b6ebf6045bc11d0f529d9120baa6f58d122b4021ad92adabd41"},
- {file = "websockets-10.4-cp37-cp37m-musllinux_1_1_aarch64.whl", hash = "sha256:e23173580d740bf8822fd0379e4bf30aa1d5a92a4f252d34e893070c081050df"},
- {file = "websockets-10.4-cp37-cp37m-musllinux_1_1_i686.whl", hash = "sha256:dd500e0a5e11969cdd3320935ca2ff1e936f2358f9c2e61f100a1660933320ea"},
- {file = "websockets-10.4-cp37-cp37m-musllinux_1_1_x86_64.whl", hash = "sha256:4239b6027e3d66a89446908ff3027d2737afc1a375f8fd3eea630a4842ec9a0c"},
- {file = "websockets-10.4-cp37-cp37m-win32.whl", hash = "sha256:8a5cc00546e0a701da4639aa0bbcb0ae2bb678c87f46da01ac2d789e1f2d2038"},
- {file = "websockets-10.4-cp37-cp37m-win_amd64.whl", hash = "sha256:a9f9a735deaf9a0cadc2d8c50d1a5bcdbae8b6e539c6e08237bc4082d7c13f28"},
- {file = "websockets-10.4-cp38-cp38-macosx_10_9_universal2.whl", hash = "sha256:5c1289596042fad2cdceb05e1ebf7aadf9995c928e0da2b7a4e99494953b1b94"},
- {file = "websockets-10.4-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:0cff816f51fb33c26d6e2b16b5c7d48eaa31dae5488ace6aae468b361f422b63"},
- {file = "websockets-10.4-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:dd9becd5fe29773d140d68d607d66a38f60e31b86df75332703757ee645b6faf"},
- {file = "websockets-10.4-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:45ec8e75b7dbc9539cbfafa570742fe4f676eb8b0d3694b67dabe2f2ceed8aa6"},
- {file = "websockets-10.4-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:4f72e5cd0f18f262f5da20efa9e241699e0cf3a766317a17392550c9ad7b37d8"},
- {file = "websockets-10.4-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:185929b4808b36a79c65b7865783b87b6841e852ef5407a2fb0c03381092fa3b"},
- {file = "websockets-10.4-cp38-cp38-musllinux_1_1_aarch64.whl", hash = "sha256:7d27a7e34c313b3a7f91adcd05134315002aaf8540d7b4f90336beafaea6217c"},
- {file = "websockets-10.4-cp38-cp38-musllinux_1_1_i686.whl", hash = "sha256:884be66c76a444c59f801ac13f40c76f176f1bfa815ef5b8ed44321e74f1600b"},
- {file = "websockets-10.4-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:931c039af54fc195fe6ad536fde4b0de04da9d5916e78e55405436348cfb0e56"},
- {file = "websockets-10.4-cp38-cp38-win32.whl", hash = "sha256:db3c336f9eda2532ec0fd8ea49fef7a8df8f6c804cdf4f39e5c5c0d4a4ad9a7a"},
- {file = "websockets-10.4-cp38-cp38-win_amd64.whl", hash = "sha256:48c08473563323f9c9debac781ecf66f94ad5a3680a38fe84dee5388cf5acaf6"},
- {file = "websockets-10.4-cp39-cp39-macosx_10_9_universal2.whl", hash = "sha256:40e826de3085721dabc7cf9bfd41682dadc02286d8cf149b3ad05bff89311e4f"},
- {file = "websockets-10.4-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:56029457f219ade1f2fc12a6504ea61e14ee227a815531f9738e41203a429112"},
- {file = "websockets-10.4-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:f5fc088b7a32f244c519a048c170f14cf2251b849ef0e20cbbb0fdf0fdaf556f"},
- {file = "websockets-10.4-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:2fc8709c00704194213d45e455adc106ff9e87658297f72d544220e32029cd3d"},
- {file = "websockets-10.4-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:0154f7691e4fe6c2b2bc275b5701e8b158dae92a1ab229e2b940efe11905dff4"},
- {file = "websockets-10.4-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:4c6d2264f485f0b53adf22697ac11e261ce84805c232ed5dbe6b1bcb84b00ff0"},
- {file = "websockets-10.4-cp39-cp39-musllinux_1_1_aarch64.whl", hash = "sha256:9bc42e8402dc5e9905fb8b9649f57efcb2056693b7e88faa8fb029256ba9c68c"},
- {file = "websockets-10.4-cp39-cp39-musllinux_1_1_i686.whl", hash = "sha256:edc344de4dac1d89300a053ac973299e82d3db56330f3494905643bb68801269"},
- {file = "websockets-10.4-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:84bc2a7d075f32f6ed98652db3a680a17a4edb21ca7f80fe42e38753a58ee02b"},
- {file = "websockets-10.4-cp39-cp39-win32.whl", hash = "sha256:c94ae4faf2d09f7c81847c63843f84fe47bf6253c9d60b20f25edfd30fb12588"},
- {file = "websockets-10.4-cp39-cp39-win_amd64.whl", hash = "sha256:bbccd847aa0c3a69b5f691a84d2341a4f8a629c6922558f2a70611305f902d74"},
- {file = "websockets-10.4-pp37-pypy37_pp73-macosx_10_9_x86_64.whl", hash = "sha256:82ff5e1cae4e855147fd57a2863376ed7454134c2bf49ec604dfe71e446e2193"},
- {file = "websockets-10.4-pp37-pypy37_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:d210abe51b5da0ffdbf7b43eed0cfdff8a55a1ab17abbec4301c9ff077dd0342"},
- {file = "websockets-10.4-pp37-pypy37_pp73-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:942de28af58f352a6f588bc72490ae0f4ccd6dfc2bd3de5945b882a078e4e179"},
- {file = "websockets-10.4-pp37-pypy37_pp73-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:c9b27d6c1c6cd53dc93614967e9ce00ae7f864a2d9f99fe5ed86706e1ecbf485"},
- {file = "websockets-10.4-pp37-pypy37_pp73-win_amd64.whl", hash = "sha256:3d3cac3e32b2c8414f4f87c1b2ab686fa6284a980ba283617404377cd448f631"},
- {file = "websockets-10.4-pp38-pypy38_pp73-macosx_10_9_x86_64.whl", hash = "sha256:da39dd03d130162deb63da51f6e66ed73032ae62e74aaccc4236e30edccddbb0"},
- {file = "websockets-10.4-pp38-pypy38_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:389f8dbb5c489e305fb113ca1b6bdcdaa130923f77485db5b189de343a179393"},
- {file = "websockets-10.4-pp38-pypy38_pp73-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:09a1814bb15eff7069e51fed0826df0bc0702652b5cb8f87697d469d79c23576"},
- {file = "websockets-10.4-pp38-pypy38_pp73-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:ff64a1d38d156d429404aaa84b27305e957fd10c30e5880d1765c9480bea490f"},
- {file = "websockets-10.4-pp38-pypy38_pp73-win_amd64.whl", hash = "sha256:b343f521b047493dc4022dd338fc6db9d9282658862756b4f6fd0e996c1380e1"},
- {file = "websockets-10.4-pp39-pypy39_pp73-macosx_10_9_x86_64.whl", hash = "sha256:932af322458da7e4e35df32f050389e13d3d96b09d274b22a7aa1808f292fee4"},
- {file = "websockets-10.4-pp39-pypy39_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:d6a4162139374a49eb18ef5b2f4da1dd95c994588f5033d64e0bbfda4b6b6fcf"},
- {file = "websockets-10.4-pp39-pypy39_pp73-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:c57e4c1349fbe0e446c9fa7b19ed2f8a4417233b6984277cce392819123142d3"},
- {file = "websockets-10.4-pp39-pypy39_pp73-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:b627c266f295de9dea86bd1112ed3d5fafb69a348af30a2422e16590a8ecba13"},
- {file = "websockets-10.4-pp39-pypy39_pp73-win_amd64.whl", hash = "sha256:05a7233089f8bd355e8cbe127c2e8ca0b4ea55467861906b80d2ebc7db4d6b72"},
- {file = "websockets-10.4.tar.gz", hash = "sha256:eef610b23933c54d5d921c92578ae5f89813438fded840c2e9809d378dc765d3"},
-]
-
-[[package]]
-name = "wsproto"
-version = "1.2.0"
-description = "WebSockets state-machine based protocol implementation"
-category = "dev"
-optional = false
-python-versions = ">=3.7.0"
-files = [
- {file = "wsproto-1.2.0-py3-none-any.whl", hash = "sha256:b9acddd652b585d75b20477888c56642fdade28bdfd3579aa24a4d2c037dd736"},
- {file = "wsproto-1.2.0.tar.gz", hash = "sha256:ad565f26ecb92588a3e43bc3d96164de84cd9902482b130d0ddbaa9664a85065"},
+ {file = "websockets-11.0.2-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:580cc95c58118f8c39106be71e24d0b7e1ad11a155f40a2ee687f99b3e5e432e"},
+ {file = "websockets-11.0.2-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:143782041e95b63083b02107f31cda999f392903ae331de1307441f3a4557d51"},
+ {file = "websockets-11.0.2-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:8df63dcd955eb6b2e371d95aacf8b7c535e482192cff1b6ce927d8f43fb4f552"},
+ {file = "websockets-11.0.2-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ca9b2dced5cbbc5094678cc1ec62160f7b0fe4defd601cd28a36fde7ee71bbb5"},
+ {file = "websockets-11.0.2-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:e0eeeea3b01c97fd3b5049a46c908823f68b59bf0e18d79b231d8d6764bc81ee"},
+ {file = "websockets-11.0.2-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:502683c5dedfc94b9f0f6790efb26aa0591526e8403ad443dce922cd6c0ec83b"},
+ {file = "websockets-11.0.2-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:d3cc3e48b6c9f7df8c3798004b9c4b92abca09eeea5e1b0a39698f05b7a33b9d"},
+ {file = "websockets-11.0.2-cp310-cp310-musllinux_1_1_i686.whl", hash = "sha256:808b8a33c961bbd6d33c55908f7c137569b09ea7dd024bce969969aa04ecf07c"},
+ {file = "websockets-11.0.2-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:34a6f8996964ccaa40da42ee36aa1572adcb1e213665e24aa2f1037da6080909"},
+ {file = "websockets-11.0.2-cp310-cp310-win32.whl", hash = "sha256:8f24cd758cbe1607a91b720537685b64e4d39415649cac9177cd1257317cf30c"},
+ {file = "websockets-11.0.2-cp310-cp310-win_amd64.whl", hash = "sha256:3b87cd302f08ea9e74fdc080470eddbed1e165113c1823fb3ee6328bc40ca1d3"},
+ {file = "websockets-11.0.2-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:3565a8f8c7bdde7c29ebe46146bd191290413ee6f8e94cf350609720c075b0a1"},
+ {file = "websockets-11.0.2-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:f97e03d4d5a4f0dca739ea274be9092822f7430b77d25aa02da6775e490f6846"},
+ {file = "websockets-11.0.2-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:8f392587eb2767afa8a34e909f2fec779f90b630622adc95d8b5e26ea8823cb8"},
+ {file = "websockets-11.0.2-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:7742cd4524622cc7aa71734b51294644492a961243c4fe67874971c4d3045982"},
+ {file = "websockets-11.0.2-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:46dda4bc2030c335abe192b94e98686615f9274f6b56f32f2dd661fb303d9d12"},
+ {file = "websockets-11.0.2-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:d6b2bfa1d884c254b841b0ff79373b6b80779088df6704f034858e4d705a4802"},
+ {file = "websockets-11.0.2-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:1df2413266bf48430ef2a752c49b93086c6bf192d708e4a9920544c74cd2baa6"},
+ {file = "websockets-11.0.2-cp311-cp311-musllinux_1_1_i686.whl", hash = "sha256:cf45d273202b0c1cec0f03a7972c655b93611f2e996669667414557230a87b88"},
+ {file = "websockets-11.0.2-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:3a09cce3dacb6ad638fdfa3154d9e54a98efe7c8f68f000e55ca9c716496ca67"},
+ {file = "websockets-11.0.2-cp311-cp311-win32.whl", hash = "sha256:2174a75d579d811279855df5824676d851a69f52852edb0e7551e0eeac6f59a4"},
+ {file = "websockets-11.0.2-cp311-cp311-win_amd64.whl", hash = "sha256:c78ca3037a954a4209b9f900e0eabbc471fb4ebe96914016281df2c974a93e3e"},
+ {file = "websockets-11.0.2-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:3a2100b02d1aaf66dc48ff1b2a72f34f6ebc575a02bc0350cc8e9fbb35940166"},
+ {file = "websockets-11.0.2-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:dca9708eea9f9ed300394d4775beb2667288e998eb6f542cdb6c02027430c599"},
+ {file = "websockets-11.0.2-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:320ddceefd2364d4afe6576195201a3632a6f2e6d207b0c01333e965b22dbc84"},
+ {file = "websockets-11.0.2-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:b2a573c8d71b7af937852b61e7ccb37151d719974146b5dc734aad350ef55a02"},
+ {file = "websockets-11.0.2-cp37-cp37m-musllinux_1_1_aarch64.whl", hash = "sha256:13bd5bebcd16a4b5e403061b8b9dcc5c77e7a71e3c57e072d8dff23e33f70fba"},
+ {file = "websockets-11.0.2-cp37-cp37m-musllinux_1_1_i686.whl", hash = "sha256:95c09427c1c57206fe04277bf871b396476d5a8857fa1b99703283ee497c7a5d"},
+ {file = "websockets-11.0.2-cp37-cp37m-musllinux_1_1_x86_64.whl", hash = "sha256:2eb042734e710d39e9bc58deab23a65bd2750e161436101488f8af92f183c239"},
+ {file = "websockets-11.0.2-cp37-cp37m-win32.whl", hash = "sha256:5875f623a10b9ba154cb61967f940ab469039f0b5e61c80dd153a65f024d9fb7"},
+ {file = "websockets-11.0.2-cp37-cp37m-win_amd64.whl", hash = "sha256:634239bc844131863762865b75211a913c536817c0da27f691400d49d256df1d"},
+ {file = "websockets-11.0.2-cp38-cp38-macosx_10_9_universal2.whl", hash = "sha256:3178d965ec204773ab67985a09f5696ca6c3869afeed0bb51703ea404a24e975"},
+ {file = "websockets-11.0.2-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:955fcdb304833df2e172ce2492b7b47b4aab5dcc035a10e093d911a1916f2c87"},
+ {file = "websockets-11.0.2-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:cb46d2c7631b2e6f10f7c8bac7854f7c5e5288f024f1c137d4633c79ead1e3c0"},
+ {file = "websockets-11.0.2-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:25aae96c1060e85836552a113495db6d857400288161299d77b7b20f2ac569f2"},
+ {file = "websockets-11.0.2-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:2abeeae63154b7f63d9f764685b2d299e9141171b8b896688bd8baec6b3e2303"},
+ {file = "websockets-11.0.2-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:daa1e8ea47507555ed7a34f8b49398d33dff5b8548eae3de1dc0ef0607273a33"},
+ {file = "websockets-11.0.2-cp38-cp38-musllinux_1_1_aarch64.whl", hash = "sha256:954eb789c960fa5daaed3cfe336abc066941a5d456ff6be8f0e03dd89886bb4c"},
+ {file = "websockets-11.0.2-cp38-cp38-musllinux_1_1_i686.whl", hash = "sha256:3ffe251a31f37e65b9b9aca5d2d67fd091c234e530f13d9dce4a67959d5a3fba"},
+ {file = "websockets-11.0.2-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:adf6385f677ed2e0b021845b36f55c43f171dab3a9ee0ace94da67302f1bc364"},
+ {file = "websockets-11.0.2-cp38-cp38-win32.whl", hash = "sha256:aa7b33c1fb2f7b7b9820f93a5d61ffd47f5a91711bc5fa4583bbe0c0601ec0b2"},
+ {file = "websockets-11.0.2-cp38-cp38-win_amd64.whl", hash = "sha256:220d5b93764dd70d7617f1663da64256df7e7ea31fc66bc52c0e3750ee134ae3"},
+ {file = "websockets-11.0.2-cp39-cp39-macosx_10_9_universal2.whl", hash = "sha256:0fb4480556825e4e6bf2eebdbeb130d9474c62705100c90e59f2f56459ddab42"},
+ {file = "websockets-11.0.2-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:ec00401846569aaf018700249996143f567d50050c5b7b650148989f956547af"},
+ {file = "websockets-11.0.2-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:87c69f50281126dcdaccd64d951fb57fbce272578d24efc59bce72cf264725d0"},
+ {file = "websockets-11.0.2-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:232b6ba974f5d09b1b747ac232f3a3d8f86de401d7b565e837cc86988edf37ac"},
+ {file = "websockets-11.0.2-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:392d409178db1e46d1055e51cc850136d302434e12d412a555e5291ab810f622"},
+ {file = "websockets-11.0.2-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:a4fe2442091ff71dee0769a10449420fd5d3b606c590f78dd2b97d94b7455640"},
+ {file = "websockets-11.0.2-cp39-cp39-musllinux_1_1_aarch64.whl", hash = "sha256:ede13a6998ba2568b21825809d96e69a38dc43184bdeebbde3699c8baa21d015"},
+ {file = "websockets-11.0.2-cp39-cp39-musllinux_1_1_i686.whl", hash = "sha256:4c54086b2d2aec3c3cb887ad97e9c02c6be9f1d48381c7419a4aa932d31661e4"},
+ {file = "websockets-11.0.2-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:e37a76ccd483a6457580077d43bc3dfe1fd784ecb2151fcb9d1c73f424deaeba"},
+ {file = "websockets-11.0.2-cp39-cp39-win32.whl", hash = "sha256:d1881518b488a920434a271a6e8a5c9481a67c4f6352ebbdd249b789c0467ddc"},
+ {file = "websockets-11.0.2-cp39-cp39-win_amd64.whl", hash = "sha256:25e265686ea385f22a00cc2b719b880797cd1bb53b46dbde969e554fb458bfde"},
+ {file = "websockets-11.0.2-pp37-pypy37_pp73-macosx_10_9_x86_64.whl", hash = "sha256:ce69f5c742eefd039dce8622e99d811ef2135b69d10f9aa79fbf2fdcc1e56cd7"},
+ {file = "websockets-11.0.2-pp37-pypy37_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:b985ba2b9e972cf99ddffc07df1a314b893095f62c75bc7c5354a9c4647c6503"},
+ {file = "websockets-11.0.2-pp37-pypy37_pp73-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:1b52def56d2a26e0e9c464f90cadb7e628e04f67b0ff3a76a4d9a18dfc35e3dd"},
+ {file = "websockets-11.0.2-pp37-pypy37_pp73-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:d70a438ef2a22a581d65ad7648e949d4ccd20e3c8ed7a90bbc46df4e60320891"},
+ {file = "websockets-11.0.2-pp37-pypy37_pp73-win_amd64.whl", hash = "sha256:752fbf420c71416fb1472fec1b4cb8631c1aa2be7149e0a5ba7e5771d75d2bb9"},
+ {file = "websockets-11.0.2-pp38-pypy38_pp73-macosx_10_9_x86_64.whl", hash = "sha256:dd906b0cdc417ea7a5f13bb3c6ca3b5fd563338dc596996cb0fdd7872d691c0a"},
+ {file = "websockets-11.0.2-pp38-pypy38_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:3e79065ff6549dd3c765e7916067e12a9c91df2affea0ac51bcd302aaf7ad207"},
+ {file = "websockets-11.0.2-pp38-pypy38_pp73-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:46388a050d9e40316e58a3f0838c63caacb72f94129eb621a659a6e49bad27ce"},
+ {file = "websockets-11.0.2-pp38-pypy38_pp73-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:5c7de298371d913824f71b30f7685bb07ad13969c79679cca5b1f7f94fec012f"},
+ {file = "websockets-11.0.2-pp38-pypy38_pp73-win_amd64.whl", hash = "sha256:6d872c972c87c393e6a49c1afbdc596432df8c06d0ff7cd05aa18e885e7cfb7c"},
+ {file = "websockets-11.0.2-pp39-pypy39_pp73-macosx_10_9_x86_64.whl", hash = "sha256:b444366b605d2885f0034dd889faf91b4b47668dd125591e2c64bfde611ac7e1"},
+ {file = "websockets-11.0.2-pp39-pypy39_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:e8b967a4849db6b567dec3f7dd5d97b15ce653e3497b8ce0814e470d5e074750"},
+ {file = "websockets-11.0.2-pp39-pypy39_pp73-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:2acdc82099999e44fa7bd8c886f03c70a22b1d53ae74252f389be30d64fd6004"},
+ {file = "websockets-11.0.2-pp39-pypy39_pp73-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:518ed6782d9916c5721ebd61bb7651d244178b74399028302c8617d0620af291"},
+ {file = "websockets-11.0.2-pp39-pypy39_pp73-win_amd64.whl", hash = "sha256:58477b041099bb504e1a5ddd8aa86302ed1d5c6995bdd3db2b3084ef0135d277"},
+ {file = "websockets-11.0.2-py3-none-any.whl", hash = "sha256:5004c087d17251938a52cce21b3dbdabeecbbe432ce3f5bbbf15d8692c36eac9"},
+ {file = "websockets-11.0.2.tar.gz", hash = "sha256:b1a69701eb98ed83dd099de4a686dc892c413d974fa31602bc00aca7cb988ac9"},
]
-[package.dependencies]
-h11 = ">=0.9.0,<1"
-
[[package]]
name = "yarl"
-version = "1.9.1"
+version = "1.9.2"
description = "Yet another URL library"
category = "main"
optional = false
python-versions = ">=3.7"
files = [
- {file = "yarl-1.9.1-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:e124b283a04cc06d22443cae536f93d86cd55108fa369f22b8fe1f2288b2fe1c"},
- {file = "yarl-1.9.1-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:56956b13ec275de31fe4fb991510b735c4fb3e1b01600528c952b9ac90464430"},
- {file = "yarl-1.9.1-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:ecaa5755a39f6f26079bf13f336c67af589c222d76b53cd3824d3b684b84d1f1"},
- {file = "yarl-1.9.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:92a101f6d5a9464e86092adc36cd40ef23d18a25bfb1eb32eaeb62edc22776bb"},
- {file = "yarl-1.9.1-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:92e37999e36f9f3ded78e9d839face6baa2abdf9344ea8ed2735f495736159de"},
- {file = "yarl-1.9.1-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:ef7e2f6c47c41e234600a02e1356b799761485834fe35d4706b0094cb3a587ee"},
- {file = "yarl-1.9.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:1d7a0075a55380b19aa43b9e8056e128b058460d71d75018a4f9d60ace01e78c"},
- {file = "yarl-1.9.1-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:e2f01351b7809182822b21061d2a4728b7b9e08f4585ba90ee4c5c4d3faa0812"},
- {file = "yarl-1.9.1-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:6cf47fe9df9b1ededc77e492581cdb6890a975ad96b4172e1834f1b8ba0fc3ba"},
- {file = "yarl-1.9.1-cp310-cp310-musllinux_1_1_i686.whl", hash = "sha256:098bdc06ffb4db39c73883325b8c738610199f5f12e85339afedf07e912a39af"},
- {file = "yarl-1.9.1-cp310-cp310-musllinux_1_1_ppc64le.whl", hash = "sha256:6cdb47cbbacae8e1d7941b0d504d0235d686090eef5212ca2450525905e9cf02"},
- {file = "yarl-1.9.1-cp310-cp310-musllinux_1_1_s390x.whl", hash = "sha256:73a4b46689f2d59c8ec6b71c9a0cdced4e7863dd6eb98a8c30ea610e191f9e1c"},
- {file = "yarl-1.9.1-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:65d952e464df950eed32bb5dcbc1b4443c7c2de4d7abd7265b45b1b3b27f5fa2"},
- {file = "yarl-1.9.1-cp310-cp310-win32.whl", hash = "sha256:39a7a9108e9fc633ae381562f8f0355bb4ba00355218b5fb19cf5263fcdbfa68"},
- {file = "yarl-1.9.1-cp310-cp310-win_amd64.whl", hash = "sha256:b63d41e0eecf3e3070d44f97456cf351fff7cb960e97ecb60a936b877ff0b4f6"},
- {file = "yarl-1.9.1-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:4295790981630c4dab9d6de7b0f555a4c8defe3ed7704a8e9e595a321e59a0f5"},
- {file = "yarl-1.9.1-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:b2b2382d59dec0f1fdca18ea429c4c4cee280d5e0dbc841180abb82e188cf6e9"},
- {file = "yarl-1.9.1-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:575975d28795a61e82c85f114c02333ca54cbd325fd4e4b27598c9832aa732e7"},
- {file = "yarl-1.9.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:9bb794882818fae20ff65348985fdf143ea6dfaf6413814db1848120db8be33e"},
- {file = "yarl-1.9.1-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:89da1fd6068553e3a333011cc17ad91c414b2100c32579ddb51517edc768b49c"},
- {file = "yarl-1.9.1-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:4d817593d345fefda2fae877accc8a0d9f47ada57086da6125fa02a62f6d1a94"},
- {file = "yarl-1.9.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:85aa6fd779e194901386709e0eedd45710b68af2709f82a84839c44314b68c10"},
- {file = "yarl-1.9.1-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:eed9827033b7f67ad12cb70bd0cb59d36029144a7906694317c2dbf5c9eb5ddd"},
- {file = "yarl-1.9.1-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:df747104ef27ab1aa9a1145064fa9ea26ad8cf24bfcbdba7db7abf0f8b3676b9"},
- {file = "yarl-1.9.1-cp311-cp311-musllinux_1_1_i686.whl", hash = "sha256:efec77851231410125cb5be04ec96fa4a075ca637f415a1f2d2c900b09032a8a"},
- {file = "yarl-1.9.1-cp311-cp311-musllinux_1_1_ppc64le.whl", hash = "sha256:d5c407e530cf2979ea383885516ae79cc4f3c3530623acf5e42daf521f5c2564"},
- {file = "yarl-1.9.1-cp311-cp311-musllinux_1_1_s390x.whl", hash = "sha256:f76edb386178a54ea7ceffa798cb830c3c22ab50ea10dfb25dc952b04848295f"},
- {file = "yarl-1.9.1-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:75676110bce59944dd48fd18d0449bd37eaeb311b38a0c768f7670864b5f8b68"},
- {file = "yarl-1.9.1-cp311-cp311-win32.whl", hash = "sha256:9ba5a18c4fbd408fe49dc5da85478a76bc75c1ce912d7fd7b43ed5297c4403e1"},
- {file = "yarl-1.9.1-cp311-cp311-win_amd64.whl", hash = "sha256:b20a5ddc4e243cbaa54886bfe9af6ffc4ba4ef58f17f1bb691e973eb65bba84d"},
- {file = "yarl-1.9.1-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:791357d537a09a194f92b834f28c98d074e7297bac0a8f1d5b458a906cafa17c"},
- {file = "yarl-1.9.1-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:89099c887338608da935ba8bee027564a94f852ac40e472de15d8309517ad5fe"},
- {file = "yarl-1.9.1-cp37-cp37m-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:395ea180257a3742d09dcc5071739682a95f7874270ebe3982d6696caec75be0"},
- {file = "yarl-1.9.1-cp37-cp37m-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:90ebaf448b5f048352ec7c76cb8d452df30c27cb6b8627dfaa9cf742a14f141a"},
- {file = "yarl-1.9.1-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:f878a78ed2ccfbd973cab46dd0933ecd704787724db23979e5731674d76eb36f"},
- {file = "yarl-1.9.1-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:74390c2318d066962500045aa145f5412169bce842e734b8c3e6e3750ad5b817"},
- {file = "yarl-1.9.1-cp37-cp37m-musllinux_1_1_aarch64.whl", hash = "sha256:f8e73f526140c1c32f5fca4cd0bc3b511a1abcd948f45b2a38a95e4edb76ca72"},
- {file = "yarl-1.9.1-cp37-cp37m-musllinux_1_1_i686.whl", hash = "sha256:ac8e593df1fbea820da7676929f821a0c7c2cecb8477d010254ce8ed54328ea8"},
- {file = "yarl-1.9.1-cp37-cp37m-musllinux_1_1_ppc64le.whl", hash = "sha256:01cf88cb80411978a14aa49980968c1aeb7c18a90ac978c778250dd234d8e0ba"},
- {file = "yarl-1.9.1-cp37-cp37m-musllinux_1_1_s390x.whl", hash = "sha256:97d76a3128f48fa1c721ef8a50e2c2f549296b2402dc8a8cde12ff60ed922f53"},
- {file = "yarl-1.9.1-cp37-cp37m-musllinux_1_1_x86_64.whl", hash = "sha256:01a073c9175481dfed6b40704a1b67af5a9435fc4a58a27d35fd6b303469b0c7"},
- {file = "yarl-1.9.1-cp37-cp37m-win32.whl", hash = "sha256:ecad20c3ef57c513dce22f58256361d10550a89e8eaa81d5082f36f8af305375"},
- {file = "yarl-1.9.1-cp37-cp37m-win_amd64.whl", hash = "sha256:f5bcb80006efe9bf9f49ae89711253dd06df8053ff814622112a9219346566a7"},
- {file = "yarl-1.9.1-cp38-cp38-macosx_10_9_universal2.whl", hash = "sha256:e7ddebeabf384099814353a2956ed3ab5dbaa6830cc7005f985fcb03b5338f05"},
- {file = "yarl-1.9.1-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:13a1ad1f35839b3bb5226f59816b71e243d95d623f5b392efaf8820ddb2b3cd5"},
- {file = "yarl-1.9.1-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:f0cd87949d619157a0482c6c14e5011f8bf2bc0b91cb5087414d9331f4ef02dd"},
- {file = "yarl-1.9.1-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:d21887cbcf6a3cc5951662d8222bc9c04e1b1d98eebe3bb659c3a04ed49b0eec"},
- {file = "yarl-1.9.1-cp38-cp38-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:4764114e261fe49d5df9b316b3221493d177247825c735b2aae77bc2e340d800"},
- {file = "yarl-1.9.1-cp38-cp38-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:3abe37fd89a93ebe0010417ca671f422fa6fcffec54698f623b09f46b4d4a512"},
- {file = "yarl-1.9.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:e9fe3a1c073ab80a28a06f41d2b623723046709ed29faf2c56bea41848597d86"},
- {file = "yarl-1.9.1-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:b3b5f8da07a21f2e57551f88a6709c2d340866146cf7351e5207623cfe8aad16"},
- {file = "yarl-1.9.1-cp38-cp38-musllinux_1_1_aarch64.whl", hash = "sha256:88f6413ff5edfb9609e2769e32ce87a62353e66e75d264bf0eaad26fb9daa8f2"},
- {file = "yarl-1.9.1-cp38-cp38-musllinux_1_1_i686.whl", hash = "sha256:b5d5fb6c94b620a7066a3adb7c246c87970f453813979818e4707ac32ce4d7bd"},
- {file = "yarl-1.9.1-cp38-cp38-musllinux_1_1_ppc64le.whl", hash = "sha256:f206adb89424dca4a4d0b31981869700e44cd62742527e26d6b15a510dd410a2"},
- {file = "yarl-1.9.1-cp38-cp38-musllinux_1_1_s390x.whl", hash = "sha256:44fa6158e6b4b8ccfa2872c3900a226b29e8ce543ce3e48aadc99816afa8874d"},
- {file = "yarl-1.9.1-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:08c8599d6aa8a24425f8635f6c06fa8726afe3be01c8e53e236f519bcfa5db5b"},
- {file = "yarl-1.9.1-cp38-cp38-win32.whl", hash = "sha256:6b09cce412386ea9b4dda965d8e78d04ac5b5792b2fa9cced3258ec69c7d1c16"},
- {file = "yarl-1.9.1-cp38-cp38-win_amd64.whl", hash = "sha256:09c56a32c26e24ef98d5757c5064e252836f621f9a8b42737773aa92936b8e08"},
- {file = "yarl-1.9.1-cp39-cp39-macosx_10_9_universal2.whl", hash = "sha256:b86e98c3021b7e2740d8719bf074301361bf2f51221ca2765b7a58afbfbd9042"},
- {file = "yarl-1.9.1-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:5faf3ec98747318cb980aaf9addf769da68a66431fc203a373d95d7ee9c1fbb4"},
- {file = "yarl-1.9.1-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:a21789bdf28549d4eb1de6910cabc762c9f6ae3eef85efc1958197c1c6ef853b"},
- {file = "yarl-1.9.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a8b8d4b478a9862447daef4cafc89d87ea4ed958672f1d11db7732b77ead49cc"},
- {file = "yarl-1.9.1-cp39-cp39-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:307a782736ebf994e7600dcaeea3b3113083584da567272f2075f1540919d6b3"},
- {file = "yarl-1.9.1-cp39-cp39-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:46c4010de941e2e1365c07fb4418ddca10fcff56305a6067f5ae857f8c98f3a7"},
- {file = "yarl-1.9.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:bab67d041c78e305ff3eef5e549304d843bd9b603c8855b68484ee663374ce15"},
- {file = "yarl-1.9.1-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:1baf8cdaaab65d9ccedbf8748d626ad648b74b0a4d033e356a2f3024709fb82f"},
- {file = "yarl-1.9.1-cp39-cp39-musllinux_1_1_aarch64.whl", hash = "sha256:27efc2e324f72df02818cd72d7674b1f28b80ab49f33a94f37c6473c8166ce49"},
- {file = "yarl-1.9.1-cp39-cp39-musllinux_1_1_i686.whl", hash = "sha256:ca14b84091700ae7c1fcd3a6000bd4ec1a3035009b8bcb94f246741ca840bb22"},
- {file = "yarl-1.9.1-cp39-cp39-musllinux_1_1_ppc64le.whl", hash = "sha256:c3ca8d71b23bdf164b36d06df2298ec8a5bd3de42b17bf3e0e8e6a7489195f2c"},
- {file = "yarl-1.9.1-cp39-cp39-musllinux_1_1_s390x.whl", hash = "sha256:8c72a1dc7e2ea882cd3df0417c808ad3b69e559acdc43f3b096d67f2fb801ada"},
- {file = "yarl-1.9.1-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:d966cd59df9a4b218480562e8daab39e87e746b78a96add51a3ab01636fc4291"},
- {file = "yarl-1.9.1-cp39-cp39-win32.whl", hash = "sha256:518a92a34c741836a315150460b5c1c71ae782d569eabd7acf53372e437709f7"},
- {file = "yarl-1.9.1-cp39-cp39-win_amd64.whl", hash = "sha256:78755ce43b6e827e65ec0c68be832f86d059fcf05d4b33562745ebcfa91b26b1"},
- {file = "yarl-1.9.1.tar.gz", hash = "sha256:5ce0bcab7ec759062c818d73837644cde567ab8aa1e0d6c45db38dfb7c284441"},
+ {file = "yarl-1.9.2-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:8c2ad583743d16ddbdf6bb14b5cd76bf43b0d0006e918809d5d4ddf7bde8dd82"},
+ {file = "yarl-1.9.2-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:82aa6264b36c50acfb2424ad5ca537a2060ab6de158a5bd2a72a032cc75b9eb8"},
+ {file = "yarl-1.9.2-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:c0c77533b5ed4bcc38e943178ccae29b9bcf48ffd1063f5821192f23a1bd27b9"},
+ {file = "yarl-1.9.2-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ee4afac41415d52d53a9833ebae7e32b344be72835bbb589018c9e938045a560"},
+ {file = "yarl-1.9.2-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:9bf345c3a4f5ba7f766430f97f9cc1320786f19584acc7086491f45524a551ac"},
+ {file = "yarl-1.9.2-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:2a96c19c52ff442a808c105901d0bdfd2e28575b3d5f82e2f5fd67e20dc5f4ea"},
+ {file = "yarl-1.9.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:891c0e3ec5ec881541f6c5113d8df0315ce5440e244a716b95f2525b7b9f3608"},
+ {file = "yarl-1.9.2-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:c3a53ba34a636a256d767c086ceb111358876e1fb6b50dfc4d3f4951d40133d5"},
+ {file = "yarl-1.9.2-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:566185e8ebc0898b11f8026447eacd02e46226716229cea8db37496c8cdd26e0"},
+ {file = "yarl-1.9.2-cp310-cp310-musllinux_1_1_i686.whl", hash = "sha256:2b0738fb871812722a0ac2154be1f049c6223b9f6f22eec352996b69775b36d4"},
+ {file = "yarl-1.9.2-cp310-cp310-musllinux_1_1_ppc64le.whl", hash = "sha256:32f1d071b3f362c80f1a7d322bfd7b2d11e33d2adf395cc1dd4df36c9c243095"},
+ {file = "yarl-1.9.2-cp310-cp310-musllinux_1_1_s390x.whl", hash = "sha256:e9fdc7ac0d42bc3ea78818557fab03af6181e076a2944f43c38684b4b6bed8e3"},
+ {file = "yarl-1.9.2-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:56ff08ab5df8429901ebdc5d15941b59f6253393cb5da07b4170beefcf1b2528"},
+ {file = "yarl-1.9.2-cp310-cp310-win32.whl", hash = "sha256:8ea48e0a2f931064469bdabca50c2f578b565fc446f302a79ba6cc0ee7f384d3"},
+ {file = "yarl-1.9.2-cp310-cp310-win_amd64.whl", hash = "sha256:50f33040f3836e912ed16d212f6cc1efb3231a8a60526a407aeb66c1c1956dde"},
+ {file = "yarl-1.9.2-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:646d663eb2232d7909e6601f1a9107e66f9791f290a1b3dc7057818fe44fc2b6"},
+ {file = "yarl-1.9.2-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:aff634b15beff8902d1f918012fc2a42e0dbae6f469fce134c8a0dc51ca423bb"},
+ {file = "yarl-1.9.2-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:a83503934c6273806aed765035716216cc9ab4e0364f7f066227e1aaea90b8d0"},
+ {file = "yarl-1.9.2-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:b25322201585c69abc7b0e89e72790469f7dad90d26754717f3310bfe30331c2"},
+ {file = "yarl-1.9.2-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:22a94666751778629f1ec4280b08eb11815783c63f52092a5953faf73be24191"},
+ {file = "yarl-1.9.2-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:8ec53a0ea2a80c5cd1ab397925f94bff59222aa3cf9c6da938ce05c9ec20428d"},
+ {file = "yarl-1.9.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:159d81f22d7a43e6eabc36d7194cb53f2f15f498dbbfa8edc8a3239350f59fe7"},
+ {file = "yarl-1.9.2-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:832b7e711027c114d79dffb92576acd1bd2decc467dec60e1cac96912602d0e6"},
+ {file = "yarl-1.9.2-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:95d2ecefbcf4e744ea952d073c6922e72ee650ffc79028eb1e320e732898d7e8"},
+ {file = "yarl-1.9.2-cp311-cp311-musllinux_1_1_i686.whl", hash = "sha256:d4e2c6d555e77b37288eaf45b8f60f0737c9efa3452c6c44626a5455aeb250b9"},
+ {file = "yarl-1.9.2-cp311-cp311-musllinux_1_1_ppc64le.whl", hash = "sha256:783185c75c12a017cc345015ea359cc801c3b29a2966c2655cd12b233bf5a2be"},
+ {file = "yarl-1.9.2-cp311-cp311-musllinux_1_1_s390x.whl", hash = "sha256:b8cc1863402472f16c600e3e93d542b7e7542a540f95c30afd472e8e549fc3f7"},
+ {file = "yarl-1.9.2-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:822b30a0f22e588b32d3120f6d41e4ed021806418b4c9f0bc3048b8c8cb3f92a"},
+ {file = "yarl-1.9.2-cp311-cp311-win32.whl", hash = "sha256:a60347f234c2212a9f0361955007fcf4033a75bf600a33c88a0a8e91af77c0e8"},
+ {file = "yarl-1.9.2-cp311-cp311-win_amd64.whl", hash = "sha256:be6b3fdec5c62f2a67cb3f8c6dbf56bbf3f61c0f046f84645cd1ca73532ea051"},
+ {file = "yarl-1.9.2-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:38a3928ae37558bc1b559f67410df446d1fbfa87318b124bf5032c31e3447b74"},
+ {file = "yarl-1.9.2-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ac9bb4c5ce3975aeac288cfcb5061ce60e0d14d92209e780c93954076c7c4367"},
+ {file = "yarl-1.9.2-cp37-cp37m-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:3da8a678ca8b96c8606bbb8bfacd99a12ad5dd288bc6f7979baddd62f71c63ef"},
+ {file = "yarl-1.9.2-cp37-cp37m-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:13414591ff516e04fcdee8dc051c13fd3db13b673c7a4cb1350e6b2ad9639ad3"},
+ {file = "yarl-1.9.2-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:bf74d08542c3a9ea97bb8f343d4fcbd4d8f91bba5ec9d5d7f792dbe727f88938"},
+ {file = "yarl-1.9.2-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:6e7221580dc1db478464cfeef9b03b95c5852cc22894e418562997df0d074ccc"},
+ {file = "yarl-1.9.2-cp37-cp37m-musllinux_1_1_aarch64.whl", hash = "sha256:494053246b119b041960ddcd20fd76224149cfea8ed8777b687358727911dd33"},
+ {file = "yarl-1.9.2-cp37-cp37m-musllinux_1_1_i686.whl", hash = "sha256:52a25809fcbecfc63ac9ba0c0fb586f90837f5425edfd1ec9f3372b119585e45"},
+ {file = "yarl-1.9.2-cp37-cp37m-musllinux_1_1_ppc64le.whl", hash = "sha256:e65610c5792870d45d7b68c677681376fcf9cc1c289f23e8e8b39c1485384185"},
+ {file = "yarl-1.9.2-cp37-cp37m-musllinux_1_1_s390x.whl", hash = "sha256:1b1bba902cba32cdec51fca038fd53f8beee88b77efc373968d1ed021024cc04"},
+ {file = "yarl-1.9.2-cp37-cp37m-musllinux_1_1_x86_64.whl", hash = "sha256:662e6016409828ee910f5d9602a2729a8a57d74b163c89a837de3fea050c7582"},
+ {file = "yarl-1.9.2-cp37-cp37m-win32.whl", hash = "sha256:f364d3480bffd3aa566e886587eaca7c8c04d74f6e8933f3f2c996b7f09bee1b"},
+ {file = "yarl-1.9.2-cp37-cp37m-win_amd64.whl", hash = "sha256:6a5883464143ab3ae9ba68daae8e7c5c95b969462bbe42e2464d60e7e2698368"},
+ {file = "yarl-1.9.2-cp38-cp38-macosx_10_9_universal2.whl", hash = "sha256:5610f80cf43b6202e2c33ba3ec2ee0a2884f8f423c8f4f62906731d876ef4fac"},
+ {file = "yarl-1.9.2-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:b9a4e67ad7b646cd6f0938c7ebfd60e481b7410f574c560e455e938d2da8e0f4"},
+ {file = "yarl-1.9.2-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:83fcc480d7549ccebe9415d96d9263e2d4226798c37ebd18c930fce43dfb9574"},
+ {file = "yarl-1.9.2-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:5fcd436ea16fee7d4207c045b1e340020e58a2597301cfbcfdbe5abd2356c2fb"},
+ {file = "yarl-1.9.2-cp38-cp38-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:84e0b1599334b1e1478db01b756e55937d4614f8654311eb26012091be109d59"},
+ {file = "yarl-1.9.2-cp38-cp38-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:3458a24e4ea3fd8930e934c129b676c27452e4ebda80fbe47b56d8c6c7a63a9e"},
+ {file = "yarl-1.9.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:838162460b3a08987546e881a2bfa573960bb559dfa739e7800ceeec92e64417"},
+ {file = "yarl-1.9.2-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:f4e2d08f07a3d7d3e12549052eb5ad3eab1c349c53ac51c209a0e5991bbada78"},
+ {file = "yarl-1.9.2-cp38-cp38-musllinux_1_1_aarch64.whl", hash = "sha256:de119f56f3c5f0e2fb4dee508531a32b069a5f2c6e827b272d1e0ff5ac040333"},
+ {file = "yarl-1.9.2-cp38-cp38-musllinux_1_1_i686.whl", hash = "sha256:149ddea5abf329752ea5051b61bd6c1d979e13fbf122d3a1f9f0c8be6cb6f63c"},
+ {file = "yarl-1.9.2-cp38-cp38-musllinux_1_1_ppc64le.whl", hash = "sha256:674ca19cbee4a82c9f54e0d1eee28116e63bc6fd1e96c43031d11cbab8b2afd5"},
+ {file = "yarl-1.9.2-cp38-cp38-musllinux_1_1_s390x.whl", hash = "sha256:9b3152f2f5677b997ae6c804b73da05a39daa6a9e85a512e0e6823d81cdad7cc"},
+ {file = "yarl-1.9.2-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:5415d5a4b080dc9612b1b63cba008db84e908b95848369aa1da3686ae27b6d2b"},
+ {file = "yarl-1.9.2-cp38-cp38-win32.whl", hash = "sha256:f7a3d8146575e08c29ed1cd287068e6d02f1c7bdff8970db96683b9591b86ee7"},
+ {file = "yarl-1.9.2-cp38-cp38-win_amd64.whl", hash = "sha256:63c48f6cef34e6319a74c727376e95626f84ea091f92c0250a98e53e62c77c72"},
+ {file = "yarl-1.9.2-cp39-cp39-macosx_10_9_universal2.whl", hash = "sha256:75df5ef94c3fdc393c6b19d80e6ef1ecc9ae2f4263c09cacb178d871c02a5ba9"},
+ {file = "yarl-1.9.2-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:c027a6e96ef77d401d8d5a5c8d6bc478e8042f1e448272e8d9752cb0aff8b5c8"},
+ {file = "yarl-1.9.2-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:f3b078dbe227f79be488ffcfc7a9edb3409d018e0952cf13f15fd6512847f3f7"},
+ {file = "yarl-1.9.2-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:59723a029760079b7d991a401386390c4be5bfec1e7dd83e25a6a0881859e716"},
+ {file = "yarl-1.9.2-cp39-cp39-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:b03917871bf859a81ccb180c9a2e6c1e04d2f6a51d953e6a5cdd70c93d4e5a2a"},
+ {file = "yarl-1.9.2-cp39-cp39-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:c1012fa63eb6c032f3ce5d2171c267992ae0c00b9e164efe4d73db818465fac3"},
+ {file = "yarl-1.9.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:a74dcbfe780e62f4b5a062714576f16c2f3493a0394e555ab141bf0d746bb955"},
+ {file = "yarl-1.9.2-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:8c56986609b057b4839968ba901944af91b8e92f1725d1a2d77cbac6972b9ed1"},
+ {file = "yarl-1.9.2-cp39-cp39-musllinux_1_1_aarch64.whl", hash = "sha256:2c315df3293cd521033533d242d15eab26583360b58f7ee5d9565f15fee1bef4"},
+ {file = "yarl-1.9.2-cp39-cp39-musllinux_1_1_i686.whl", hash = "sha256:b7232f8dfbd225d57340e441d8caf8652a6acd06b389ea2d3222b8bc89cbfca6"},
+ {file = "yarl-1.9.2-cp39-cp39-musllinux_1_1_ppc64le.whl", hash = "sha256:53338749febd28935d55b41bf0bcc79d634881195a39f6b2f767870b72514caf"},
+ {file = "yarl-1.9.2-cp39-cp39-musllinux_1_1_s390x.whl", hash = "sha256:066c163aec9d3d073dc9ffe5dd3ad05069bcb03fcaab8d221290ba99f9f69ee3"},
+ {file = "yarl-1.9.2-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:8288d7cd28f8119b07dd49b7230d6b4562f9b61ee9a4ab02221060d21136be80"},
+ {file = "yarl-1.9.2-cp39-cp39-win32.whl", hash = "sha256:b124e2a6d223b65ba8768d5706d103280914d61f5cae3afbc50fc3dfcc016623"},
+ {file = "yarl-1.9.2-cp39-cp39-win_amd64.whl", hash = "sha256:61016e7d582bc46a5378ffdd02cd0314fb8ba52f40f9cf4d9a5e7dbef88dee18"},
+ {file = "yarl-1.9.2.tar.gz", hash = "sha256:04ab9d4b9f587c06d801c2abfe9317b77cdf996c65a90d5e84ecc45010823571"},
]
[package.dependencies]
@@ -2125,4 +2009,4 @@ multidict = ">=4.0"
[metadata]
lock-version = "2.0"
python-versions = ">=3.10,<4.0"
-content-hash = "dae29ad8349fd512858c5f27e2de61b03415a7a560d32f610824ed54e453f3b2"
+content-hash = "914feb108ead95ed7f6f13573329e2425bdb13e84b55f0a5640f0742905fd31c"
diff --git a/api-service/pyproject.toml b/api-service/pyproject.toml
index d455b49d7..89c11a6bf 100644
--- a/api-service/pyproject.toml
+++ b/api-service/pyproject.toml
@@ -17,16 +17,16 @@ postgrest = "^0.10.6"
replicate = "^0.8.1"
huggingface-hub = "^0.13.4"
anthropic = "^0.2.6"
-langchain = "^0.0.141"
banana-dev = "4.0.2"
+uvicorn = {extras = ["standard"], version = "^0.22.0"}
fastapi = "^0.95.1"
-pybars3 = "^0.9.7"
+langchain = "0.0.141"
+chevron = "^0.14.0"
[tool.poetry.group.dev]
optional = true
[tool.poetry.group.dev.dependencies]
-hypercorn = "^0.14.3"
python-dotenv = "^1.0.0"
pytest = "^7.2.2"
@@ -34,7 +34,6 @@ pytest = "^7.2.2"
optional = true
[tool.poetry.group.deploy.dependencies]
-uvicorn = {extras = ["standard"], version = "^0.21.1"}
gunicorn = "^20.1.0"
[build-system]
diff --git a/components/Editor/Sidebar/index.tsx b/components/Editor/Sidebar/index.tsx
index 478ad3f3e..b84df1733 100644
--- a/components/Editor/Sidebar/index.tsx
+++ b/components/Editor/Sidebar/index.tsx
@@ -6,7 +6,7 @@ import { getModelArgs } from 'state/model'
import useModelProviderArgs from 'hooks/useModelProviderArgs'
import { evaluatePrompt } from 'state/prompt'
import { Step } from 'api-client/AgentConnection'
-import useAgentRun from 'hooks/useAgentRun'
+import useAgent from 'hooks/useAgent'
import Agent from './Agent'
import Envs from './Envs'
@@ -27,9 +27,9 @@ function Sidebar({
const {
agentRun,
steps: newSteps,
- start,
+ run,
agentState,
- } = useAgentRun()
+ } = useAgent(project.id)
const [selectors] = useStateStore()
const modelConfig = selectors.use.getSelectedModelConfig()()
const instructions = selectors.use.instructions()
@@ -39,21 +39,30 @@ function Sidebar({
const steps = newSteps || project.development_logs as unknown as Step[] | undefined
- async function run() {
+ async function runAgent() {
if (!modelConfig) {
console.error('Cannot get model config')
return
}
- await start(project.id, {
- ...modelConfig,
- args: getModelArgs(modelConfig, creds) as any,
- prompt: evaluatePrompt(
- instructions,
- instructionsTransform,
- modelConfig.prompt,
- ),
- })
+ const {
+ instructions: transformedInstructions,
+ prompt,
+ } = evaluatePrompt(
+ instructions,
+ instructionsTransform,
+ modelConfig.prompt,
+ )
+
+ await run(
+ {
+ name: modelConfig.name,
+ provider: modelConfig.provider,
+ args: getModelArgs(modelConfig, creds) as any,
+ prompt,
+ },
+ transformedInstructions
+ )
}
return (
@@ -78,7 +87,7 @@ function Sidebar({
}
{activeMenuSection === MenuSection.Agent &&
<Agent
- run={run}
+ run={runAgent}
agentState={agentState}
steps={steps}
agentRun={agentRun}
diff --git a/example_config.json b/example_config.json
new file mode 100644
index 000000000..7c595dbea
--- /dev/null
+++ b/example_config.json
@@ -0,0 +1,30 @@
+{
+ "name": "GPT 3.5 Turbo",
+ "provider": "OpenAI",
+ "args": {
+ "model_name": "gpt-3.5-turbo",
+ "max_tokens": 2048,
+ "temperature": 0,
+ "presence_penalty": 0,
+ "frequency_penalty": 0,
+ "top_p": 1,
+ "openai_api_key": ""
+ },
+ "prompt": [
+ {
+ "role": "system",
+ "type": "prefix",
+ "content": "\nYou are an AI JavaScript developer assistant:\nYou are building an Express server that handles REST API.\nThe `express` package is already installed.\nFollow the user's instructions carefully & to the letter.\nMinimize any other prose.\nYou have access to the following tools:"
+ },
+ {
+ "role": "system",
+ "type": "suffix",
+ "content": "\nThe way you use the tools is by specifying a XML snippet.\nThe XML snippet MUST have a `<action tool=\"$TOOL_NAME\">$INPUT</action>` element with the name of the tool in the `tool` attribute and input for the tool inside the XML tag.\n\nHere is an example of a valid XML snippet:\n<action tool=\"$TOOL_NAME\">\n$INPUT\n</action>\n\nALWAYS use the following format:\nThought: you should always think about what to do\nAction:\n<action tool=\"$TOOL_NAME\">\n$INPUT\n</action>\nObservation: the result of the action\n... (this Thought/Action/Observation can repeat N times)\nThought: I now know the final server code and can show it.\nFinal Answer: the final answer"
+ },
+ {
+ "role": "user",
+ "type": "prefix",
+ "content": "\n{{#Routes}}\nThe handler you are building should do the following:\n{{Description}}\n\n{{#RequestBody}}\nThe incoming request body is JSON that looks like this:```\n{\n{{RequestBody}}\n}\n```\n\n\n{{/RequestBody}}\n\nUse this starting template:```\nimport express from \"express\";\nconst app = express();\nconst port = 3000;\napp.use(express.json())\n\n// TODO: Implement the {{Method}} handler here\n\napp.listen(port, async () => {\n console.log(`Server listening on port ${ port }`)\n})\n```\n\n\nThe HTTP request handler is of type {{Method}}.\nThe request handler MUST be on the route `{{Path}}`.\nDo not forget to use async and await.\nAlways test that the generated server works without bugs and errors as required by running the code and making mock `curl` requests to the server.\nGenerate the full required server code.\n\n{{#Instructions}}\nHere are the required implementation instructions:\n{{Instructions}}\n{{/Instructions}}\n{{/Routes}}\nThought: Here is the plan of how I will go about solving this:"
+ }
+ ]
+}
\ No newline at end of file
diff --git a/hooks/useAgentRun.ts b/hooks/useAgent.ts
similarity index 73%
rename from hooks/useAgentRun.ts
rename to hooks/useAgent.ts
index 787c3cd79..78a8acc3a 100644
--- a/hooks/useAgentRun.ts
+++ b/hooks/useAgent.ts
@@ -4,12 +4,15 @@ import { AgentConnection, AgentRunState, Step } from 'api-client/AgentConnection
import { ModelConfig } from 'state/model'
import { baseUrl } from 'api-client/api'
-function useAgentRun() {
+function useAgent(projectID: string) {
const [agentRun, setAgentRun] = useState<AgentConnection>()
const [steps, setSteps] = useState<Step[]>()
const [agentState, setAgentState] = useState<AgentRunState>()
- const start = useCallback(async (projectID: string, modelConfig: ModelConfig) => {
+ const run = useCallback(async (
+ config: ModelConfig,
+ prompt: any,
+ ) => {
const run = new AgentConnection(`${baseUrl}/dev/agent`, {
onSteps: setSteps,
onStateChange: setAgentState,
@@ -17,20 +20,20 @@ function useAgentRun() {
setAgentRun(undefined)
setAgentState(undefined)
},
- })
+ }, projectID)
setSteps([])
setAgentRun(run)
await run.connect()
- await run.start(projectID, modelConfig)
- }, [setAgentRun, setSteps, setAgentState])
+ await run.start(config, prompt)
+ }, [setAgentRun, setSteps, setAgentState, projectID])
return {
- start,
+ run,
agentRun,
steps,
agentState,
}
}
-export default useAgentRun
+export default useAgent
diff --git a/package.json b/package.json
index 1284f3c48..aa4db807a 100644
--- a/package.json
+++ b/package.json
@@ -19,7 +19,7 @@
"dev": "npx concurrently -p none \"next dev\" \"npm run start:api\" \"npm run start:playground\"",
"dev:api-service": "npx concurrently \"npm run start:api\" \"npm run start:playground\"",
"build": "next build",
- "start:api": "cd api-service && cross-env PYTHONUNBUFFERED=1 poetry run hypercorn app:app --reload --debug --bind ':49155'",
+ "start:api": "cd api-service && cross-env PYTHONUNBUFFERED=1 poetry run uvicorn app:app --reload --host 0.0.0.0 --port 49155",
"start:playground": "cd api-service/playground && npm run dev",
"install:api-service": "cd api-service && poetry install --with dev && cd playground && npm install",
"install:api-playground": "cd api-service/playground && npm install",
diff --git a/state/prompt.ts b/state/prompt.ts
index a8505a05d..d543c98f0 100644
--- a/state/prompt.ts
+++ b/state/prompt.ts
@@ -1,8 +1,6 @@
-import Mustache from 'mustache'
import { html2markdown } from 'editor/schema'
import { Reference } from 'editor/referenceType'
-import { identity } from 'utils/identity'
import { evaluateInstruction, Instructions, InstructionsTransform, transformInstructions } from './instruction'
@@ -33,7 +31,7 @@ export function evaluatePrompt(
instructions: Instructions,
instructionsTransform: InstructionsTransform,
prompt: PromptFragment[],
-): PromptFragment[] {
+) {
const references: Reference[] = []
const instructionsView = transformInstructions(
@@ -54,21 +52,27 @@ export function evaluatePrompt(
content: markdown,
}
})
- .map(p => {
- return {
- ...p,
- content: Mustache.render(p.content, {
- // TODO: Use the references to build context
- References: references,
- ...instructionsView,
- }, undefined, {
- escape: identity,
- }),
- }
- })
+ // .map(p => {
+ // return {
+ // ...p,
+ // content: Mustache.render(p.content, {
+ // // TODO: Use the references to build context
+ // References: references,
+ // ...instructionsView,
+ // }, undefined, {
+ // escape: identity,
+ // }),
+ // }
+ // })
console.log('Prompt:', textualPrompt)
console.log('Instructions view:', instructionsView)
- return textualPrompt
+ return {
+ prompt: textualPrompt,
+ instructions: {
+ ...instructionsView,
+ References: references,
+ }
+ }
}