Skip to content

Commit f0f2623

Browse files
committed
dev
1 parent 42cfee1 commit f0f2623

File tree

6 files changed

+22
-1
lines changed

6 files changed

+22
-1
lines changed

docs/.doctrees/LLMs.doctree

4.8 KB
Binary file not shown.

docs/.doctrees/environment.pickle

5.99 KB
Binary file not shown.

docs/LLMs.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,11 @@ <h1>Large Language Models (LLMs) features<a class="headerlink" href="#large-lang
255255
<p>-<strong>Gemini</strong>, which provides free-tier access to powerful models—ideal for getting started with no cost</p>
256256
<p>-<strong>Deepseek</strong>, a cost-effective alternative via the OpenAI SDK (for users who don’t have access to Gemini)</p>
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>
258+
<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>
259+
<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>
258263
<section id="verify-the-native-sdks">
259264
<h2>1. Verify the Native SDKs<a class="headerlink" href="#verify-the-native-sdks" title="Link to this heading"></a></h2>
260265
<section id="google-genai-gemini">

docs/_sources/LLMs.md.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,14 @@ Our library offers a lightweight, unified interface for interacting with Large L
77

88
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.
99

10+
**Why It Matters**: 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.
11+
12+
13+
**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.
14+
15+
```{Future Direction}
16+
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+
```
1018

1119
### 1. Verify the Native SDKs
1220
#### 1.1 Google-GenAI (Gemini)

docs/searchindex.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

source/LLMs.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,14 @@ Our library offers a lightweight, unified interface for interacting with Large L
77

88
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.
99

10+
**Why It Matters**: 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.
11+
12+
13+
**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.
14+
15+
```{Future Direction}
16+
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+
```
1018

1119
### 1. Verify the Native SDKs
1220
#### 1.1 Google-GenAI (Gemini)

0 commit comments

Comments
 (0)