Skip to content

Commit

Permalink
merge conflicts resolved
Browse files Browse the repository at this point in the history
  • Loading branch information
davorrunje committed Sep 13, 2024
2 parents acff58f + 8aaba85 commit 5f32df3
Show file tree
Hide file tree
Showing 182 changed files with 1,761 additions and 950 deletions.
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
> **_NOTE:_** This is an auto-generated file. Please edit docs/docs/en/getting-started/contributing/CONTRIBUTING.md instead.
> **_NOTE:_** This is an auto-generated file. Please edit docs/docs/en/contributing/CONTRIBUTING.md instead.
# Development

Expand Down
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ With FastAgency, you can create interactive applications using various interface

FastAgency currently supports workflows defined using AutoGen and provides options for different types of applications:

- **Console**: Use the [ConsoleIO](https://fastagency.ai/latest/api/fastagency/core/io/console/ConsoleIO/) interface for command-line based interaction. This is ideal for developing and testing workflows in a text-based environment.
- **Mesop**: Utilize [Mesop](https://google.github.io/mesop/) with [MesopIO](https://fastagency.ai/latest/api/fastagency/core/io/mesop/MesopIO/) for web-based applications. This interface is suitable for creating web applications with a user-friendly interface.
- **Console**: Use the [ConsoleUI](https://fastagency.ai/latest/api/fastagency/ui/console/ConsoleUI/) interface for command-line based interaction. This is ideal for developing and testing workflows in a text-based environment.
- **Mesop**: Utilize [Mesop](https://google.github.io/mesop/) with [MesopUI](https://fastagency.ai/latest/api/fastagency/ui/mesop/MesopUI/) for web-based applications. This interface is suitable for creating web applications with a user-friendly interface.

We are also working on adding support for other frameworks, such as [CrewAI](https://www.crewai.com/), to broaden the scope and capabilities of FastAgency. Stay tuned for updates on these integrations.

Expand Down Expand Up @@ -92,14 +92,14 @@ import os

from autogen.agentchat import ConversableAgent

from fastagency.core import Chatable
from fastagency.core.runtimes.autogen.base import AutoGenWorkflows
from fastagency.core.io.console import ConsoleIO
from fastagency import UI
from fastagency.runtimes.autogen.base import AutoGenWorkflows
from fastagency.ui.console import ConsoleUI

from fastagency import FastAgency
```

For Console applications, import `ConsoleIO` to handle command-line input and output.
For Console applications, import `ConsoleUI` to handle command-line input and output.


### Define Workflow
Expand All @@ -120,7 +120,7 @@ llm_config = {
wf = AutoGenWorkflows()

@wf.register(name="simple_learning", description="Student and teacher learning chat")
def simple_workflow(io: Chatable, initial_message: str, session_id: str) -> str:
def simple_workflow(ui: UI, initial_message: str, session_id: str) -> str:
student_agent = ConversableAgent(
name="Student_Agent",
system_message="You are a student willing to learn.",
Expand Down Expand Up @@ -149,9 +149,9 @@ This code snippet sets up a simple learning chat between a student and a teacher
Next, define your FastAgency application. This ties together your workflow and the interface you chose:

```python
from fastagency.core.io.console import ConsoleIO
from fastagency.ui.console import ConsoleUI

app = FastAgency(wf=wf, io=ConsoleIO())
app = FastAgency(wf=wf, io=ConsoleUI())
```

## Run Application
Expand Down
4 changes: 1 addition & 3 deletions docs/docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,7 @@
EN_DOCS_DIR = DOCS_DIR / "en"
EN_INDEX_PATH = EN_DOCS_DIR / "index.md"
README_PATH = BASE_DIR.parent / "README.md"
EN_CONTRIBUTING_PATH = (
EN_DOCS_DIR / "getting-started" / "contributing" / "CONTRIBUTING.md"
)
EN_CONTRIBUTING_PATH = EN_DOCS_DIR / "contributing" / "CONTRIBUTING.md"
CONTRIBUTING_PATH = BASE_DIR.parent / "CONTRIBUTING.md"


Expand Down
167 changes: 87 additions & 80 deletions docs/docs/SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,31 @@ search:
---
- Getting Started
- [Getting Started](getting-started/index.md)
- Tutorial
- [Getting Started](tutorial/index.md)
- [Using External REST APIs](tutorial/external-rest-apis/index.md)
- [Using External REST APIs with security](tutorial/external-rest-apis/security.md)
- [Custom User Interactions](tutorial/custom-user-interactions/index.md)
- [User guide](user-guide/index.md)
- [Runtimes](user-guide/runtime/index.md)
- [AutoGen](user-guide/runtime/autogen/index.md)
- [User interaction](user-guide/runtime/autogen/interactions.md)
- [CrewAI](user-guide/runtime/crewai/basics.md)
- [UI](user-guide/ui/index.md)
- [Console](user-guide/ui/console/basics.md)
- [Mesop](user-guide/ui/mesop/basics.md)
- [FastAPI](user-guide/ui/fastapi/basics.md)
- [API-s](user-guide/api/index.md)
- [OpenAPI](user-guide/api/openapi/index.md)
- [Security](user-guide/api/security.md)
- [Testing](user-guide/testing/index.md)
- [CLI](user-guide/cli/index.md)
- Reference
- fastagency
- [FastAgency](api/fastagency/FastAgency.md)
- [FunctionCallExecution](api/fastagency/FunctionCallExecution.md)
- [IOMessage](api/fastagency/IOMessage.md)
- [MultipleChoice](api/fastagency/MultipleChoice.md)
- [SuggestedFunctionCall](api/fastagency/SuggestedFunctionCall.md)
- [TextInput](api/fastagency/TextInput.md)
- [TextMessage](api/fastagency/TextMessage.md)
- [UI](api/fastagency/UI.md)
- [Workflows](api/fastagency/Workflows.md)
- api
- openapi
- [OpenAPI](api/fastagency/api/openapi/OpenAPI.md)
Expand All @@ -30,6 +47,23 @@ search:
- [HTTPBearer](api/fastagency/api/openapi/security/HTTPBearer.md)
- security_schema_visitor
- [custom_visitor](api/fastagency/api/openapi/security_schema_visitor/custom_visitor.md)
- app
- [FastAgency](api/fastagency/app/FastAgency.md)
- base
- [AskingMessage](api/fastagency/base/AskingMessage.md)
- [FunctionCallExecution](api/fastagency/base/FunctionCallExecution.md)
- [IOMessage](api/fastagency/base/IOMessage.md)
- [IOMessageVisitor](api/fastagency/base/IOMessageVisitor.md)
- [MultipleChoice](api/fastagency/base/MultipleChoice.md)
- [Runnable](api/fastagency/base/Runnable.md)
- [SuggestedFunctionCall](api/fastagency/base/SuggestedFunctionCall.md)
- [SystemMessage](api/fastagency/base/SystemMessage.md)
- [TextInput](api/fastagency/base/TextInput.md)
- [TextMessage](api/fastagency/base/TextMessage.md)
- [UI](api/fastagency/base/UI.md)
- [WorkflowCompleted](api/fastagency/base/WorkflowCompleted.md)
- [Workflows](api/fastagency/base/Workflows.md)
- [run_workflow](api/fastagency/base/run_workflow.md)
- cli
- cli
- [callback](api/fastagency/cli/cli/callback.md)
Expand All @@ -49,80 +83,16 @@ search:
- [FastAgencyCLIError](api/fastagency/cli/exceptions/FastAgencyCLIError.md)
- logging
- [setup_logging](api/fastagency/cli/logging/setup_logging.md)
- core
- [Chatable](api/fastagency/core/Chatable.md)
- [FastAgency](api/fastagency/core/FastAgency.md)
- [FunctionCallExecution](api/fastagency/core/FunctionCallExecution.md)
- [IOMessage](api/fastagency/core/IOMessage.md)
- [MultipleChoice](api/fastagency/core/MultipleChoice.md)
- [SuggestedFunctionCall](api/fastagency/core/SuggestedFunctionCall.md)
- [TextInput](api/fastagency/core/TextInput.md)
- [TextMessage](api/fastagency/core/TextMessage.md)
- [Workflows](api/fastagency/core/Workflows.md)
- app
- [FastAgency](api/fastagency/core/app/FastAgency.md)
- base
- [AskingMessage](api/fastagency/core/base/AskingMessage.md)
- [Chatable](api/fastagency/core/base/Chatable.md)
- [FunctionCallExecution](api/fastagency/core/base/FunctionCallExecution.md)
- [IOMessage](api/fastagency/core/base/IOMessage.md)
- [IOMessageVisitor](api/fastagency/core/base/IOMessageVisitor.md)
- [MultipleChoice](api/fastagency/core/base/MultipleChoice.md)
- [Runnable](api/fastagency/core/base/Runnable.md)
- [SuggestedFunctionCall](api/fastagency/core/base/SuggestedFunctionCall.md)
- [SystemMessage](api/fastagency/core/base/SystemMessage.md)
- [TextInput](api/fastagency/core/base/TextInput.md)
- [TextMessage](api/fastagency/core/base/TextMessage.md)
- [WorkflowCompleted](api/fastagency/core/base/WorkflowCompleted.md)
- [Workflows](api/fastagency/core/base/Workflows.md)
- [run_workflow](api/fastagency/core/base/run_workflow.md)
- io
- console
- [ConsoleIO](api/fastagency/core/io/console/ConsoleIO.md)
- base
- [ConsoleIO](api/fastagency/core/io/console/base/ConsoleIO.md)
- mesop
- [MesopIO](api/fastagency/core/io/mesop/MesopIO.md)
- base
- [MesopIO](api/fastagency/core/io/mesop/base/MesopIO.md)
- [MesopMessage](api/fastagency/core/io/mesop/base/MesopMessage.md)
- [run_workflow](api/fastagency/core/io/mesop/base/run_workflow.md)
- components
- inputs
- [input_prompt](api/fastagency/core/io/mesop/components/inputs/input_prompt.md)
- [input_user_feedback](api/fastagency/core/io/mesop/components/inputs/input_user_feedback.md)
- ui_common
- [darken_hex_color](api/fastagency/core/io/mesop/components/ui_common/darken_hex_color.md)
- [header](api/fastagency/core/io/mesop/components/ui_common/header.md)
- data_model
- [Conversation](api/fastagency/core/io/mesop/data_model/Conversation.md)
- [ConversationMessage](api/fastagency/core/io/mesop/data_model/ConversationMessage.md)
- [State](api/fastagency/core/io/mesop/data_model/State.md)
- main
- [conversation_box](api/fastagency/core/io/mesop/main/conversation_box.md)
- [conversation_starter_box](api/fastagency/core/io/mesop/main/conversation_starter_box.md)
- [get_workflows](api/fastagency/core/io/mesop/main/get_workflows.md)
- [home_page](api/fastagency/core/io/mesop/main/home_page.md)
- [past_conversations_box](api/fastagency/core/io/mesop/main/past_conversations_box.md)
- [send_prompt](api/fastagency/core/io/mesop/main/send_prompt.md)
- message
- [MesopGUIMessageVisitor](api/fastagency/core/io/mesop/message/MesopGUIMessageVisitor.md)
- [consume_responses](api/fastagency/core/io/mesop/message/consume_responses.md)
- [handle_message](api/fastagency/core/io/mesop/message/handle_message.md)
- [message_box](api/fastagency/core/io/mesop/message/message_box.md)
- send_prompt
- [send_prompt_to_autogen](api/fastagency/core/io/mesop/send_prompt/send_prompt_to_autogen.md)
- [send_user_feedback_to_autogen](api/fastagency/core/io/mesop/send_prompt/send_user_feedback_to_autogen.md)
- runtimes
- autogen
- [AutoGenWorkflows](api/fastagency/core/runtimes/autogen/AutoGenWorkflows.md)
- [IOStreamAdapter](api/fastagency/core/runtimes/autogen/IOStreamAdapter.md)
- base
- [AutoGenWorkflows](api/fastagency/core/runtimes/autogen/base/AutoGenWorkflows.md)
- [CurrentMessage](api/fastagency/core/runtimes/autogen/base/CurrentMessage.md)
- [IOStreamAdapter](api/fastagency/core/runtimes/autogen/base/IOStreamAdapter.md)
- logging
- [get_logger](api/fastagency/logging/get_logger.md)
- runtime
- autogen
- [AutoGenWorkflows](api/fastagency/runtime/autogen/AutoGenWorkflows.md)
- [IOStreamAdapter](api/fastagency/runtime/autogen/IOStreamAdapter.md)
- base
- [AutoGenWorkflows](api/fastagency/runtime/autogen/base/AutoGenWorkflows.md)
- [CurrentMessage](api/fastagency/runtime/autogen/base/CurrentMessage.md)
- [IOStreamAdapter](api/fastagency/runtime/autogen/base/IOStreamAdapter.md)
- studio
- app
- [ChatRequest](api/fastagency/studio/app/ChatRequest.md)
Expand Down Expand Up @@ -266,7 +236,44 @@ search:
- [InvalidGHTokenError](api/fastagency/studio/saas_app_generator/InvalidGHTokenError.md)
- [SaasAppGenerator](api/fastagency/studio/saas_app_generator/SaasAppGenerator.md)
- [main](api/fastagency/studio/saas_app_generator/main.md)
- Contributing
- [Development](getting-started/contributing/CONTRIBUTING.md)
- [Documentation](getting-started/contributing/docs.md)
- ui
- console
- [ConsoleUI](api/fastagency/ui/console/ConsoleUI.md)
- base
- [ConsoleUI](api/fastagency/ui/console/base/ConsoleUI.md)
- mesop
- [MesopUI](api/fastagency/ui/mesop/MesopUI.md)
- base
- [MesopMessage](api/fastagency/ui/mesop/base/MesopMessage.md)
- [MesopUI](api/fastagency/ui/mesop/base/MesopUI.md)
- [run_workflow](api/fastagency/ui/mesop/base/run_workflow.md)
- components
- inputs
- [input_prompt](api/fastagency/ui/mesop/components/inputs/input_prompt.md)
- [input_user_feedback](api/fastagency/ui/mesop/components/inputs/input_user_feedback.md)
- ui_common
- [darken_hex_color](api/fastagency/ui/mesop/components/ui_common/darken_hex_color.md)
- [header](api/fastagency/ui/mesop/components/ui_common/header.md)
- data_model
- [Conversation](api/fastagency/ui/mesop/data_model/Conversation.md)
- [ConversationMessage](api/fastagency/ui/mesop/data_model/ConversationMessage.md)
- [State](api/fastagency/ui/mesop/data_model/State.md)
- main
- [conversation_box](api/fastagency/ui/mesop/main/conversation_box.md)
- [conversation_starter_box](api/fastagency/ui/mesop/main/conversation_starter_box.md)
- [get_ui](api/fastagency/ui/mesop/main/get_ui.md)
- [home_page](api/fastagency/ui/mesop/main/home_page.md)
- [past_conversations_box](api/fastagency/ui/mesop/main/past_conversations_box.md)
- [send_prompt](api/fastagency/ui/mesop/main/send_prompt.md)
- message
- [MesopGUIMessageVisitor](api/fastagency/ui/mesop/message/MesopGUIMessageVisitor.md)
- [consume_responses](api/fastagency/ui/mesop/message/consume_responses.md)
- [handle_message](api/fastagency/ui/mesop/message/handle_message.md)
- [message_box](api/fastagency/ui/mesop/message/message_box.md)
- send_prompt
- [send_prompt_to_autogen](api/fastagency/ui/mesop/send_prompt/send_prompt_to_autogen.md)
- [send_user_feedback_to_autogen](api/fastagency/ui/mesop/send_prompt/send_user_feedback_to_autogen.md)
- [Contributing](contributing/index.md)
- [Development](contributing/CONTRIBUTING.md)
- [Documentation](contributing/docs.md)
- [Release Notes](release.md)
11 changes: 11 additions & 0 deletions docs/docs/en/api/fastagency/FunctionCallExecution.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
# 0.5 - API
# 2 - Release
# 3 - Contributing
# 5 - Template Page
# 10 - Default
search:
boost: 0.5
---

::: fastagency.FunctionCallExecution
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ search:
boost: 0.5
---

::: fastagency.core.Chatable
::: fastagency.IOMessage
11 changes: 11 additions & 0 deletions docs/docs/en/api/fastagency/MultipleChoice.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
# 0.5 - API
# 2 - Release
# 3 - Contributing
# 5 - Template Page
# 10 - Default
search:
boost: 0.5
---

::: fastagency.MultipleChoice
11 changes: 11 additions & 0 deletions docs/docs/en/api/fastagency/SuggestedFunctionCall.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
# 0.5 - API
# 2 - Release
# 3 - Contributing
# 5 - Template Page
# 10 - Default
search:
boost: 0.5
---

::: fastagency.SuggestedFunctionCall
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ search:
boost: 0.5
---

::: fastagency.core.TextInput
::: fastagency.TextInput
11 changes: 11 additions & 0 deletions docs/docs/en/api/fastagency/TextMessage.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
# 0.5 - API
# 2 - Release
# 3 - Contributing
# 5 - Template Page
# 10 - Default
search:
boost: 0.5
---

::: fastagency.TextMessage
11 changes: 11 additions & 0 deletions docs/docs/en/api/fastagency/UI.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
# 0.5 - API
# 2 - Release
# 3 - Contributing
# 5 - Template Page
# 10 - Default
search:
boost: 0.5
---

::: fastagency.UI
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ search:
boost: 0.5
---

::: fastagency.core.Workflows
::: fastagency.Workflows
11 changes: 11 additions & 0 deletions docs/docs/en/api/fastagency/app/FastAgency.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
# 0.5 - API
# 2 - Release
# 3 - Contributing
# 5 - Template Page
# 10 - Default
search:
boost: 0.5
---

::: fastagency.app.FastAgency
11 changes: 11 additions & 0 deletions docs/docs/en/api/fastagency/base/AskingMessage.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
# 0.5 - API
# 2 - Release
# 3 - Contributing
# 5 - Template Page
# 10 - Default
search:
boost: 0.5
---

::: fastagency.base.AskingMessage
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ search:
boost: 0.5
---

::: fastagency.core.FunctionCallExecution
::: fastagency.base.FunctionCallExecution
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ search:
boost: 0.5
---

::: fastagency.core.IOMessage
::: fastagency.base.IOMessage
11 changes: 11 additions & 0 deletions docs/docs/en/api/fastagency/base/IOMessageVisitor.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
# 0.5 - API
# 2 - Release
# 3 - Contributing
# 5 - Template Page
# 10 - Default
search:
boost: 0.5
---

::: fastagency.base.IOMessageVisitor
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ search:
boost: 0.5
---

::: fastagency.core.MultipleChoice
::: fastagency.base.MultipleChoice
Loading

0 comments on commit 5f32df3

Please sign in to comment.