Skip to content

docs(examples): runnable scheduling and heartbeat examples - #1894

Merged
edenreich merged 7 commits into
mainfrom
fix/issue-1892
Nov 17, 2026
Merged

edenreich merged 7 commits into
mainfrom
fix/issue-1892

Conversation

@inference-gateway-maintainer

Copy link
Copy Markdown
Contributor

Resolves #1892

Summary

Adds two runnable offline examples for the automation features the README advertises but never demonstrates: the Schedule tool (cron prompts run by infer daemon) and the heartbeat (periodic agent wake-ups). Both run against the tokenless mock model under a seeded demo HOME, the way examples/web-terminal runs its daemon, so no API key, gateway or channel is needed - each fire is recorded to conversation storage and readable back through infer conversations.

Changes

  • examples/scheduling/: headless scenarios in --mode auto where the mock model calls the Schedule tool with operation: create (recurring @every 1m), create with run_once: true, list and delete; a task daemon that runs infer daemon so the jobs fire; a task jobs that prints the job files and run records written under ~/.infer/schedules/; and task runs/task show ID=... that show the recorded runs via infer conversations list and infer conversations show. Ships schedules/demo-standup-summary.yaml, a hand-written job file, to demonstrate hot reload and to give delete a real target.
  • examples/heartbeat/: heartbeat.yaml (enabled, short interval: 30s and initial_delay: 5s, prompt) seeded by task home into the demo HOME; a task daemon whose wake-ups record conversations; task wakes/task show ID=... to read them; and task once running infer headless --heartbeat "<prompt>" for a single wake-up with the heartbeat system prompt.
  • examples/telegram-channel/README.md: a new "Scheduled tasks" section built on the INFER_TOOLS_SCHEDULE_ENABLED: true its compose file already sets - asking the bot for a recurring job and a one-off reminder, and noting the job's output is delivered back to the same chat. Links the Scheduling Guide.
  • docs/examples.md: both new examples added to the Runnable Examples table.

no docs ticket: the PR only adds examples and their index rows, no behavior change.

@edenreich

Copy link
Copy Markdown
Contributor

@infer can you finalise this PR? if it's ready for a review mark it as ready, if not then continue on the leftover todos. use /ponytail:ponytail

@inference-gateway-maintainer

inference-gateway-maintainer Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor Author

Model: ollama_cloud/glm-5.3-flash · Action: v0.59.9 · CLI: v0.262.0 · Gateway: v0.67.1 · View Job

Todos

Pull Request

#1894

✅ Infer Result: Success

Finalization complete. PR #1894 is marked ready for review.

What I did

Both example suites are now verified to run end to end offline on this checkout, and the validation caught two real breakages, both fixed and pushed:

  • 0294cfa - examples/heartbeat/scenarios.yaml: the wake-up reply had an unquoted YAML scalar containing : (colon-space), which failed scenario parsing - task once died with yaml: line 7: mapping values are not allowed in this context. Quoted it; task once now returns the scripted reply with the heartbeat system prompt in effect.
  • fb49206 - examples/scheduling/Taskfile.yml: task jobs used -exec cat {} ;, and since Taskfile cmds run through a shell, the bare ; was eaten as a command separator (find: missing argument to '-exec'). Escaped it as \;; task jobs now prints each job file with its path plus the run records.

Validation evidence

  • scheduling: task all ran all four headless scenarios with the mock model calling the Schedule tool in -mode auto (create recurring, create with run_once: true, list showing all 3 jobs, delete of the seeded hand-written job). With task daemon running, the recurring job fired every minute (3 fires) and the one-off fired once and was consumed; the seeded job hot-reloaded at startup, and task runs / task show ID=... read the fires back with the job's prompt and the mock reply; one fire conversation wasn't visible on a read that raced its save - a re-read listed all four.
  • heartbeat: task once, task daemon (initial tick after the 5s delay, then every 30s - 7 wake-up conversations recorded), task wakes and task show ID=... all behave exactly as the READMEs describe.
  • Repo gate: the pre-commit hook (mod tidy, fmt, lint:imports, golangci-lint: 0 issues, markdownlint) passed on both fix commits. Working tree clean, everything pushed; demo .home dirs cleaned.

Skipped: running the daemon examples against a real model or the Telegram compose stack, and re-checking doc links outside the diff. Risk: the example output excerpts in the READMEs paraphrase exact log lines from observed runs - minor wording drift between CLI versions is possible.

