Skip to content

Commit

Permalink
Merge branch 'alpha' into feature/agent-model-rework
Browse files Browse the repository at this point in the history
  • Loading branch information
failandimprove1 authored Apr 18, 2024
2 parents e172c1a + 115ca1b commit 6c51351
Show file tree
Hide file tree
Showing 162 changed files with 3,285 additions and 5,362 deletions.
8 changes: 4 additions & 4 deletions apps/api/src/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,15 +63,15 @@ def process_crew(crew: Crew) -> tuple[str, CrewProcessed]:
if not crew.prompt:
raise HTTPException(400, "got no prompt")
if len(crew_model.agents) == 0:
raise ValueError("crew had no agents")
raise HTTPException(400, "crew had no agents")
# Validate agents
for agent in crew_model.agents:
if agent.role == "":
raise ValueError(f"agent {agent.id} had no role")
raise HTTPException(400, f"agent {agent.id} had no role")
if agent.title == "":
raise ValueError(f"agent {agent.id} had no title")
raise HTTPException(400, f"agent {agent.id} had no title")
if agent.system_message == "":
raise ValueError(f"agent {agent.id} had no system message")
raise HTTPException(400, f"agent {agent.id} had no system message")

message: str = crew.prompt.content
return message, crew_model
Expand Down
3 changes: 0 additions & 3 deletions apps/web/.env.example

This file was deleted.

1 change: 1 addition & 0 deletions apps/web/.prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
pnpm-lock.yaml
package-lock.json
yarn.lock
src/lib/api/*.d.ts
25 changes: 0 additions & 25 deletions apps/web/generated/core/ApiError.ts

This file was deleted.

17 changes: 0 additions & 17 deletions apps/web/generated/core/ApiRequestOptions.ts

This file was deleted.

11 changes: 0 additions & 11 deletions apps/web/generated/core/ApiResult.ts

This file was deleted.

131 changes: 0 additions & 131 deletions apps/web/generated/core/CancelablePromise.ts

This file was deleted.

32 changes: 0 additions & 32 deletions apps/web/generated/core/OpenAPI.ts

This file was deleted.

Loading

0 comments on commit 6c51351

Please sign in to comment.