Skip to content

Releases: neuron-core/neuron-ai

2.2.1

12 Sep 11:02

Choose a tag to compare

fix openai tool call warning

OpenAI Responses API

12 Sep 10:52

Choose a tag to compare

OpenAI Responses API Provider

OpenAI marked completions API as deprecated and now it's promoting the transition to responses API in order to take advantage of the latest features: https://platform.openai.com/docs/guides/migrate-to-responses

To keep the compatibility with all other provders that use the OpenAI completion API format, we implemented the Responses API a seprarate provider OpenAIResponses.

You can attach this provider to your agent as usual:

class MyAgent extends Agent
{
    public function provider(): AIProviderInterface
    {
        return new OpenAIResponses(
            key: 'OPENAI_API_KEY',
            model: 'OPENAI_MODEL',
        );
    }
}

Provider Tools

With the OpenAI responses API compatibility we decided to bring into the framework also the possibility to use provider specific tools like web_search, file_search, etc offered by many providers, like: OpenAI, Gemini, Anthropic.

To instruct your agent to use a specific provider tool you can add a ProviderTool class instance in the tools lists:

use NeuronAI\Tools\ProviderTool;

class MyAgent extends Agent
{
    public function provider(): AIProviderInterface
    {
        return new OpenAIResponses(
            key: 'OPENAI_API_KEY',
            model: 'OPENAI_MODEL',
        );
    }

    public function tools(): array
    {
        return [
            ProviderTool:make(
                type: 'web_search'
            )->setOptions([...]),

            // Add other tools and toolkits as usual...
        ];
    }
}

Consider that providers has a lot of limitations in using their internal tools. The most flexible way to add capabilities to your agent remains the use of Tools & Toolkits.

2.1.1: Merge pull request #293 from joecharm/PineconeFilterPatch

11 Sep 16:18
761fb8e

Choose a tag to compare

fix: correct filter key in similarity search request

2.1.0

10 Sep 07:43

Choose a tag to compare

MCP Streamable HTTP Transport

This release introduce the support to connect agents to remote MCP servers using URL instead of a commnand.

Remote servers are accessible via URLs and typically require authentication. You can use the token field in the configuration array, which will be used as an authorization token to communicate with the server:

class MyAgent extends Agent 
{
    protected function provider(): AIProviderInterface
    {...}
    
    protected function tools(): array
    {
        return [
            ...McpConnector::make([
                'url' => 'https://mcp.example.com',
                'token' => 'BEARER_TOKEN',
                'timeout' => 10,
            ])->tools(),
        ];
    }
}

The McpConnector automatically recognizes the URL and will use the StreamableHttpTransport to connect to the MCP server.

2.0.8

08 Sep 09:41

Choose a tag to compare

doc

2.0.7

08 Sep 08:45

Choose a tag to compare

Merge remote-tracking branch 'origin/2.x' into 2.x

2.0.6

05 Sep 09:51

Choose a tag to compare

fix openai like provider

2.0.5

04 Sep 16:16

Choose a tag to compare

toolkit with method

2.0.4

04 Sep 12:28

Choose a tag to compare

monitoring

2.0.3

02 Sep 16:38

Choose a tag to compare

Merge branch 'main' into 2.x