Releases: neuron-core/neuron-ai
2.2.1
fix openai tool call warning
OpenAI Responses API
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
fix: correct filter key in similarity search request
2.1.0
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
doc
2.0.7
Merge remote-tracking branch 'origin/2.x' into 2.x
2.0.6
fix openai like provider
2.0.5
toolkit with method
2.0.4
monitoring
2.0.3
Merge branch 'main' into 2.x