generated from oracle/template-repo
-
Notifications
You must be signed in to change notification settings - Fork 19
[GH Pages] Splitting of usage examples in Adapters in different pages #40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
Davide-Cocco
wants to merge
1
commit into
gh-pages
Choose a base branch
from
origin/gh-pages-split-import-export-adapter-doc-pages
base: gh-pages
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| # Sphinx build info version 1 | ||
| # This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done. | ||
| config: 25e0df0aeee9154918a458892e36d9a2 | ||
| tags: bc2396be64e3227722de93eb099ad131 | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this folder .doctrees pushed by mistake? we didn't have it before |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+95.4 KB
development/.doctrees/howtoguides/howto_agent_with_remote_tools.doctree
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+56.1 KB
development/.doctrees/howtoguides/howto_execute_agentspec_across_frameworks.doctree
Binary file not shown.
Binary file added
BIN
+33 KB
development/.doctrees/howtoguides/howto_execute_agentspec_with_wayflow.doctree
Binary file not shown.
Binary file added
BIN
+101 KB
development/.doctrees/howtoguides/howto_flow_with_conditional_branches.doctree
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+73.4 KB
development/.doctrees/howtoguides/howto_llm_from_different_providers.doctree
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
12 changes: 12 additions & 0 deletions
12
development/_sources/adapters/autogen/autogen_to_spec.rst.txt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
|
|
||
| .. _autogentospec: | ||
|
|
||
| Convert AutoGen agents to Agent Spec | ||
| ==================================== | ||
|
|
||
| This usage example showcases how an AutoGen Agent can be converted into an Agent Spec configuration in JSON format. | ||
|
|
||
| .. literalinclude:: ../../code_examples/adapter_autogen_quickstart.py | ||
| :language: python | ||
| :start-after: .. start-runtime_to_agentspec | ||
| :end-before: .. end-runtime_to_agentspec |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,43 @@ | ||
| .. _autogenadapter: | ||
|
|
||
| ============================= | ||
| Agent Spec Adapters - AutoGen | ||
| ============================= | ||
|
|
||
|
|
||
| .. figure:: ../../_static/icons/autogen-adapter.jpg | ||
| :align: center | ||
| :scale: 20% | ||
| :alt: Agent Spec adapter for AutoGen | ||
|
|
||
| ↑ With the **Agent Spec adapter for AutoGen**, you can easily import agents from external frameworks using Agent Spec and run them with AutoGen. | ||
|
|
||
|
|
||
| *Microsoft AutoGen supports the development of multi-agent conversational systems, | ||
| allowing agents to communicate and collaborate to solve tasks.* | ||
|
|
||
|
|
||
| Get started | ||
| =========== | ||
|
|
||
| To get started, set up your Python environment (Python 3.10 to 3.12 required), | ||
| and then install the PyAgentSpec package with the AutoGen extension. | ||
|
|
||
|
|
||
| .. code-block:: bash | ||
|
|
||
| python -m venv .venv | ||
| source .venv/bin/activate # On Windows: .venv\Scripts\activate | ||
| pip install "pyagentspec[autogen]" | ||
|
|
||
|
|
||
| Usage Examples | ||
| ============== | ||
|
|
||
| You are now ready to use the adapter to: | ||
|
|
||
| .. toctree:: | ||
| :maxdepth: 1 | ||
|
|
||
| Run Agent Spec configurations with AutoGen <spec_to_autogen> | ||
| Convert AutoGen agents to Agent Spec <autogen_to_spec> |
12 changes: 12 additions & 0 deletions
12
development/_sources/adapters/autogen/spec_to_autogen.rst.txt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| .. _spectoautogen: | ||
|
|
||
| Run Agent Spec configurations with AutoGen | ||
| ========================================== | ||
|
|
||
| This usage example showcases the creation of a simple Agent Spec Agent, subsequently serialized into JSON and converted into an AutoGen | ||
| assistant. Also includes mapping of a `ServerTool` and execution of the conversation. | ||
|
|
||
| .. literalinclude:: ../../code_examples/adapter_autogen_quickstart.py | ||
| :language: python | ||
| :start-after: .. start-agentspec_to_runtime | ||
| :end-before: .. end-agentspec_to_runtime |
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,44 @@ | ||
| .. _langgraphadapter: | ||
|
|
||
| =============================== | ||
| Agent Spec Adapters - LangGraph | ||
| =============================== | ||
|
|
||
|
|
||
| .. figure:: ../../_static/icons/langgraph-adapter.jpg | ||
| :align: center | ||
| :scale: 18% | ||
| :alt: Agent Spec adapter for LangGraph | ||
|
|
||
| ↑ With the **Agent Spec adapter for LangGraph**, you can easily import agents from external frameworks using Agent Spec and run them with LangGraph. | ||
|
|
||
|
|
||
| *LangGraph facilitates the creation and management of long-running, stateful agents | ||
| with durable execution and human-in-the-loop capabilities.* | ||
|
|
||
|
|
||
| Get started | ||
| =========== | ||
|
|
||
| To get started, set up your Python environment (Python 3.10 or newer required), | ||
| and then install the PyAgentSpec package with the LangGraph extension. | ||
|
|
||
|
|
||
| .. code-block:: bash | ||
|
|
||
| python -m venv .venv | ||
| source .venv/bin/activate # On Windows: .venv\Scripts\activate | ||
| pip install "pyagentspec[langgraph]" | ||
|
|
||
|
|
||
|
|
||
| Usage Examples | ||
| ============== | ||
|
|
||
| You are now ready to use the adapter to: | ||
|
|
||
| .. toctree:: | ||
| :maxdepth: 1 | ||
|
|
||
| Run Agent Spec configurations with LangGraph <spec_to_langgraph> | ||
| Convert LangGraph agents to Agent Spec <langgraph_to_spec> |
11 changes: 11 additions & 0 deletions
11
development/_sources/adapters/langgraph/langgraph_to_spec.rst.txt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| .. _langgraphtospec: | ||
|
|
||
| Convert LangGraph agents to Agent Spec | ||
| ====================================== | ||
|
|
||
| This usage example showcases how a LangGraph Agent can be converted into an Agent Spec configuration in JSON format. | ||
|
|
||
| .. literalinclude:: ../../code_examples/adapter_langgraph_quickstart.py | ||
| :language: python | ||
| :start-after: .. start-runtime_to_agentspec | ||
| :end-before: .. end-runtime_to_agentspec |
12 changes: 12 additions & 0 deletions
12
development/_sources/adapters/langgraph/spec_to_langgraph.rst.txt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| .. _spectolanggraph: | ||
|
|
||
| Run Agent Spec configurations with LangGraph | ||
| ============================================ | ||
|
|
||
| This usage example showcases the creation of a simple Agent Spec Agent, subsequently serialized into JSON and converted into a LangGraph | ||
| assistant. Also includes mapping of a `ServerTool` and execution of the conversation. | ||
|
|
||
| .. literalinclude:: ../../code_examples/adapter_langgraph_quickstart.py | ||
| :language: python | ||
| :start-after: .. start-agentspec_to_runtime | ||
| :end-before: .. end-agentspec_to_runtime |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
development/_sources/adapters/wayflow/spec_to_wayflow.rst.txt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| .. _spectowayflow: | ||
|
|
||
| Run Agent Spec configurations with WayFlow | ||
| ========================================== | ||
|
|
||
| This usage example showcases the creation of a simple Agent Spec Agent, subsequently serialized into JSON and converted into a WayFlow | ||
| assistant. Also includes mapping of a `ServerTool` and execution of the conversation. | ||
|
|
||
| .. literalinclude:: ../../code_examples/adapter_wayflow_quickstart.py | ||
| :language: python | ||
| :start-after: .. start-agentspec_to_runtime | ||
| :end-before: .. end-agentspec_to_runtime |
11 changes: 11 additions & 0 deletions
11
development/_sources/adapters/wayflow/wayflow_to_spec.rst.txt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| .. _wayflowtospec: | ||
|
|
||
| Convert WayFlow agents to Agent Spec | ||
| ==================================== | ||
|
|
||
| This usage example shows how a WayFlow Agent can be converted into an Agent Spec JSON format. | ||
|
|
||
| .. literalinclude:: ../../code_examples/adapter_wayflow_quickstart.py | ||
| :language: python | ||
| :start-after: .. start-runtime_to_agentspec | ||
| :end-before: .. end-runtime_to_agentspec |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file should not be committed