Skip to content

Commit 9ea995d

Browse files
committed
dev
1 parent f0f2623 commit 9ea995d

File tree

5 files changed

+5
-7
lines changed

5 files changed

+5
-7
lines changed

docs/.doctrees/LLMs.doctree

529 Bytes
Binary file not shown.

docs/.doctrees/environment.pickle

874 Bytes
Binary file not shown.

docs/LLMs.html

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -257,9 +257,7 @@ <h1>Large Language Models (LLMs) features<a class="headerlink" href="#large-lang
257257
<p>Instead of relying on heavier frameworks like LangChain, we built our own minimal wrapper to keep things simple: no extra dependencies beyond the provider SDKs, a clean and focused API (generate, translate, count_tokens, etc.), and fast, low-overhead execution.</p>
258258
<p><strong>Why It Matters</strong>: Large Language Models (LLMs) significantly enhance the usability and reproducibility of cognitive task development. They enable researchers to translate configuration files for localization, generate detailed documentation from code, and prototype or refine task variants using natural language—all while avoiding repetitive formatting work. By integrating LLMs directly into the PsyFlow ecosystem, we accelerate development, promote clearer communication, and expand accessibility for both developers and collaborators.</p>
259259
<p><strong>How It Works</strong>: The <code class="docutils literal notranslate"><span class="pre">LLMClient</span></code> class in PsyFlow provides a unified and lightweight interface for interacting with different LLM backends. It abstracts away provider-specific details and offers a simple API with methods like <code class="docutils literal notranslate"><span class="pre">generate()</span></code> for general-purpose generation, <code class="docutils literal notranslate"><span class="pre">translate_config()</span></code> for localizing YAML content, <code class="docutils literal notranslate"><span class="pre">task2doc()</span></code> for auto-generating documentation, <code class="docutils literal notranslate"><span class="pre">test()</span></code> for verifying connection and basic output, and <code class="docutils literal notranslate"><span class="pre">list_models()</span></code> to enumerate available models. This modular interface keeps your workflow consistent and efficient across providers like Gemini and DeepSeek.</p>
260-
<div class="highlight-{Future notranslate"><div class="highlight"><pre><span></span>In addition to using LLMs for documentation and localization, we are actively expanding support for full task generation from natural language. Our experimental `doc2task()` function allows users to convert a free-form task description into a structured, runnable TAPS-compliant task package. This includes generating key files like `main.py`, `run_trial.py`, and `config.yaml`, enabling rapid prototyping of cognitive tasks with minimal manual coding. As this feature evolves, it will form the foundation of an interactive assistant for building, customizing, and sharing reproducible paradigms directly from natural language input.
261-
</pre></div>
262-
</div>
260+
<p>In addition to using LLMs for documentation and localization, we are actively expanding support for full task generation from natural language. Our experimental <code class="docutils literal notranslate"><span class="pre">doc2task()</span></code> function allows users to convert a free-form task description into a structured, runnable TAPS-compliant task package. This includes generating key files like <code class="docutils literal notranslate"><span class="pre">main.py</span></code>, <code class="docutils literal notranslate"><span class="pre">run_trial.py</span></code>, and <code class="docutils literal notranslate"><span class="pre">config.yaml</span></code>, enabling rapid prototyping of cognitive tasks with minimal manual coding. As this feature evolves, it will form the foundation of an interactive assistant for building, customizing, and sharing reproducible paradigms directly from natural language input.</p>
263261
<section id="verify-the-native-sdks">
264262
<h2>1. Verify the Native SDKs<a class="headerlink" href="#verify-the-native-sdks" title="Link to this heading"></a></h2>
265263
<section id="google-genai-gemini">

docs/_sources/LLMs.md.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ Our library offers a lightweight, unified interface for interacting with Large L
1212

1313
**How It Works**: The `LLMClient` class in PsyFlow provides a unified and lightweight interface for interacting with different LLM backends. It abstracts away provider-specific details and offers a simple API with methods like `generate()` for general-purpose generation, `translate_config()` for localizing YAML content, `task2doc()` for auto-generating documentation, `test()` for verifying connection and basic output, and `list_models()` to enumerate available models. This modular interface keeps your workflow consistent and efficient across providers like Gemini and DeepSeek.
1414

15-
```{Future Direction}
15+
1616
In addition to using LLMs for documentation and localization, we are actively expanding support for full task generation from natural language. Our experimental `doc2task()` function allows users to convert a free-form task description into a structured, runnable TAPS-compliant task package. This includes generating key files like `main.py`, `run_trial.py`, and `config.yaml`, enabling rapid prototyping of cognitive tasks with minimal manual coding. As this feature evolves, it will form the foundation of an interactive assistant for building, customizing, and sharing reproducible paradigms directly from natural language input.
17-
```
17+
1818

1919
### 1. Verify the Native SDKs
2020
#### 1.1 Google-GenAI (Gemini)

source/LLMs.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ Our library offers a lightweight, unified interface for interacting with Large L
1212

1313
**How It Works**: The `LLMClient` class in PsyFlow provides a unified and lightweight interface for interacting with different LLM backends. It abstracts away provider-specific details and offers a simple API with methods like `generate()` for general-purpose generation, `translate_config()` for localizing YAML content, `task2doc()` for auto-generating documentation, `test()` for verifying connection and basic output, and `list_models()` to enumerate available models. This modular interface keeps your workflow consistent and efficient across providers like Gemini and DeepSeek.
1414

15-
```{Future Direction}
15+
1616
In addition to using LLMs for documentation and localization, we are actively expanding support for full task generation from natural language. Our experimental `doc2task()` function allows users to convert a free-form task description into a structured, runnable TAPS-compliant task package. This includes generating key files like `main.py`, `run_trial.py`, and `config.yaml`, enabling rapid prototyping of cognitive tasks with minimal manual coding. As this feature evolves, it will form the foundation of an interactive assistant for building, customizing, and sharing reproducible paradigms directly from natural language input.
17-
```
17+
1818

1919
### 1. Verify the Native SDKs
2020
#### 1.1 Google-GenAI (Gemini)

0 commit comments

Comments
 (0)