sairaj2 commited on
Commit
dfe959f
·
verified ·
1 Parent(s): 149595c

Upload folder using huggingface_hub

Browse files
Files changed (3) hide show
  1. environment/base.py +22 -3
  2. requirements.txt +1 -0
  3. run_groq.sh +9 -0
environment/base.py CHANGED
@@ -1,8 +1,27 @@
1
  from typing import Dict, Any, Optional, List
2
  from uuid import uuid4
3
  from pydantic import BaseModel, Field
4
- from openenv.core.env_server.interfaces import Environment
5
- from openenv.core.env_server.types import State
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6
 
7
 
8
  class Observation(BaseModel):
@@ -68,4 +87,4 @@ class BaseWorkflowEnvironment(Environment):
68
 
69
  @property
70
  def state(self) -> State:
71
- return self._state
 
1
  from typing import Dict, Any, Optional, List
2
  from uuid import uuid4
3
  from pydantic import BaseModel, Field
4
+ from dataclasses import dataclass
5
+
6
+
7
+ @dataclass
8
+ class State:
9
+ episode_id: str
10
+ step_count: int
11
+
12
+
13
+ class Environment:
14
+ SUPPORTS_CONCURRENT_SESSIONS: bool = True
15
+
16
+ @property
17
+ def state(self) -> State:
18
+ raise NotImplementedError()
19
+
20
+ def reset(self):
21
+ raise NotImplementedError()
22
+
23
+ def step(self, action):
24
+ raise NotImplementedError()
25
 
26
 
27
  class Observation(BaseModel):
 
87
 
88
  @property
89
  def state(self) -> State:
90
+ return self._state
requirements.txt CHANGED
@@ -5,3 +5,4 @@ requests>=2.31.0
5
  openai>=1.3.0
6
  openenv>=0.1.0
7
  python-multipart>=0.0.6
 
 
5
  openai>=1.3.0
6
  openenv>=0.1.0
7
  python-multipart>=0.0.6
8
+ openenv @ git+https://github.com/facebookresearch/openenv.git
run_groq.sh ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+ export API_BASE_URL=https://api.groq.com/openai/v1
3
+ export MODEL_NAME=llama-3.3-70b-versatile
4
+ export OPENAI_API_KEY=your_groq_api_key_here
5
+ export ENV_URL=http://localhost:8000
6
+ export TASK_NAME=email_triage
7
+
8
+ echo "✅ Running WorkflowOps with Groq Llama 3.1 70B"
9
+ python3 inference.py