[dotnet-port-api] agent-as-tool: session propagation and argument customization
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 35/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Necesita aclaración
- Estado de actividad
- Activo
- Stack tecnológico
- go
Línea de trabajo
Start with the tool/agenttool constructor and its Call(ctx, argsJSON) entry point, then compare the referenced Python _agents.py and .NET AgentExtensions.cs behavior. Resolve the listed session, default, and approval questions with maintainers before implementation. Done means an agreed public API for argument customization and session propagation, with behavior matching the decision.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Parity gap surfaced comparing tool/agenttool against .NET/Python.
Gap
agenttool hardcodes a single query string argument and runs the sub-agent with an independent context, returning only resp.String(). It cannot:
- Propagate the parent session to the sub-agent (so a sub-agent-as-tool starts stateless every call).
- Customize the argument name/description.
Note: the tool name/description defaults and the query arg name already match .NET (AgentExtensions.cs), so those are intentionally aligned — only session propagation and arg customization are missing.
Reference
- Python
Agent.as_tool(arg_name="task", arg_description=..., propagate_session=..., ...)(_agents.py). - .NET
AsAIFunction(this AIAgent, options, session)accepts asession(AgentExtensions.cs).
Proposed shape (needs maintainer input)
Add optional config to the agenttool constructor, e.g.:
agenttool.New(a, agenttool.Config{
ArgName: "task", // default "query" (matches .NET)
ArgDescription: "...",
PropagateSession: true, // thread the caller's *agent.Session into the sub-run
})
Open questions:
- How to obtain the caller session at
Calltime — thread it via context, or capture from the invoking run? (Go toolCall(ctx, argsJSON)has no session param today.) - Should session propagation be opt-in (default off, matching a stateless tool) or default on (matching Python's common usage)?
- Whether to also surface sub-agent approval/user-input requests (Python raises
UserInputRequiredException; .NET returns.Text— Go currently matches .NET).
Filing issue-first per CONTRIBUTING (new public API). Happy to implement once the direction is settled.
- Lenguaje dominante
- Go
- Estrellas
- 671
- Forks
- 68
- Merge medio
- 18 h 11 min
- PR fusionados (30 d)
- 82
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de microsoft/agent-framework-go
-
Add a per-run limit for tool callsPosiblemente ocupada @Lokesh118 la tomó hace 14 días. Abierto
Dificultad 3/5 1-2 días Aptitud para principiantes 67/100
microsoft/agent-framework-go#1202 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 20/100
microsoft/agent-framework-go#1164 ·
Los mantenedores suelen responder en 1 día
-
[dotnet-port-api] Port TodoCompletion and BackgroundTaskCompletion loop evaluators (placement decision)Posiblemente ocupada @PratikDhanave la tomó hace 4 días. Abierto
Dificultad 3/5 1-2 días Aptitud para principiantes 45/100
microsoft/agent-framework-go#1163 ·
Los mantenedores suelen responder en 1 día
-
[dotnet-port-api] Response.ModelID and ConversationID fieldsPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abierto
Dificultad 5/5 Más de una semana Aptitud para principiantes 35/100
microsoft/agent-framework-go#1140 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
[aw] Detection RunsAbiertoagentic-workflows
Dificultad 1/5 Menos de una hora Aptitud para principiantes 5/100
microsoft/agent-framework-go#1049 · 38 comentarios ·
Los mantenedores suelen responder en 1 día
Todos los issues de microsoft/agent-framework-go
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
Los mantenedores suelen responder en 1 día
-
GitHub webhook is not subscribed to release events, so `event: release` never triggersPosiblemente ocupada @qsun la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
woodpecker-ci/woodpecker#7542 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
zilliztech/milvus-backup#1386 ·
Los mantenedores suelen responder en 1 día
-
Pipelined flush no longer observes kill signals after #2042: flush backoffer is built with nil varsAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día