(record AgentMeRecord)
| 415 | } |
| 416 | |
| 417 | func agentMeBundle(record AgentMeRecord) outputBundle { |
| 418 | return outputBundle{ |
| 419 | jsonValue: record, |
| 420 | human: func() (string, error) { |
| 421 | return renderHumanBlocks( |
| 422 | renderHumanSection(agentKernelAgentValue, []keyValue{ |
| 423 | {Label: agentKernelSessionValue, Value: record.Self.SessionID}, |
| 424 | {Label: agentKernelAgentValue, Value: record.Self.AgentName}, |
| 425 | {Label: agentKernelProviderValue, Value: record.Self.Provider}, |
| 426 | {Label: agentKernelModelValue, Value: stringOrDash(record.Self.Model)}, |
| 427 | }), |
| 428 | renderHumanSection("Workspace", []keyValue{ |
| 429 | {Label: "ID", Value: stringOrDash(record.Workspace.ID)}, |
| 430 | {Label: agentKernelRootValue, Value: stringOrDash(record.Workspace.RootDir)}, |
| 431 | }), |
| 432 | ), nil |
| 433 | }, |
| 434 | toon: func() (string, error) { |
| 435 | return renderToonObject("agent_me", []string{ |
| 436 | automationSessionIDKey, |
| 437 | agentKernelAgentNameKey, |
| 438 | cliProviderKey, |
| 439 | agentKernelModelKey, |
| 440 | "workspace_id", |
| 441 | "workspace_root", |
| 442 | }, []string{ |
| 443 | record.Self.SessionID, |
| 444 | record.Self.AgentName, |
| 445 | record.Self.Provider, |
| 446 | record.Self.Model, |
| 447 | record.Workspace.ID, |
| 448 | record.Workspace.RootDir, |
| 449 | }), nil |
| 450 | }, |
| 451 | } |
| 452 | } |
| 453 | |
| 454 | func agentContextBundle(record *AgentContextRecord) outputBundle { |
| 455 | return outputBundle{ |
no test coverage detected