Skip to content

Fix: add support for explicit textInput in Pipeline execution missing for Gemini#40

Merged
techmahedy merged 1 commit intodoppar:1.xfrom
techmahedy:techmahedy-1.x
Mar 5, 2026
Merged

Fix: add support for explicit textInput in Pipeline execution missing for Gemini#40
techmahedy merged 1 commit intodoppar:1.xfrom
techmahedy:techmahedy-1.x

Conversation

@techmahedy
Copy link
Member

Previously, the execute method relied strictly on the internal $this->messages state.

public function execute(array $params, bool $complete = false, ?string $textInput = null): mixed
{
    $result = $this->platform->invoke($this->model, $textInput ?? $this->messages, $params);

    return $complete ? $result : $result->asText();
}

previously it was

 $result = $this->platform->invoke($this->model, $this->messages, $params);

now we can use

// Old way: Relied on internal message state
$pipeline->execute($params);

// New way: Direct input for one-off tasks
$result = $pipeline->execute(
    params: $params, 
    textInput: 'Hello, how are you?'
);

@techmahedy techmahedy merged commit 8496d48 into doppar:1.x Mar 5, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant