[PR #10453] [CLOSED] server/python_tools: add python tool parsing logic #59944

Closed
opened 2026-04-29 14:52:01 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/10453
Author: @ParthSareen
Created: 4/29/2025
Status: Closed

Base: mainHead: parth/python-function-parsing


📝 Commits (2)

📊 Changes

2 files changed (+495 additions, -0 deletions)

View changed files

server/python_tools.go (+226 -0)
server/python_tools_test.go (+269 -0)

📄 Description

This PR introduces a small python parsing package for supporting python based tool calls.

Only kwargs and empty python functions are currently supported.

The parsing logic can be a bit hard to figure out so feedback to make clearer is appreciated!


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ollama/ollama/pull/10453 **Author:** [@ParthSareen](https://github.com/ParthSareen) **Created:** 4/29/2025 **Status:** ❌ Closed **Base:** `main` ← **Head:** `parth/python-function-parsing` --- ### 📝 Commits (2) - [`611d3a1`](https://github.com/ollama/ollama/commit/611d3a17edb18c8595f9e5e53ea393ef6fb62e20) server: add python tool parsing logic - [`23e8ac9`](https://github.com/ollama/ollama/commit/23e8ac94289e09c39566649d8ec411651d8a23e0) wip? ### 📊 Changes **2 files changed** (+495 additions, -0 deletions) <details> <summary>View changed files</summary> ➕ `server/python_tools.go` (+226 -0) ➕ `server/python_tools_test.go` (+269 -0) </details> ### 📄 Description This PR introduces a small python parsing package for supporting python based tool calls. Only kwargs and empty python functions are currently supported. The parsing logic can be a bit hard to figure out so feedback to make clearer is appreciated! --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-29 14:52:01 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#59944