Commit Graph

5481 Commits

Author SHA1 Message Date
Nicholas Tindle
bfb3a45722 feat(server): try replace paths 2024-07-17 00:21:27 -05:00
Nicholas Tindle
68f46c00cd feat(builder, server): code review changes 2024-07-16 22:23:32 -05:00
Nicholas Tindle
72c633241c fix(builder): spacing 2024-07-16 22:20:04 -05:00
Nicholas Tindle
e676124527 fix: spacing 2024-07-16 22:19:27 -05:00
Nicholas Tindle
03df00c4a8 feat(builder): merge continues 2024-07-16 22:16:54 -05:00
Nicholas Tindle
2359a7d109 Merge branch 'master' into aarushikansal/open-1370-serve-frontend-on-server 2024-07-16 22:16:41 -05:00
Nicholas Tindle
a15ad5cf89 feat(server): breakpoints and cx_freeze update 2024-07-16 22:12:26 -05:00
Krzysztof Czerwinski
555e113706 feat(agent_builder, agent_server): Add customizable placeholders for input fields (#7451)
- Add `SchemaField` that works like Pydantic `Field` but allows to add extra json schema values. This PR adds `placeholder` entry but it could be extended with other data.
- Render `placeholder` inside input fields if available.
- Restyle placeholders so they are visually distinct from user-entered values
2024-07-16 20:08:43 +01:00
Bently
420e6cae2f feat(autogpt_builder): Fix Read API base URL from .env (#7455) 2024-07-16 16:28:24 +01:00
Nicholas Tindle
e7c569668f Update rnd/autogpt_server/setup.py
Co-authored-by: Reinier van der Leer <pwuts@agpt.co>
2024-07-16 10:02:17 -05:00
Toran Bruce Richards
920f931a21 feat(blocks): Add summariser block for recursive text summarization functionality (#7431)
Co-authored-by: Zamil Majdy <zamil.majdy@agpt.co>
2024-07-16 17:51:37 +07:00
Nicholas Tindle
dc3a9b402b Merge branch 'aarushikansal/open-1370-serve-frontend-on-server' of https://github.com/Significant-Gravitas/AutoGPT into aarushikansal/open-1370-serve-frontend-on-server 2024-07-16 03:35:53 -05:00
Nicholas Tindle
6b89941e9c Update app.py 2024-07-16 03:35:51 -05:00
Nicholas Tindle
95ccc058d7 Merge branch 'master' into aarushikansal/open-1370-serve-frontend-on-server 2024-07-16 03:33:09 -05:00
Toran Bruce Richards
e874318832 feat(blocks): Add WebSearch & WebScrapper block for searching the web with Jina Reader (#7445)
Co-authored-by: Zamil Majdy <zamil.majdy@agpt.co>
2024-07-16 15:32:23 +07:00
Nicholas Tindle
e46cfb1161 Merge branch 'master' into aarushikansal/open-1370-serve-frontend-on-server 2024-07-16 03:30:02 -05:00
Nicholas Tindle
c25f32e389 Merge branch 'aarushikansal/open-1370-serve-frontend-on-server' of https://github.com/Significant-Gravitas/AutoGPT into aarushikansal/open-1370-serve-frontend-on-server 2024-07-16 03:28:47 -05:00
Nicholas Tindle
94e2d0e2d3 Update autogpt-server-ci.yml 2024-07-16 03:28:45 -05:00
Toran Bruce Richards
cb4b96a70c feat(server): Add DictionaryLookup block for looking up values in a dictionary (#7427)
Co-authored-by: Zamil Majdy <zamil.majdy@agpt.co>
2024-07-16 15:23:12 +07:00
Nicholas Tindle
a30b3f7d76 Merge branch 'master' into aarushikansal/open-1370-serve-frontend-on-server 2024-07-16 03:06:37 -05:00
Nicholas Tindle
5617a64598 Update autogpt-server-ci.yml 2024-07-16 03:05:56 -05:00
Nicholas Tindle
20152cf5e0 Update autogpt-server-ci.yml 2024-07-16 03:00:48 -05:00
Nicholas Tindle
01e6fdd925 ci(server): try more envars 2024-07-16 02:40:29 -05:00
Toran Bruce Richards
03ea4c2690 fix(server): Fix bug in time comparison logic in RedditGetPostsBlock (#7426)
Co-authored-by: Zamil Majdy <zamil.majdy@agpt.co>
2024-07-16 14:35:51 +07:00
Nicholas Tindle
f673f8ae23 fix(server): comment 2024-07-16 02:11:57 -05:00
Nicholas Tindle
5243c9d7fd Update setup.py 2024-07-16 02:11:28 -05:00
Nicholas Tindle
be14969ec7 fix(server): move the prisma fetch to build 2024-07-16 01:59:08 -05:00
Nicholas Tindle
db14af2833 ci(server): make the folder 2024-07-16 01:58:20 -05:00
Nicholas Tindle
8c212e565a ci(server): try and force prisma location 2024-07-16 01:54:35 -05:00
Nicholas Tindle
0716b5967f ci(server): try this instead 2024-07-15 22:46:07 -05:00
Nicholas Tindle
75a5ee8207 ci(server): prisma py fetch suggested after installing from windows 2024-07-15 22:23:16 -05:00
Nicholas Tindle
66384c1795 fix(server): only mount the static files if the _next directory exists 2024-07-15 22:09:51 -05:00
Nicholas Tindle
9be9dbed08 Merge branch 'master' into aarushikansal/open-1370-serve-frontend-on-server 2024-07-15 21:42:23 -05:00
Zamil Majdy
e70e613f73 feat(rnd): Refactor Block testing infra and Add Block auto-generation graph usecase (#7405)
### Background

The main scope of this change is enhancing the system capability (by fixing bug, correcting execution behaviour) to allow for creating a graph with a loop, to allow the use case of block auto-generation agent.

### Changes 🏗️

* Main changes: Add block_autogen.py (block auto-generation agent graph example).
* Refactor on test boilerplate: introduced `util/test` for initiating a server, and waiting graph execution.
* Removing unnecessary db lookup and duplicated codes used for sending execution updates on agent executor.
* Removed redundant code on test and cli code.
* Moved block test execution helper into the main code (so blockinstallerblock can use it).
* Eliminate the need of explicitly add a module into the `AVAILABLE_BLOCKS` list, any block class under the `block` folder will be auto-discovered.
* Few patches on the existing blocks.
2024-07-15 21:41:18 -05:00
Nicholas Tindle
2a434625ef Merge branch 'master' into aarushikansal/open-1370-serve-frontend-on-server 2024-07-15 17:29:45 -05:00
Toran Bruce Richards
854f6dcaec Update README.md 2024-07-15 22:31:30 +01:00
Toran Bruce Richards
ea5ba9d193 Update README.md 2024-07-15 22:31:19 +01:00
Toran Bruce Richards
da14957fce Update README.md 2024-07-15 22:29:03 +01:00
Toran Bruce Richards
629f575dde Delete rnd/AutoGPT Server Setup Tutorial.mp4 (#7452) 2024-07-15 22:18:49 +01:00
Toran Bruce Richards
8883d7db53 Create README.md in rnd folder 2024-07-15 22:17:37 +01:00
Toran Bruce Richards
a6063e1550 Add files via upload 2024-07-15 22:06:57 +01:00
Nicholas Tindle
483cd07c9e Merge branch 'master' into aarushikansal/open-1370-serve-frontend-on-server 2024-07-15 15:40:28 -05:00
Toran Bruce Richards
e311847fa8 Update autogpt_server README.md 2024-07-15 20:26:44 +01:00
Bently
d673bf741a feat(autogpt_builder): Add websocket support to replace polling (#7449)
feat(autogpt_builder): Add websocket support
2024-07-15 20:18:23 +01:00
Nicholas Tindle
ab830b5e4c feat(server): more path protections and a warning 2024-07-15 14:16:11 -05:00
Nicholas Tindle
2e6d0944ae Merge branch 'master' into aarushikansal/open-1370-serve-frontend-on-server 2024-07-15 14:01:19 -05:00
Nicholas Tindle
97581a709c fix(builder): typescript linting errors 2024-07-15 14:00:01 -05:00
Swifty
110e093e7b feat(autogpt_server, autogpt_builder): Add Agent Versioning & Templates functionality (#7376)
1. Add graph versioning functionality:
   - Add `version`, `isActive` fields in the `AgentGraph` model
      - Add `agentGraphVersion` field in related models
   - Amend & add API endpoints for graph versioning (see below)
      - Amend & add data layer functions (`autogpt_server.data`) to support new operations & data schema

2. Add graph template functionality:
   - Add `isTemplate` fields in the `AgentGraph` model
   - Add `GraphMeta` model for template/graph metadata
   - Add API endpoints for template management (see below)
      - Amend & add data layer functions (`autogpt_server.data`) to support new operations & data schema

3. Enhance graph creation:
   - Amended `create_graph` route to handle template-based graph creation

4. Code refactoring:
   - Improved import statements
   - Enhanced error handling in graph creation

5. Minor improvements:
   - Add validator to auto-assign `Graph.id` if not set

## API Changes

New endpoints:
- `GET /templates`: Retrieve all templates (metadata only)
- `POST /templates`: Create a new template
- `PUT /graphs/{graph_id}`: Create a new version of a graph
- `GET /templates/{graph_id}`: Get a specific template
- `PUT /templates/{graph_id}`: Create a new version of a graph template
- `GET /graphs/{graph_id}/versions`: Get all versions of a graph
- `GET /templates/{graph_id}/versions`: Get all versions of a graph template
- `GET /graphs/{graph_id}/versions/{version}`: Get a specific graph version
- `PUT /graphs/{graph_id}/versions/active`: Set active graph version

Modified endpoints:
- `POST /graphs`: Now supports creating graphs directly from templates
- `GET /graphs/{graph_id}`: Add `version` query parameter
- `GET /graphs/{graph_id}/executions`: Add `graph_version` query parameters

## UI changes
- Improve `/build` / `FlowEditor` save mechanism
   - Implement updating current agent instead of creating a new agent on every save
   - Add check to only save a new version if local graph has been edited
      - Add `deepEquals` function to lib/utils.ts
- Add version indicators and selector on `/monitor`
  ![image](https://github.com/user-attachments/assets/742a66ee-4d12-4129-981d-fa6399e717fa)
   - Add shad/cn `DropdownMenu` component
- Update `AutoGPTServerAPI` client
   - Update input/output types with added attributes (see above)
   - Add parameter `version` to `getFlow`
   - Add parameter `flowVersion?` to `listFlowRunIDs`
   - Add endpoint `updateFlow(flowID, FlowUpdateable)`
   - Add endpoint `createFlow(fromTemplateID, templateVersion)` (overload)
   - Add endpoint `getFlowAllVersions(id)`
   - Add endpoint `setFlowActiveVersion(flowID, version)`
2024-07-15 20:26:00 +02:00
Toran Bruce Richards
93b6e0ee51 feat(blocks): Add support for additional LLM providers to LLM Block (#7434)
This commit adds support for the following models:

```python
# OpenAI Models
GPT4O = "gpt-4o"
GPT4_TURBO = "gpt-4-turbo"
GPT3_5_TURBO = "gpt-3.5-turbo"

# Anthropic models
CLAUDE_3_5_SONNET = "claude-3-5-sonnet-20240620"
CLAUDE_3_HAIKU = "claude-3-haiku-20240307"

# Groq models
LLAMA3_8B = "llama3-8b-8192"
LLAMA3_70B = "llama3-70b-8192"
MIXTRAL_8X7B = "mixtral-8x7b-32768"
GEMMA_7B = "gemma-7b-it"
GEMMA2_9B = "gemma2-9b-it"
```

Every model has been tested with a single LLM block and is confirmed to be working in that setup.
2024-07-15 20:30:56 +07:00
Nicholas Tindle
9fe1efac68 fix(server): try a different way to specify working directory in a more windows friendly way 2024-07-15 07:24:38 -05:00