Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions docs/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Minimal makefile for Sphinx documentation
#

# You can set these variables from the command line, and also
# from the environment for the first two.
SPHINXOPTS ?=
SPHINXBUILD ?= sphinx-build
SOURCEDIR = .
BUILDDIR = _build

# Put it first so that "make" without argument is like "make help".
help:
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

.PHONY: help Makefile

# Catch-all target: route all unknown targets to Sphinx using the new
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
%: Makefile
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
Binary file added docs/_build/doctrees/environment.pickle
Binary file not shown.
Binary file added docs/_build/doctrees/index.doctree
Binary file not shown.
Binary file added docs/_build/doctrees/ldp.agent.doctree
Binary file not shown.
Binary file added docs/_build/doctrees/ldp.alg.doctree
Binary file not shown.
Binary file added docs/_build/doctrees/ldp.alg.optimizer.doctree
Binary file not shown.
Binary file added docs/_build/doctrees/ldp.doctree
Binary file not shown.
Binary file added docs/_build/doctrees/ldp.graph.doctree
Binary file not shown.
Binary file added docs/_build/doctrees/ldp.graph.modules.doctree
Binary file not shown.
Binary file added docs/_build/doctrees/ldp.llms.doctree
Binary file not shown.
Binary file added docs/_build/doctrees/modules.doctree
Binary file not shown.
4 changes: 4 additions & 0 deletions docs/_build/html/.buildinfo
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: e40320371eeccd574e176c1e4efc6498
tags: 645f666f9bcd5a90fca523b33c5a78b7
137 changes: 137 additions & 0 deletions docs/_build/html/_modules/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,137 @@
<!DOCTYPE html>

<html lang="en" data-content_root="../">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Overview: module code &#8212; ldp documentation</title>
<link rel="stylesheet" type="text/css" href="../_static/pygments.css?v=61cd365c" />
<link rel="stylesheet" type="text/css" href="../_static/alabaster.css?v=12dfc556" />
<script src="../_static/documentation_options.js?v=5929fcd5"></script>
<script src="../_static/doctools.js?v=9a2dae69"></script>
<script src="../_static/sphinx_highlight.js?v=dc90522c"></script>
<link rel="index" title="Index" href="../genindex.html" />
<link rel="search" title="Search" href="../search.html" />

<link rel="stylesheet" href="../_static/custom.css" type="text/css" />





</head><body>


<div class="document">
<div class="documentwrapper">
<div class="bodywrapper">


<div class="body" role="main">