Model: ollama_cloud/glm-5.3-flash · Action: v0.59.9 · CLI: v0.262.0 · Gateway: v0.67.1 · Exit Code: 0 · Duration: 9m 53s

Tokens: 2,557,654 in · 28,518 out · 2,586,172 total (46 requests)

Tool calls: 61 total · 100% success rate

Traces
Session: 1794925835-5322c60b

session (headless, success)                                                                        9m46s
├── chat ollama_cloud/glm-5.3-flash                                                                 2.4s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       2.4s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     2.4s
│           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                        2.4s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 2.4s
├── execute_tool Skill call_k51tfpnt                                                               142µs
├── execute_tool Bash call_ikef3u78                                                                366ms
├── chat ollama_cloud/glm-5.3-flash                                                                 2.0s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       2.0s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     2.0s
│           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                        2.0s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 2.0s
├── execute_tool Memory call_wng3k2n3                                                              155µs
├── execute_tool Bash call_ac1qtg38                                                                 11ms
├── execute_tool Bash call_1n0cc4qw                                                                  6ms
├── chat ollama_cloud/glm-5.3-flash                                                                 2.5s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       2.4s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     2.4s
│           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                        2.4s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 2.4s
├── execute_tool TodoWrite call_ttlmjiee                                                            66µs
├── chat ollama_cloud/glm-5.3-flash                                                                 1.4s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       1.4s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     1.4s
│           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                        1.4s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 1.4s
├── execute_tool Read call_2vv4amlu                                                                985µs
├── execute_tool Read call_vj3olidw                                                                864µs
├── execute_tool Read call_c6gczw7g                                                                956µs
├── execute_tool Read call_t0tehvt3                                                                927µs
├── chat ollama_cloud/glm-5.3-flash                                                                 1.7s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       1.7s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     1.7s
│           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                        1.7s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 1.7s
├── execute_tool Read call_58tq0dq7                                                                771µs
├── execute_tool Read call_sdck7gfu                                                                794µs
├── execute_tool Read call_t1c7fkyo                                                                820µs
├── execute_tool Read call_qoetskcs                                                                751µs
├── chat ollama_cloud/glm-5.3-flash                                                                 9.4s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       9.3s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     9.3s
│           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                        9.3s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 9.3s
├── execute_tool TodoWrite call_dvsg4khc                                                            67µs
├── execute_tool Bash call_6nkmxcou                                                                  8ms
├── chat ollama_cloud/glm-5.3-flash                                                                 4.8s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       4.8s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     4.8s
│           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                        4.8s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 4.8s
├── execute_tool Bash call_xn5duig6                                                                1m47s
├── execute_tool Grep call_wlk7i471                                                                  3ms
├── chat ollama_cloud/glm-5.3-flash                                                                 2.0s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       2.0s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     2.0s
│           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                        2.0s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 2.0s
├── execute_tool Bash call_j30n8a53                                                                 2.4s
│   ├── session [infer-action, internal] (headless, success)                                       441ms
│   │   ├── chat mock/openai/gpt-4o [infer-action, client]                                          19ms
│   │   ├── execute_tool Schedule [infer-action, internal] call_0_0                                463µs
│   │   ╰── chat mock/openai/gpt-4o [infer-action, client]                                           9ms
│   ├── session [infer-action, internal] (headless, success)                                       427ms
│   │   ├── chat mock/openai/gpt-4o [infer-action, client]                                          21ms
│   │   ├── execute_tool Schedule [infer-action, internal] call_0_0                                541µs
│   │   ╰── chat mock/openai/gpt-4o [infer-action, client]                                           9ms
│   ├── session [infer-action, internal] (headless, success)                                       432ms
│   │   ├── chat mock/openai/gpt-4o [infer-action, client]                                          20ms
│   │   ├── execute_tool Schedule [infer-action, internal] call_0_0                                365µs
│   │   ╰── chat mock/openai/gpt-4o [infer-action, client]                                           8ms
│   ╰── session [infer-action, internal] (headless, success)                                       429ms
│       ├── chat mock/openai/gpt-4o [infer-action, client]                                          20ms
│       ├── execute_tool Schedule [infer-action, internal] call_0_0                                359µs
│       ╰── chat mock/openai/gpt-4o [infer-action, client]                                           9ms
├── chat ollama_cloud/glm-5.3-flash                                                                 3.1s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       3.0s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     3.0s
│           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                        3.0s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 3.0s
├── execute_tool Bash call_z4wdki5y                                                                  5ms
│   ├── session [infer-action, internal] (headless, success)                                       706ms
│   │   ╰── chat mock/openai/gpt-4o [infer-action, client]                                          72ms
│   ├── session [infer-action, internal] (headless, success)                                        1.2s
│   │   ╰── chat mock/openai/gpt-4o [infer-action, client]                                          58ms
│   ├── session [infer-action, internal] (headless, success)                                       660ms
│   │   ╰── chat mock/openai/gpt-4o [infer-action, client]                                          88ms
│   ╰── session [infer-action, internal] (headless, success)                                       357ms
│       ╰── chat mock/openai/gpt-4o [infer-action, client]                                          22ms
├── chat ollama_cloud/glm-5.3-flash                                                                 9.7s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       9.7s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     9.7s
│           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                        9.7s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 9.7s
├── execute_tool Bash call_i7euvlo9                                                                326ms [error: tool_error]
├── chat ollama_cloud/glm-5.3-flash                                                                13.4s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                      13.4s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    13.4s
│           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                       13.4s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                13.4s
├── execute_tool Edit call_bnecqt0n                                                                  1ms
├── chat ollama_cloud/glm-5.3-flash                                                                 3.5s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       3.5s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     3.5s
│           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                        3.5s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 3.5s
├── execute_tool Bash call_lvhgc0lc                                                                729ms
│   ╰── session [infer-action, internal] (headless, success)                                       372ms
│       ╰── chat mock/openai/gpt-4o [infer-action, client]                                          22ms
├── chat ollama_cloud/glm-5.3-flash                                                                 2.4s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       2.4s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     2.4s
│           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                        2.4s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 2.4s
├── execute_tool Bash call_5cr2h4yt                                                                 12ms
├── chat ollama_cloud/glm-5.3-flash                                                                 1.5s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       1.5s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     1.5s
│           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                        1.5s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 1.5s
├── execute_tool Bash call_b0yfmo66                                                                 11ms
├── chat ollama_cloud/glm-5.3-flash                                                                 1.6s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       1.6s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     1.6s
│           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                        1.6s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 1.6s
├── execute_tool Bash call_j1n189lf                                                                 2m7s
├── chat ollama_cloud/glm-5.3-flash                                                                 1.3s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       1.3s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     1.3s
│           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                        1.3s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 1.3s
├── execute_tool Bash call_mnu2natv                                                                 1.9s
├── chat ollama_cloud/glm-5.3-flash                                                                 1.4s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       1.4s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     1.4s
│           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                        1.4s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 1.4s
├── execute_tool Bash call_9sntvtcm                                                                252ms
├── chat ollama_cloud/glm-5.3-flash                                                                 3.8s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       3.8s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     3.8s
│           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                        3.8s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 3.8s
├── execute_tool Bash call_2kwaq2oh                                                                196ms
├── execute_tool Bash call_hi6y6fj5                                                                114ms [error: tool_error]
├── chat ollama_cloud/glm-5.3-flash                                                                15.6s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                      15.6s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    15.6s
│           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                       15.6s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                15.6s
├── execute_tool Edit call_5idhp8xs                                                                  1ms
├── chat ollama_cloud/glm-5.3-flash                                                                772ms
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                      761ms
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    755ms
│           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                       755ms
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                755ms
├── execute_tool Bash call_52zm5w4c                                                                123ms
├── chat ollama_cloud/glm-5.3-flash                                                                 3.9s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       3.9s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     3.9s
│           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                        3.9s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 3.9s
├── execute_tool Bash call_4iex35rd                                                                 12ms
├── chat ollama_cloud/glm-5.3-flash                                                                951ms
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                      939ms
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    931ms
│           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                       931ms
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                931ms
├── execute_tool Bash call_0mkc1gkj                                                                 8.5s
├── chat ollama_cloud/glm-5.3-flash                                                                 6.7s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       6.7s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     6.7s
│           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                        6.7s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 6.7s
├── execute_tool Bash call_z1cikfl2                                                                 1.3s
├── chat ollama_cloud/glm-5.3-flash                                                                 2.1s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       2.1s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     2.1s
│           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                        2.1s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 2.1s
├── execute_tool KillShell call_c3r0w743                                                           232µs
├── chat ollama_cloud/glm-5.3-flash                                                                 4.3s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       4.2s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     4.2s
│           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                        4.2s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 4.2s
├── execute_tool Bash call_x5x4fhb1                                                                  5ms
│   ├── session [infer-action, internal] (headless, success)                                       338ms
│   │   ╰── chat mock/openai/gpt-4o [infer-action, client]                                          19ms
│   ├── session [infer-action, internal] (headless, success)                                       358ms
│   │   ╰── chat mock/openai/gpt-4o [infer-action, client]                                          21ms
│   ├── session [infer-action, internal] (headless, success)                                       332ms
│   │   ╰── chat mock/openai/gpt-4o [infer-action, client]                                          22ms
│   ├── session [infer-action, internal] (headless, success)                                       338ms
│   │   ╰── chat mock/openai/gpt-4o [infer-action, client]                                          18ms
│   ├── session [infer-action, internal] (headless, success)                                       323ms
│   │   ╰── chat mock/openai/gpt-4o [infer-action, client]                                          21ms
│   ├── session [infer-action, internal] (headless, success)                                       358ms
│   │   ╰── chat mock/openai/gpt-4o [infer-action, client]                                          20ms
│   ╰── session [infer-action, internal] (headless, success)                                       334ms
│       ╰── chat mock/openai/gpt-4o [infer-action, client]                                          21ms
├── chat ollama_cloud/glm-5.3-flash                                                                 2.1s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       2.1s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     2.1s
│           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                        2.1s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 2.1s
├── execute_tool Bash call_nz4lf3ef                                                                245ms
├── chat ollama_cloud/glm-5.3-flash                                                                 2.2s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       2.1s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     2.1s
│           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                        2.1s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 2.1s
├── execute_tool Bash call_7rm15h6h                                                                188ms
├── chat ollama_cloud/glm-5.3-flash                                                                15.3s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                      15.3s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    15.3s
│           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                       15.3s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                15.3s
├── execute_tool Bash call_4arw7sf3                                                                184ms
├── chat ollama_cloud/glm-5.3-flash                                                                 4.3s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       4.3s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     4.3s
│           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                        4.3s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 4.3s
├── execute_tool Bash call_kzov59d4                                                                186ms
├── chat ollama_cloud/glm-5.3-flash                                                                 8.5s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       8.4s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     8.4s
│           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                        8.4s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 8.4s
├── execute_tool Grep call_e36a7g9u                                                                 2.0s
├── execute_tool Grep call_mgpghzyd                                                                 1.2s
├── chat ollama_cloud/glm-5.3-flash                                                                 1.8s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       1.8s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     1.8s
│           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                        1.8s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 1.8s
├── execute_tool Grep call_0vrpjprr                                                                 1.1s
├── chat ollama_cloud/glm-5.3-flash                                                                11.9s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                      11.9s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    11.9s
│           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                       11.9s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                11.9s
├── execute_tool Read call_1fl8mzr1                                                                636µs
├── chat ollama_cloud/glm-5.3-flash                                                                 5.9s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       5.9s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     5.9s
│           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                        5.9s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 5.9s
├── execute_tool Read call_qpcdowv8                                                                  4ms [error: tool_error]
├── chat ollama_cloud/glm-5.3-flash                                                                991ms
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                      976ms
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    969ms
│           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                       969ms
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                969ms
├── execute_tool Read call_ccw836l9                                                                680µs
├── chat ollama_cloud/glm-5.3-flash                                                                37.6s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                      37.6s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    37.6s
│           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                       37.6s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                37.6s
├── execute_tool Wait call_hzubipj0                                                                1m30s [error: tool_error]
├── chat ollama_cloud/glm-5.3-flash                                                                 1.2s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       1.2s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     1.2s
│           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                        1.2s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 1.2s
├── execute_tool Bash call_wua1ud89                                                                184ms
├── chat ollama_cloud/glm-5.3-flash                                                                 6.4s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       6.3s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     6.3s
│           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                        6.3s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 6.3s
├── execute_tool Bash call_j4iluqkd                                                                178ms
├── chat ollama_cloud/glm-5.3-flash                                                                 4.0s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       4.0s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     4.0s
│           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                        4.0s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 4.0s
├── execute_tool KillShell call_nc2bue5s                                                           263µs
├── chat ollama_cloud/glm-5.3-flash                                                                 1.6s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       1.6s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     1.6s
│           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                        1.6s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 1.6s
├── execute_tool Bash call_y0o37bjo                                                                 63ms
├── execute_tool Bash call_swq9jlam                                                                 62ms
├── chat ollama_cloud/glm-5.3-flash                                                                 1.3s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       1.3s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     1.3s
│           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                        1.3s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 1.3s
├── execute_tool Bash call_3cbopycy                                                                 11ms
├── chat ollama_cloud/glm-5.3-flash                                                                 5.4s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       5.4s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     5.4s
│           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                        5.4s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 5.4s
├── execute_tool Memory call_rs8e3w6x                                                              132µs [error: tool_error]
├── execute_tool TodoWrite call_3s9scjrt                                                            77µs
├── chat ollama_cloud/glm-5.3-flash                                                                 4.1s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       4.0s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     4.0s
│           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                        4.0s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 4.0s
├── execute_tool Memory call_yyou0qn2                                                              122µs [error: tool_error]
├── chat ollama_cloud/glm-5.3-flash                                                                 5.0s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       5.0s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     5.0s
│           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                        5.0s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 5.0s
├── execute_tool Memory call_rkrurlj2                                                               1.4s
├── chat ollama_cloud/glm-5.3-flash                                                                 1.3s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       1.3s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     1.2s
│           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                        1.2s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 1.2s
├── execute_tool Bash call_l2mfbk5b                                                                 1.0s
├── chat ollama_cloud/glm-5.3-flash                                                                 4.7s
│   ╰── POST /v1/chat/completions [inference-gateway, server]                                       4.6s
│       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     4.6s
│           ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                        4.6s
│               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 4.6s
├── execute_tool TodoWrite call_vmxvp9x3                                                            72µs
╰── chat ollama_cloud/glm-5.3-flash                                                                 4.6s
    ╰── POST /v1/chat/completions [inference-gateway, server]                                       4.6s
        ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     4.6s
            ╰── POST /proxy/{provider}/{path...} [inference-gateway, server]                        4.6s
                ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 4.6s
