[PR #14639] docs: add AgentField to Community Integrations #14759

Open
opened 2026-04-13 01:02:09 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/14639
Author: @santoshkumarradha
Created: 3/5/2026
Status: 🔄 Open

Base: mainHead: add-agentfield-integration


📝 Commits (2)

  • ce48832 docs: add AgentField to Community Integrations
  • 527d8a4 docs: sort Frameworks & Agents section alphabetically

📊 Changes

1 file changed (+1 additions, -0 deletions)

View changed files

📝 README.md (+1 -0)

📄 Description

Add AgentField to Community Integrations

Adds AgentField to the Frameworks & Agents section of Community Integrations.

AgentField is an open-source control plane for AI agents with SDKs in Python, TypeScript, and Go. All three SDKs support Ollama as an LLM provider.

Usage

Python (via LiteLLM — uses the ollama_chat/ model prefix):

from agentfield import Agent, AIConfig

app = Agent(
    node_id="my-agent",
    ai_config=AIConfig(model="ollama_chat/llama3.2")
)

@app.reasoner
async def chat(message: str) -> str:
    return await app.ai(user=message)

app.serve()

TypeScript:

import { Agent } from '@agentfield/sdk';

const agent = new Agent({
  nodeId: 'my-agent',
  aiConfig: {
    provider: 'ollama',
    model: 'llama3.2',
    baseUrl: 'http://localhost:11434/v1'
  }
});

agent.reasoner('chat', async (ctx) => {
  return await ctx.ai(ctx.input.message);
});

await agent.serve();

Go (env-var configuration, auto-detected as OpenAI-compatible):

export AI_BASE_URL=http://localhost:11434/v1
export AI_MODEL=llama3.2
package main

import (
    "context"
    "log"

    "github.com/Agent-Field/agentfield/sdk/go/agent"
)

func main() {
    app, _ := agent.New(agent.Config{NodeID: "my-agent"})

    app.RegisterReasoner("chat", func(ctx context.Context, input map[string]any) (any, error) {
        response, err := app.AI(ctx, input["message"].(string))
        if err != nil {
            return nil, err
        }
        return map[string]any{"response": response}, nil
    })

    log.Fatal(app.Serve(":8001"))
}

cc @AbirAbbas


🔄 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/14639 **Author:** [@santoshkumarradha](https://github.com/santoshkumarradha) **Created:** 3/5/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `add-agentfield-integration` --- ### 📝 Commits (2) - [`ce48832`](https://github.com/ollama/ollama/commit/ce48832a2d6a6a8f8b8b03a26471d84c2c08aebd) docs: add AgentField to Community Integrations - [`527d8a4`](https://github.com/ollama/ollama/commit/527d8a4042102618f3739eee0950dcde2d69c672) docs: sort Frameworks & Agents section alphabetically ### 📊 Changes **1 file changed** (+1 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `README.md` (+1 -0) </details> ### 📄 Description ## Add AgentField to Community Integrations Adds [AgentField](https://github.com/Agent-Field/agentfield) to the **Frameworks & Agents** section of Community Integrations. AgentField is an open-source control plane for AI agents with SDKs in Python, TypeScript, and Go. All three SDKs support Ollama as an LLM provider. ### Usage **Python** (via LiteLLM — uses the `ollama_chat/` model prefix): ```python from agentfield import Agent, AIConfig app = Agent( node_id="my-agent", ai_config=AIConfig(model="ollama_chat/llama3.2") ) @app.reasoner async def chat(message: str) -> str: return await app.ai(user=message) app.serve() ``` **TypeScript:** ```typescript import { Agent } from '@agentfield/sdk'; const agent = new Agent({ nodeId: 'my-agent', aiConfig: { provider: 'ollama', model: 'llama3.2', baseUrl: 'http://localhost:11434/v1' } }); agent.reasoner('chat', async (ctx) => { return await ctx.ai(ctx.input.message); }); await agent.serve(); ``` **Go** (env-var configuration, auto-detected as OpenAI-compatible): ```bash export AI_BASE_URL=http://localhost:11434/v1 export AI_MODEL=llama3.2 ``` ```go package main import ( "context" "log" "github.com/Agent-Field/agentfield/sdk/go/agent" ) func main() { app, _ := agent.New(agent.Config{NodeID: "my-agent"}) app.RegisterReasoner("chat", func(ctx context.Context, input map[string]any) (any, error) { response, err := app.AI(ctx, input["message"].(string)) if err != nil { return nil, err } return map[string]any{"response": response}, nil }) log.Fatal(app.Serve(":8001")) } ``` ### Links - Repo: https://github.com/Agent-Field/agentfield - Docs: https://agentfield.ai/docs cc @AbirAbbas --- <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-13 01:02:09 -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#14759