<h1>All modules for which code is available</h1>
<ul><li><a href="ldp/agent.html">ldp.agent</a></li>
<ul><li><a href="ldp/agent/agent.html">ldp.agent.agent</a></li>
<li><a href="ldp/agent/agent_client.html">ldp.agent.agent_client</a></li>
<li><a href="ldp/agent/interactive_agent.html">ldp.agent.interactive_agent</a></li>
<li><a href="ldp/agent/memory_agent.html">ldp.agent.memory_agent</a></li>
<li><a href="ldp/agent/react_agent.html">ldp.agent.react_agent</a></li>
<li><a href="ldp/agent/simple_agent.html">ldp.agent.simple_agent</a></li>
<li><a href="ldp/agent/tree_of_thoughts_agent.html">ldp.agent.tree_of_thoughts_agent</a></li>
</ul><li><a href="ldp/alg/algorithms.html">ldp.alg.algorithms</a></li>
<li><a href="ldp/alg/beam_search.html">ldp.alg.beam_search</a></li>
<li><a href="ldp/alg/callbacks.html">ldp.alg.callbacks</a></li>
<li><a href="ldp/alg/datasets.html">ldp.alg.datasets</a></li>
<li><a href="ldp/alg/optimizer.html">ldp.alg.optimizer</a></li>
<ul><li><a href="ldp/alg/optimizer/ape.html">ldp.alg.optimizer.ape</a></li>
<li><a href="ldp/alg/optimizer/memory.html">ldp.alg.optimizer.memory</a></li>
<li><a href="ldp/alg/optimizer/opt.html">ldp.alg.optimizer.opt</a></li>
<li><a href="ldp/alg/optimizer/replay_buffers.html">ldp.alg.optimizer.replay_buffers</a></li>
</ul><li><a href="ldp/alg/rollout.html">ldp.alg.rollout</a></li>
<li><a href="ldp/alg/runners.html">ldp.alg.runners</a></li>
<li><a href="ldp/alg/tree_search.html">ldp.alg.tree_search</a></li>
<li><a href="ldp/data_structures.html">ldp.data_structures</a></li>
<li><a href="ldp/graph/async_torch.html">ldp.graph.async_torch</a></li>
<li><a href="ldp/graph/common_ops.html">ldp.graph.common_ops</a></li>
<li><a href="ldp/graph/gradient_estimators.html">ldp.graph.gradient_estimators</a></li>
<li><a href="ldp/graph/loss_ops.html">ldp.graph.loss_ops</a></li>
<li><a href="ldp/graph/memory.html">ldp.graph.memory</a></li>
<li><a href="ldp/graph/modules/llm_call.html">ldp.graph.modules.llm_call</a></li>
<li><a href="ldp/graph/modules/react.html">ldp.graph.modules.react</a></li>
<li><a href="ldp/graph/modules/reflect.html">ldp.graph.modules.reflect</a></li>
<li><a href="ldp/graph/modules/thought.html">ldp.graph.modules.thought</a></li>
<li><a href="ldp/graph/op_utils.html">ldp.graph.op_utils</a></li>
<li><a href="ldp/graph/ops.html">ldp.graph.ops</a></li>
<li><a href="ldp/graph/torch_ops.html">ldp.graph.torch_ops</a></li>
<li><a href="ldp/llms/chat.html">ldp.llms.chat</a></li>
<li><a href="ldp/llms/embeddings.html">ldp.llms.embeddings</a></li>
<li><a href="ldp/llms/prompts.html">ldp.llms.prompts</a></li>
<li><a href="ldp/main.html">ldp.main</a></li>
<li><a href="ldp/utils.html">ldp.utils</a></li>
<li><a href="tqdm/std.html">tqdm.std</a></li>
</ul>

</div>

</div>
</div>
<div class="sphinxsidebar" role="navigation" aria-label="main navigation">
<div class="sphinxsidebarwrapper">
<h1 class="logo"><a href="../index.html">ldp</a></h1>








<h3>Navigation</h3>
<p class="caption" role="heading"><span class="caption-text">Contents:</span></p>
<ul>
<li class="toctree-l1"><a class="reference internal" href="../modules.html">ldp</a></li>
</ul>

<div class="relations">
<h3>Related Topics</h3>
<ul>
<li><a href="../index.html">Documentation overview</a><ul>
</ul></li>
</ul>
</div>
<search id="searchbox" style="display: none" role="search">
<h3 id="searchlabel">Quick search</h3>
<div class="searchformwrapper">
<form class="search" action="../search.html" method="get">
<input type="text" name="q" aria-labelledby="searchlabel" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"/>
<input type="submit" value="Go" />
</form>
</div>
</search>
<script>document.getElementById('searchbox').style.display = "block"</script>








</div>
</div>
<div class="clearer"></div>
</div>
<div class="footer">
&#169;.

|
Powered by <a href="https://www.sphinx-doc.org/">Sphinx 7.3.7</a>
&amp; <a href="https://alabaster.readthedocs.io">Alabaster 0.7.16</a>

</div>




</body>
</html>
133 changes: 133 additions & 0 deletions docs/_build/html/_modules/ldp/agent.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,133 @@
<!DOCTYPE html>

<html lang="en" data-content_root="../../">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>ldp.agent &#8212; ldp documentation</title>
<link rel="stylesheet" type="text/css" href="../../_static/pygments.css?v=61cd365c" />
<link rel="stylesheet" type="text/css" href="../../_static/alabaster.css?v=12dfc556" />
<script src="../../_static/documentation_options.js?v=5929fcd5"></script>
<script src="../../_static/doctools.js?v=9a2dae69"></script>
<script src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
<link rel="index" title="Index" href="../../genindex.html" />
<link rel="search" title="Search" href="../../search.html" />

<link rel="stylesheet" href="../../_static/custom.css" type="text/css" />





</head><body>


<div class="document">
<div class="documentwrapper">
<div class="bodywrapper">


<div class="body" role="main">

<h1>Source code for ldp.agent</h1><div class="highlight"><pre>
<span></span><span class="kn">from</span> <span class="nn">enum</span> <span class="kn">import</span> <span class="n">StrEnum</span>