Stats
Tool Calls

╭───────────┬───────┬───────┬─────────╮
│ Tool      │ Calls │ Fail% │ Avg     │
├───────────┼───────┼───────┼─────────┤
│ Bash      │ 31    │ 6%    │ 8151ms  │
│ Read      │ 11    │ 9%    │ 1ms     │
│ Memory    │ 4     │ 50%   │ 361ms   │
│ TodoWrite │ 4     │ 0%    │ 60µs    │
│ Grep      │ 4     │ 0%    │ 1073ms  │
│ Edit      │ 2     │ 0%    │ 1ms     │
│ KillShell │ 2     │ 0%    │ 221µs   │
│ Wait      │ 1     │ 100%  │ 90001ms │
│ Skill     │ 1     │ 0%    │ 113µs   │
╰───────────┴───────┴───────┴─────────╯

Token Usage

╭────────────────────────────┬─────────┬─────────┬────────────┬─────────┬──────╮
│ Model                      │ Prompt  │ Cached  │ Completion │ Total   │ Cost │
├────────────────────────────┼─────────┼─────────┼────────────┼─────────┼──────┤
│ ollama_cloud/glm-5.3-flash │ 2557654 │ 1966720 │ 28518      │ 2586172 │ -    │
╰────────────────────────────┴─────────┴─────────┴────────────┴─────────┴──────╯

Sessions

╭───────────┬──────────┬──────────╮
│ Execution │ Mode     │ Sessions │
├───────────┼──────────┼──────────┤
│ headless  │ headless │ 1        │
╰───────────┴──────────┴──────────╯

Triggered by edenreich · Infer Action · OSS

@inference-gateway-maintainer
inference-gateway-maintainer Bot marked this pull request as ready for review November 17, 2026 14:40
@inference-gateway-maintainer
inference-gateway-maintainer Bot requested a review from a team as a code owner November 17, 2026 14:40
@edenreich
edenreich merged commit 3d1bc0a into main Nov 17, 2026
1 check passed
@edenreich
edenreich deleted the fix/issue-1892 branch November 17, 2026 14:55
@edenreich edenreich moved this from Todo to Done in 2026 Nov 17, 2026
@inference-gateway-releaser

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 0.263.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@inference-gateway-releaser inference-gateway-releaser Bot added the released Shipped in a release label Nov 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

released Shipped in a release

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

[FEATURE] docs: add runnable examples for scheduled tasks and the heartbeat

1 participant