Skip to content

Commit

Permalink
fix docs (#4589)
Browse files Browse the repository at this point in the history
* fix doc on distributed runtime

* Fix references

* Update references

* Fix import paths in user guide notebooks for code executor components
  • Loading branch information
ekzhu authored Dec 6, 2024
1 parent 8707729 commit fa550c2
Show file tree
Hide file tree
Showing 23 changed files with 2,256 additions and 2,256 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
LLMMessage,
)
from autogen_core import DefaultSubscription, DefaultTopicId
from autogen_core.components.code_executor import LocalCommandLineCodeExecutor
from autogen_ext.code_executors.local import LocalCommandLineCodeExecutor
from autogen_core.components.models import AssistantMessage

from autogen_magentic_one.markdown_browser import MarkdownConverter, UnsupportedFormatException
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
LLMMessage,
)
from autogen_core import DefaultSubscription, DefaultTopicId
from autogen_core.components.code_executor import LocalCommandLineCodeExecutor
from autogen_ext.code_executors.local import LocalCommandLineCodeExecutor
from autogen_core.components.models import AssistantMessage

from autogen_magentic_one.markdown_browser import MarkdownConverter, UnsupportedFormatException
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from autogen_core import SingleThreadedAgentRuntime
from autogen_core.application.logging import EVENT_LOGGER_NAME
from autogen_core import DefaultSubscription, DefaultTopicId
from autogen_core.components.code_executor import LocalCommandLineCodeExecutor
from autogen_ext.code_executors.local import LocalCommandLineCodeExecutor
from autogen_core.components.models import (
UserMessage,
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from autogen_core import SingleThreadedAgentRuntime
from autogen_core.application.logging import EVENT_LOGGER_NAME
from autogen_core import DefaultSubscription, DefaultTopicId
from autogen_core.components.code_executor import LocalCommandLineCodeExecutor
from autogen_ext.code_executors.local import LocalCommandLineCodeExecutor
from autogen_core.components.models import (
ChatCompletionClient,
UserMessage,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class UserProxyAgent(BaseChatAgent):
Using :class:`UserProxyAgent` puts a running team in a temporary blocked
state until the user responds. So it is important to time out the user input
function and cancel using the :class:`~autogen_core.base.CancellationToken` if the user does not respond.
function and cancel using the :class:`~autogen_core.CancellationToken` if the user does not respond.
The input function should also handle exceptions and return a default response if needed.
For typical use cases that involve
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ async def main() -> None:
asyncio.run(main())
Example using the :class:`~autogen_core.base.CancellationToken` to cancel the task:
Example using the :class:`~autogen_core.CancellationToken` to cancel the task:
.. code-block:: python
Expand Down Expand Up @@ -310,7 +310,7 @@ async def main() -> None:
asyncio.run(main())
Example using the :class:`~autogen_core.base.CancellationToken` to cancel the task:
Example using the :class:`~autogen_core.CancellationToken` to cancel the task:
.. code-block:: python
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def release(self) -> None:


class SequentialRoutedAgent(RoutedAgent):
"""A subclass of :class:`autogen_core.components.RoutedAgent` that ensures
"""A subclass of :class:`autogen_core.RoutedAgent` that ensures
messages are handled sequentially in the order they arrive."""

def __init__(self, description: str) -> None:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@
"source": [
"In this example, we will use a tool for Python code execution.\n",
"First, we create a Docker-based command-line code executor\n",
"using {py:class}`~autogen_core.components.code_executor.docker_executorCommandLineCodeExecutor`,\n",
"using {py:class}`~autogen_ext.code_executors.docker.DockerCommandLineCodeExecutor`,\n",
"and then use it to instantiate a built-in Python code execution tool\n",
"{py:class}`~autogen_core.components.tools.PythonCodeExecutionTool`\n",
"that runs code in a Docker container."
Expand Down
Loading

0 comments on commit fa550c2

Please sign in to comment.