<div class="viewcode-block" id="DefaultLLMModelNames">
<a class="viewcode-back" href="../../ldp.agent.html#ldp.agent.DefaultLLMModelNames">[docs]</a>
<span class="k">class</span> <span class="nc">DefaultLLMModelNames</span><span class="p">(</span><span class="n">StrEnum</span><span class="p">):</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;Defaults for LLM models, pin exact versions for performance stability.&quot;&quot;&quot;</span>

<span class="n">OPENAI</span> <span class="o">=</span> <span class="s2">&quot;gpt-4o-2024-08-06&quot;</span> <span class="c1"># Cheap, fast, and decent</span></div>



<span class="c1"># ruff: noqa: E402 # Avoid circular imports</span>

<span class="kn">from</span> <span class="nn">.agent</span> <span class="kn">import</span> <span class="n">Agent</span><span class="p">,</span> <span class="n">AgentConfig</span>
<span class="kn">from</span> <span class="nn">.agent_client</span> <span class="kn">import</span> <span class="n">HTTPAgentClient</span><span class="p">,</span> <span class="n">make_simple_agent_server</span>
<span class="kn">from</span> <span class="nn">.memory_agent</span> <span class="kn">import</span> <span class="n">MemoryAgent</span>
<span class="kn">from</span> <span class="nn">.react_agent</span> <span class="kn">import</span> <span class="n">ReActAgent</span>
<span class="kn">from</span> <span class="nn">.simple_agent</span> <span class="kn">import</span> <span class="n">SimpleAgent</span><span class="p">,</span> <span class="n">SimpleAgentState</span>
<span class="kn">from</span> <span class="nn">.tree_of_thoughts_agent</span> <span class="kn">import</span> <span class="n">TreeofThoughtsAgent</span>

<span class="n">__all__</span> <span class="o">=</span> <span class="p">[</span>
<span class="s2">&quot;Agent&quot;</span><span class="p">,</span>
<span class="s2">&quot;AgentConfig&quot;</span><span class="p">,</span>
<span class="s2">&quot;DefaultLLMModelNames&quot;</span><span class="p">,</span>
<span class="s2">&quot;HTTPAgentClient&quot;</span><span class="p">,</span>
<span class="s2">&quot;MemoryAgent&quot;</span><span class="p">,</span>
<span class="s2">&quot;ReActAgent&quot;</span><span class="p">,</span>
<span class="s2">&quot;SimpleAgent&quot;</span><span class="p">,</span>
<span class="s2">&quot;SimpleAgentState&quot;</span><span class="p">,</span>
<span class="s2">&quot;TreeofThoughtsAgent&quot;</span><span class="p">,</span>
<span class="s2">&quot;make_simple_agent_server&quot;</span><span class="p">,</span>
<span class="p">]</span>
</pre></div>

</div>

</div>
</div>
<div class="sphinxsidebar" role="navigation" aria-label="main navigation">
<div class="sphinxsidebarwrapper">
<h1 class="logo"><a href="../../index.html">ldp</a></h1>








<h3>Navigation</h3>
<p class="caption" role="heading"><span class="caption-text">Contents:</span></p>
<ul>
<li class="toctree-l1"><a class="reference internal" href="../../modules.html">ldp</a></li>
</ul>

<div class="relations">
<h3>Related Topics</h3>
<ul>
<li><a href="../../index.html">Documentation overview</a><ul>
<li><a href="../index.html">Module code</a><ul>
</ul></li>
</ul></li>
</ul>
</div>
<search id="searchbox" style="display: none" role="search">
<h3 id="searchlabel">Quick search</h3>
<div class="searchformwrapper">
<form class="search" action="../../search.html" method="get">
<input type="text" name="q" aria-labelledby="searchlabel" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"/>
<input type="submit" value="Go" />
</form>
</div>
</search>
<script>document.getElementById('searchbox').style.display = "block"</script>








</div>
</div>
<div class="clearer"></div>
</div>
<div class="footer">
&#169;2024, FutureHouse.

|
Powered by <a href="https://www.sphinx-doc.org/">Sphinx 7.3.7</a>
&amp; <a href="https://alabaster.readthedocs.io">Alabaster 0.7.16</a>

</div>




</body>
</html>
Loading
Loading