Skip to content

doc request: Need better examples for tool calling and llm_task in the middle #26

@gotexis

Description

@gotexis

Hi, me (and my agent) stuggles to write up a .lobster yaml . The agent end up having this (ugly) yaml and it's semi-working, but I doubt this is the right syntax.

We call it in openclaw cron like such:
Run the lobster pipeline: {\"action\":\"run\",\"pipeline\":\"pipelines/daily-standup.lobster\",\"timeoutMs\":60000}, summarize

name: daily-standup
args:
  team:
    default: "CLAW"
  project:
    default: "E-commerce"
  limit:
    default: "30"

steps:
  - id: list-tickets
    command: >
      (jira issues search "" --status Todo) 2>/dev/null |
      jq -s '[.[][] | {id: .identifier, title, status: .state.name, priority: .priority,
         labels: [.labels[]?.name // empty],
         assignee: (.assignee.name // "unassigned")}] | sort_by(.priority)'

  - id: invoke-llm
    command: >
      OPENCLAW_URL=http://localhost:18789 OPENCLAW_TOKEN=$OPENCLAW_GATEWAY_TOKEN lobster 'exec --shell "cat /tmp/lobster-standup-tickets.json" | llm_task.invoke --prompt "Summarize the top 10 most urgent tickets for the daily standup."
 
   # from here, ideally pipe out from llm and into something else ... ?

Try throwing in llm_task.invoke, openclaw.invoke --tools llm_task, clawd.invoke --tools llm_task but nothing works except this ugly matter.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions