Skip to content
Discussion options

You must be logged in to vote

Responses API PR has been merged.

I've just submitted #405 for review, which adds provider tools.

Once that is merged, you'll be able to do the following:

use Prism\Prism\Prism;
use Prism\Prism\ValueObjects\ProviderTool;

Prism::text()
    ->using('openai', 'gpt-4.1')
    ->withPrompt('Solve the equation 3x + 10 = 14.')
    ->withProviderTools([new ProviderTool(type: 'web_search_preview')])
    ->asText();

Or with options:

use Prism\Prism\Prism;
use Prism\Prism\ValueObjects\ProviderTool;

Prism::text()
    ->using('openai', 'gpt-4.1')
    ->withPrompt('Solve the equation 3x + 10 = 14.')
    ->withProviderTools([
        new ProviderTool(type: 'web_search_preview', options: [
            'u…

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@hellodit
Comment options

@ChrisB-TL
Comment options

Answer selected by hellodit
@hellodit
Comment options

@aleex1848
Comment options

@ChrisB-TL
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants